Skip to content

Commit

Permalink
rebase to ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Jun 22, 2019
1 parent 08270b1 commit 6ccd167
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 76 deletions.
58 changes: 32 additions & 26 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
FROM lsiobase/alpine:3.9 as buildstage
FROM lsiobase/ubuntu:bionic as buildstage

# set version label
ARG FFMPEG_VERSION

# common env
ENV \
DEBIAN_FRONTEND="noninteractive" \
MAKEFLAGS="-j4"

# versions
ENV \
AOM=v1.0.0 \
FDKAAC=0.1.5 \
FFMPEG_HARD=4.1.3 \
FONTCONFIG=2.12.4 \
FREETYPE=2.5.5 \
FONTCONFIG=2.13.91 \
FREETYPE=2.9.1 \
FRIBIDI=0.19.7 \
KVAZAAR=1.2.0 \
LAME=3.99.5 \
LIBASS=0.13.7 \
LIBASS=0.14.0 \
LIBDRM=2.4.98 \
LIBVA=2.4.1 \
LIBVDPAU=1.2 \
Expand All @@ -26,46 +27,47 @@ ENV \
OGG=1.3.2 \
OPENCOREAMR=0.1.5 \
OPENJPEG=2.3.1 \
OPUS=1.2 \
OPUS=1.3 \
THEORA=1.1.1 \
VORBIS=1.3.5 \
VORBIS=1.3.6 \
VPX=1.8.0 \
X265=3.0 \
XVID=1.3.4

RUN \
echo "**** install build packages ****" && \
apk add \
apt-get update && \
apt-get install -y \
autoconf \
automake \
bzip2 \
ca-certificates \
cmake \
curl \
diffutils \
expat \
expat-dev \
g++ \
gcc \
git \
gperf \
jq \
libgcc \
libgomp \
libexpat1-dev \
libxext-dev \
libgcc-7-dev \
libgomp1 \
libpciaccess-dev \
libssl-dev \
libtool \
libv4l-dev \
libx11-dev \
libxml2-dev \
linux-headers \
make \
nasm \
openssl-dev \
perl \
pkgconfig \
pkg-config \
python \
v4l-utils-dev \
xorg-server-dev \
x11proto-xext-dev \
xserver-xorg-dev \
yasm \
zlib-dev
zlib1g-dev

# compile 3rd party libs
RUN \
Expand Down Expand Up @@ -132,8 +134,8 @@ RUN \
echo "**** grabbing fontconfig ****" && \
mkdir -p /tmp/fontconfig && \
curl -Lf \
https://www.freedesktop.org/software/fontconfig/release/fontconfig-${FONTCONFIG}.tar.bz2 | \
tar -jx --strip-components=1 -C /tmp/fontconfig
https://www.freedesktop.org/software/fontconfig/release/fontconfig-${FONTCONFIG}.tar.gz | \
tar -zx --strip-components=1 -C /tmp/fontconfig
RUN \
echo "**** compiling fontconfig ****" && \
cd /tmp/fontconfig && \
Expand Down Expand Up @@ -182,10 +184,10 @@ RUN \
echo "**** compiling lame ****" && \
cd /tmp/lame && \
cp \
/usr/share/automake-1.16/config.guess \
/usr/share/automake-1.15/config.guess \
config.guess && \
cp \
/usr/share/automake-1.16/config.sub \
/usr/share/automake-1.15/config.sub \
config.sub && \
./configure \
--disable-frontend \
Expand Down Expand Up @@ -326,10 +328,10 @@ RUN \
echo "**** compiling theora ****" && \
cd /tmp/theora && \
cp \
/usr/share/automake-1.16/config.guess \
/usr/share/automake-1.15/config.guess \
config.guess && \
cp \
/usr/share/automake-1.16/config.sub \
/usr/share/automake-1.15/config.sub \
config.sub && \
curl -fL \
'https://git.xiph.org/?p=theora.git;a=commitdiff_plain;h=7288b539c52e99168488dc3a343845c9365617c8' \
Expand Down Expand Up @@ -487,14 +489,18 @@ RUN \

RUN \
echo "**** arrange files ****" && \
ldconfig && \
mkdir -p /buildout/usr/local/bin && \
cp \
/tmp/ffmpeg/ffmpeg \
/buildout/usr/local/bin && \
mkdir -p /buildout/usr/lib && \
ldd /tmp/ffmpeg/ffmpeg \
| awk '/local/ {print $3}' \
| xargs -i cp -L {} /buildout/usr/lib/
| xargs -i cp -L {} /buildout/usr/lib/ && \
cp -a \
/usr/local/lib/libdrm_* \
/buildout/usr/lib/

# Storage layer consumed downstream
FROM scratch
Expand All @@ -506,4 +512,4 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thelamer"

