|
@@ -1,8 +1,10 @@
|
|
|
FROM lsiobase/alpine:3.5
|
|
FROM lsiobase/alpine:3.5
|
|
|
MAINTAINER saarg
|
|
MAINTAINER saarg
|
|
|
|
|
|
|
|
-# package version
|
|
|
|
|
|
|
+# package version
|
|
|
ARG ARGTABLE_VER="2.13"
|
|
ARG ARGTABLE_VER="2.13"
|
|
|
|
|
+ARG FFMPEG_VER="ffmpeg"
|
|
|
|
|
+ARG TZ="Europe/Oslo"
|
|
|
ARG XMLTV_VER="0.5.69"
|
|
ARG XMLTV_VER="0.5.69"
|
|
|
|
|
|
|
|
# set version label
|
|
# set version label
|
|
@@ -13,7 +15,18 @@ LABEL build_version="Build-date:- ${BUILD_DATE}"
|
|
|
# Environment settings
|
|
# Environment settings
|
|
|
ENV HOME="/config"
|
|
ENV HOME="/config"
|
|
|
|
|
|
|
|
-# copy patches
|
|
|
|
|
|
|
+# copy patches
|
|
|
|
|
+COPY patches/ /tmp/patches/
|
|
|
|
|
+
|
|
|
|
|
+# set version label
|
|
|
|
|
+ARG BUILD_DATE
|
|
|
|
|
+ARG VERSION
|
|
|
|
|
+LABEL build_version="Build-date:- ${BUILD_DATE}"
|
|
|
|
|
+
|
|
|
|
|
+# Environment settings
|
|
|
|
|
+ENV HOME="/config"
|
|
|
|
|
+
|
|
|
|
|
+# copy patches
|
|
|
COPY patches/ /tmp/patches/
|
|
COPY patches/ /tmp/patches/
|
|
|
|
|
|
|
|
# install build packages
|
|
# install build packages
|
|
@@ -23,7 +36,7 @@ RUN \
|
|
|
automake \
|
|
automake \
|
|
|
cmake \
|
|
cmake \
|
|
|
coreutils \
|
|
coreutils \
|
|
|
- ffmpeg-dev \
|
|
|
|
|
|
|
+ ${FFMPEG_VER}-dev \
|
|
|
file \
|
|
file \
|
|
|
findutils \
|
|
findutils \
|
|
|
g++ \
|
|
g++ \
|
|
@@ -116,27 +129,9 @@ RUN \
|
|
|
|
|
|
|
|
# install perl modules for xmltv
|
|
# install perl modules for xmltv
|
|
|
curl -L http://cpanmin.us | perl - App::cpanminus && \
|
|
curl -L http://cpanmin.us | perl - App::cpanminus && \
|
|
|
- cpanm DateTime::Format::ISO8601 && \
|
|
|
|
|
- cpanm DateTime::Format::SQLite && \
|
|
|
|
|
- cpanm Encode && \
|
|
|
|
|
- cpanm File::HomeDir && \
|
|
|
|
|
- cpanm File::Path && \
|
|
|
|
|
- cpanm HTML::Entities && \
|
|
|
|
|
- cpanm HTML::TableExtract && \
|
|
|
|
|
- cpanm inc && \
|
|
|
|
|
- cpanm JSON::PP && \
|
|
|
|
|
- cpanm LWP::Simple && \
|
|
|
|
|
- cpanm LWP::UserAgent && \
|
|
|
|
|
- cpanm PerlIO::gzip && \
|
|
|
|
|
- cpanm SOAP::Lite && \
|
|
|
|
|
- cpanm Storable && \
|
|
|
|
|
- cpanm Unicode::UTF8simple && \
|
|
|
|
|
- cpanm version && \
|
|
|
|
|
- cpanm WWW::Mechanize && \
|
|
|
|
|
- cpanm XML::DOM && \
|
|
|
|
|
- cpanm HTTP::Cache::Transparent && \
|
|
|
|
|
-
|
|
|
|
|
-# build libiconv
|
|
|
|
|
|
|
+ cpanm --installdeps /tmp/patches && \
|
|
|
|
|
+
|
|
|
|
|
+# build libiconv
|
|
|
mkdir -p \
|
|
mkdir -p \
|
|
|
/tmp/iconv-src && \
|
|
/tmp/iconv-src && \
|
|
|
curl -o \
|
|
curl -o \
|
|
@@ -193,7 +188,7 @@ RUN \
|
|
|
make test && \
|
|
make test && \
|
|
|
make install && \
|
|
make install && \
|
|
|
|
|
|
|
|
-# build argtable2
|
|
|
|
|
|
|
+# build argtable2
|
|
|
ARGTABLE_VER1="${ARGTABLE_VER//./-}" && \
|
|
ARGTABLE_VER1="${ARGTABLE_VER//./-}" && \
|
|
|
mkdir -p \
|
|
mkdir -p \
|
|
|
/tmp/argtable && \
|
|
/tmp/argtable && \
|
|
@@ -209,7 +204,7 @@ RUN \
|
|
|
make check && \
|
|
make check && \
|
|
|
make install && \
|
|
make install && \
|
|
|
|
|
|
|
|
-# build comskip
|
|
|
|
|
|
|
+# build comskip
|
|
|
git clone git://github.com/erikkaashoek/Comskip /tmp/comskip && \
|
|
git clone git://github.com/erikkaashoek/Comskip /tmp/comskip && \
|
|
|
cd /tmp/comskip && \
|
|
cd /tmp/comskip && \
|
|
|
./autogen.sh && \
|
|
./autogen.sh && \
|
|
@@ -221,8 +216,8 @@ RUN \
|
|
|
|
|
|
|
|
# install runtime packages
|
|
# install runtime packages
|
|
|
apk add --no-cache \
|
|
apk add --no-cache \
|
|
|
- ffmpeg \
|
|
|
|
|
- ffmpeg-libs \
|
|
|
|
|
|
|
+ ${FFMPEG_VER} \
|
|
|
|
|
+ ${FFMPEG_VER}-libs \
|
|
|
libhdhomerun-libs \
|
|
libhdhomerun-libs \
|
|
|
libxml2 \
|
|
libxml2 \
|
|
|
libxslt && \
|
|
libxslt && \
|