# Add files from buildstage
COPY --from=buildstage /buildout/ /
COPY --from=buildstage /buildout/ /
56 changes: 32 additions & 24 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,67 +1,73 @@
FROM lsiobase/alpine:arm64v8-3.9 as buildstage
FROM lsiobase/ubuntu:arm64v8-bionic as buildstage

# set version label
ARG FFMPEG_VERSION

# common env
ENV \
DEBIAN_FRONTEND="noninteractive" \
MAKEFLAGS="-j4"

# versions
ENV \
AOM=v1.0.0 \
FDKAAC=0.1.5 \
FFMPEG_HARD=4.1.3 \
FONTCONFIG=2.12.4 \
FREETYPE=2.5.5 \
FONTCONFIG=2.13.91 \
FREETYPE=2.8.1 \
FRIBIDI=0.19.7 \
KVAZAAR=1.2.0 \
LAME=3.99.5 \
LIBASS=0.13.7 \
LIBASS=0.14.0 \
LIBDRM=2.4.98 \
LIBVA=2.4.1 \
LIBVDPAU=1.2 \
LIBVIDSTAB=1.1.0 \
NVCODEC=n9.0.18.1 \
OGG=1.3.2 \
OPENCOREAMR=0.1.5 \
OPENJPEG=2.3.1 \
OPUS=1.2 \
OPUS=1.3 \
THEORA=1.1.1 \
VORBIS=1.3.5 \
VORBIS=1.3.6 \
VPX=1.8.0 \
X265=3.0 \
XVID=1.3.4

RUN \
echo "**** install build packages ****" && \
apk add \
apt-get update && \
apt-get install -y \
autoconf \
automake \
bzip2 \
ca-certificates \
cmake \
curl \
diffutils \
expat \
expat-dev \
g++ \
gcc \
git \
gperf \
jq \
libgcc \
libgomp \
libexpat1-dev \
libxext-dev \
libgcc-7-dev \
libgomp1 \
libpciaccess-dev \
libssl-dev \
libtool \
libv4l-dev \
libx11-dev \
libxml2-dev \
linux-headers \
make \
nasm \
openssl-dev \
perl \
pkgconfig \
pkg-config \
python \
v4l-utils-dev \
xorg-server-dev \
x11proto-xext-dev \
xserver-xorg-dev \
yasm \
zlib-dev
zlib1g-dev

# compile 3rd party libs
RUN \
Expand Down Expand Up @@ -117,8 +123,8 @@ RUN \
echo "**** grabbing fontconfig ****" && \
mkdir -p /tmp/fontconfig && \
curl -Lf \
https://www.freedesktop.org/software/fontconfig/release/fontconfig-${FONTCONFIG}.tar.bz2 | \
tar -jx --strip-components=1 -C /tmp/fontconfig
https://www.freedesktop.org/software/fontconfig/release/fontconfig-${FONTCONFIG}.tar.gz | \
tar -zx --strip-components=1 -C /tmp/fontconfig
RUN \
echo "**** compiling fontconfig ****" && \
cd /tmp/fontconfig && \
Expand Down Expand Up @@ -167,10 +173,10 @@ RUN \
echo "**** compiling lame ****" && \
cd /tmp/lame && \
cp \
/usr/share/automake-1.16/config.guess \
/usr/share/automake-1.15/config.guess \
config.guess && \
cp \
/usr/share/automake-1.16/config.sub \
/usr/share/automake-1.15/config.sub \
config.sub && \
./configure \
--disable-frontend \
Expand Down Expand Up @@ -266,10 +272,10 @@ RUN \
echo "**** compiling theora ****" && \
cd /tmp/theora && \
cp \
/usr/share/automake-1.16/config.guess \
/usr/share/automake-1.15/config.guess \
config.guess && \
cp \
/usr/share/automake-1.16/config.sub \
/usr/share/automake-1.15/config.sub \
config.sub && \
curl -fL \
'https://git.xiph.org/?p=theora.git;a=commitdiff_plain;h=7288b539c52e99168488dc3a343845c9365617c8' \
Expand Down Expand Up @@ -356,6 +362,7 @@ RUN \
RUN \
echo "**** compiling x265 ****" && \
cd /tmp/x265/build/linux && \
export CXXFLAGS="-fPIC" && \
./multilib.sh && \
make -C 8bit install
RUN \
Expand Down Expand Up @@ -423,6 +430,7 @@ RUN \

RUN \
echo "**** arrange files ****" && \
ldconfig && \
mkdir -p /buildout/usr/local/bin && \
cp \
/tmp/ffmpeg/ffmpeg \
Expand Down
Loading

0 comments on commit 6ccd167

Please sign in to comment.