forked from Ivasoft/docker-tvheadend
Compare commits
82 Commits
6fbb30d0-l
...
5fab06b5-l
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
add0f71bb5 | ||
|
|
f361044cd9 | ||
|
|
dbc64ffec6 | ||
|
|
2ace13ff57 | ||
|
|
e9bcbed67d | ||
|
|
c2d877e27c | ||
|
|
d9d6268f24 | ||
|
|
59907cf1df | ||
|
|
cc7c79eb44 | ||
|
|
1bb93b5a30 | ||
|
|
5615df900e | ||
|
|
f7af259238 | ||
|
|
bf90cea801 | ||
|
|
ebcc0518bf | ||
|
|
7cf6a4290e | ||
|
|
e052b086ce | ||
|
|
118f21be42 | ||
|
|
0f8ca85398 | ||
|
|
e7ffd7fb7f | ||
|
|
6eb29390f0 | ||
|
|
c064466ce4 | ||
|
|
b6a321aee6 | ||
|
|
3d34a9cf03 | ||
|
|
e0a76e29e2 | ||
|
|
13f64cbc4b | ||
|
|
2c696d51b0 | ||
|
|
780b22728e | ||
|
|
9417e1f9c4 | ||
|
|
5fb3338564 | ||
|
|
89322d5956 | ||
|
|
267e3ef786 | ||
|
|
5de6faf27f | ||
|
|
dab37e4ecd | ||
|
|
6ab17ce8b7 | ||
|
|
81c71ee54d | ||
|
|
a5fe08ef84 | ||
|
|
65b2f3c3c7 | ||
|
|
7d94cc4b64 | ||
|
|
e834619ec3 | ||
|
|
ab115449e7 | ||
|
|
322e35bb00 | ||
|
|
6dfbb30c0a | ||
|
|
94b0bc34c7 | ||
|
|
2c89a24550 | ||
|
|
4d2207db61 | ||
|
|
27ac3525fb | ||
|
|
946c4fd8a9 | ||
|
|
bf0911b6f5 | ||
|
|
1a9770d227 | ||
|
|
c0a3661442 | ||
|
|
ba0a26bfb1 | ||
|
|
ac7dc7b478 | ||
|
|
24d94ed4ad | ||
|
|
fb45df2646 | ||
|
|
57893d0451 | ||
|
|
692ee67cf4 | ||
|
|
cacfb82b62 | ||
|
|
e3b56a32cc | ||
|
|
b487342878 | ||
|
|
0a365513dd | ||
|
|
1075ff6c38 | ||
|
|
76d27bb36d | ||
|
|
2f197666ac | ||
|
|
34b9ebf98f | ||
|
|
e1e7730dcc | ||
|
|
8269eee493 | ||
|
|
4fa1634986 | ||
|
|
5b5dee7f67 | ||
|
|
56c3b9a524 | ||
|
|
a815f66aa3 | ||
|
|
bcaaad93e4 | ||
|
|
1cd1bf3fc5 | ||
|
|
b210ad4793 | ||
|
|
4af4d02187 | ||
|
|
c340938778 | ||
|
|
cce4adf7e4 | ||
|
|
ee18601f12 | ||
|
|
68cc40f86e | ||
|
|
9b1f7b3303 | ||
|
|
01af20a3df | ||
|
|
f65d09bea2 | ||
|
|
aab4fb1b35 |
57
Dockerfile
57
Dockerfile
@@ -3,11 +3,12 @@ FROM lsiobase/alpine:3.10 as buildstage
|
|||||||
|
|
||||||
# package versions
|
# package versions
|
||||||
ARG ARGTABLE_VER="2.13"
|
ARG ARGTABLE_VER="2.13"
|
||||||
ARG XMLTV_VER="v0.6.1"
|
ARG TVH_VER="release/4.2"
|
||||||
|
ARG XMLTV_VER="v0.5.70"
|
||||||
|
ARG TVHEADEND_COMMIT
|
||||||
|
|
||||||
# environment settings
|
# environment settings
|
||||||
ARG TZ="Europe/Oslo"
|
ARG TZ="Europe/Oslo"
|
||||||
ARG TVHEADEND_COMMIT
|
|
||||||
ENV HOME="/config"
|
ENV HOME="/config"
|
||||||
|
|
||||||
# copy patches
|
# copy patches
|
||||||
@@ -31,18 +32,16 @@ RUN \
|
|||||||
git \
|
git \
|
||||||
gzip \
|
gzip \
|
||||||
jq \
|
jq \
|
||||||
libcurl \
|
|
||||||
libdvbcsa-dev \
|
|
||||||
libgcrypt-dev \
|
libgcrypt-dev \
|
||||||
libhdhomerun-dev \
|
libhdhomerun-dev \
|
||||||
|
libressl-dev \
|
||||||
libtool \
|
libtool \
|
||||||
libva-dev \
|
|
||||||
libvpx-dev \
|
libvpx-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
make \
|
make \
|
||||||
openssl-dev \
|
mercurial \
|
||||||
opus-dev \
|
opus-dev \
|
||||||
patch \
|
patch \
|
||||||
pcre2-dev \
|
pcre2-dev \
|
||||||
@@ -78,7 +77,6 @@ RUN \
|
|||||||
perl-lingua-en-numbers-ordinate \
|
perl-lingua-en-numbers-ordinate \
|
||||||
perl-lingua-preferred \
|
perl-lingua-preferred \
|
||||||
perl-list-moreutils \
|
perl-list-moreutils \
|
||||||
perl-lwp-useragent-determined \
|
|
||||||
perl-module-build \
|
perl-module-build \
|
||||||
perl-module-pluggable \
|
perl-module-pluggable \
|
||||||
perl-net-ssleay \
|
perl-net-ssleay \
|
||||||
@@ -120,7 +118,7 @@ RUN \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install perl modules for xmltv ****" && \
|
echo "**** install perl modules for xmltv ****" && \
|
||||||
curl -L https://cpanmin.us | perl - App::cpanminus && \
|
curl -L http://cpanmin.us | perl - App::cpanminus && \
|
||||||
cpanm --installdeps /tmp/patches
|
cpanm --installdeps /tmp/patches
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@@ -141,44 +139,41 @@ RUN \
|
|||||||
make test && \
|
make test && \
|
||||||
make DESTDIR=/tmp/xmltv-build install
|
make DESTDIR=/tmp/xmltv-build install
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
echo "**** compile dvb-apps ****" && \
|
||||||
|
hg clone http://linuxtv.org/hg/dvb-apps /tmp/dvb-apps && \
|
||||||
|
cd /tmp/dvb-apps && \
|
||||||
|
make -C lib && \
|
||||||
|
make -C lib DESTDIR=/tmp/dvbapps-build install && \
|
||||||
|
cp -pr /tmp/dvbapps-build/usr/* /usr/
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** compile tvheadend ****" && \
|
echo "**** compile tvheadend ****" && \
|
||||||
if [ -z ${TVHEADEND_COMMIT+x} ]; then \
|
if [ -z ${TVHEADEND_COMMIT+x} ]; then \
|
||||||
TVHEADEND_COMMIT=$(curl -sX GET https://api.github.com/repos/tvheadend/tvheadend/commits/master \
|
TVHEADEND_COMMIT=$(curl -sX GET https://api.github.com/repos/tvheadend/tvheadend/commits/${TVH_VER} \
|
||||||
| jq -r '. | .sha'); \
|
| jq -r '. | .sha'); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/tmp/tvheadend && \
|
/tmp/tvheadend && \
|
||||||
git clone https://github.com/tvheadend/tvheadend.git /tmp/tvheadend && \
|
git clone https://github.com/tvheadend/tvheadend.git /tmp/tvheadend && \
|
||||||
cd /tmp/tvheadend && \
|
cd /tmp/tvheadend && \
|
||||||
git checkout ${TVHEADEND_COMMIT} && \
|
git checkout ${TVHEADEND_COMMIT} && \
|
||||||
./configure \
|
./configure \
|
||||||
`#Encoding` \
|
--disable-avahi \
|
||||||
|
--disable-bintray_cache \
|
||||||
|
--disable-dbus_1 \
|
||||||
--disable-ffmpeg_static \
|
--disable-ffmpeg_static \
|
||||||
|
--disable-hdhomerun_static \
|
||||||
--disable-libfdkaac_static \
|
--disable-libfdkaac_static \
|
||||||
|
--disable-libmfx_static \
|
||||||
--disable-libtheora_static \
|
--disable-libtheora_static \
|
||||||
--disable-libopus_static \
|
|
||||||
--disable-libvorbis_static \
|
--disable-libvorbis_static \
|
||||||
--disable-libvpx_static \
|
--disable-libvpx_static \
|
||||||
--disable-libx264_static \
|
--disable-libx264_static \
|
||||||
--disable-libx265_static \
|
--disable-libx265_static \
|
||||||
--disable-libfdkaac \
|
|
||||||
--enable-libopus \
|
|
||||||
--enable-libvorbis \
|
|
||||||
--enable-libvpx \
|
|
||||||
--enable-libx264 \
|
|
||||||
--enable-libx265 \
|
|
||||||
\
|
|
||||||
`#Options` \
|
|
||||||
--disable-avahi \
|
|
||||||
--disable-dbus_1 \
|
|
||||||
--disable-bintray_cache \
|
|
||||||
--disable-hdhomerun_static \
|
|
||||||
--enable-hdhomerun_client \
|
--enable-hdhomerun_client \
|
||||||
--enable-libav \
|
--enable-libav \
|
||||||
--enable-pngquant \
|
--enable-pngquant \
|
||||||
--enable-trace \
|
|
||||||
--enable-vaapi \
|
|
||||||
--infodir=/usr/share/info \
|
--infodir=/usr/share/info \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
@@ -241,18 +236,14 @@ RUN \
|
|||||||
ffmpeg-libs \
|
ffmpeg-libs \
|
||||||
gzip \
|
gzip \
|
||||||
libcrypto1.1 \
|
libcrypto1.1 \
|
||||||
libcurl \
|
libcurl \
|
||||||
libdvbcsa \
|
|
||||||
libhdhomerun-libs \
|
libhdhomerun-libs \
|
||||||
|
libressl \
|
||||||
libssl1.1 \
|
libssl1.1 \
|
||||||
libva \
|
|
||||||
libva-intel-driver \
|
|
||||||
mesa-dri-ati \
|
|
||||||
libvpx \
|
libvpx \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
libxslt \
|
libxslt \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
openssl \
|
|
||||||
opus \
|
opus \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
perl \
|
perl \
|
||||||
@@ -287,7 +278,6 @@ RUN \
|
|||||||
perl-lingua-en-numbers-ordinate \
|
perl-lingua-en-numbers-ordinate \
|
||||||
perl-lingua-preferred \
|
perl-lingua-preferred \
|
||||||
perl-list-moreutils \
|
perl-list-moreutils \
|
||||||
perl-lwp-useragent-determined \
|
|
||||||
perl-module-build \
|
perl-module-build \
|
||||||
perl-module-pluggable \
|
perl-module-pluggable \
|
||||||
perl-net-ssleay \
|
perl-net-ssleay \
|
||||||
@@ -327,6 +317,7 @@ RUN \
|
|||||||
# copy local files and buildstage artifacts
|
# copy local files and buildstage artifacts
|
||||||
COPY --from=buildstage /tmp/argtable-build/usr/ /usr/
|
COPY --from=buildstage /tmp/argtable-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/comskip-build/usr/ /usr/
|
COPY --from=buildstage /tmp/comskip-build/usr/ /usr/
|
||||||
|
COPY --from=buildstage /tmp/dvbapps-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/tvheadend-build/usr/ /usr/
|
COPY --from=buildstage /tmp/tvheadend-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/xmltv-build/usr/ /usr/
|
COPY --from=buildstage /tmp/xmltv-build/usr/ /usr/
|
||||||
COPY --from=buildstage /usr/local/share/man/ /usr/local/share/man/
|
COPY --from=buildstage /usr/local/share/man/ /usr/local/share/man/
|
||||||
|
|||||||
@@ -3,11 +3,12 @@ FROM lsiobase/alpine:arm64v8-3.10 as buildstage
|
|||||||
|
|
||||||
# package versions
|
# package versions
|
||||||
ARG ARGTABLE_VER="2.13"
|
ARG ARGTABLE_VER="2.13"
|
||||||
ARG XMLTV_VER="v0.6.1"
|
ARG TVH_VER="release/4.2"
|
||||||
|
ARG XMLTV_VER="v0.5.70"
|
||||||
|
ARG TVHEADEND_COMMIT
|
||||||
|
|
||||||
# environment settings
|
# environment settings
|
||||||
ARG TZ="Europe/Oslo"
|
ARG TZ="Europe/Oslo"
|
||||||
ARG TVHEADEND_COMMIT
|
|
||||||
ENV HOME="/config"
|
ENV HOME="/config"
|
||||||
|
|
||||||
# copy patches
|
# copy patches
|
||||||
@@ -31,17 +32,16 @@ RUN \
|
|||||||
git \
|
git \
|
||||||
gzip \
|
gzip \
|
||||||
jq \
|
jq \
|
||||||
libcurl \
|
|
||||||
libdvbcsa-dev \
|
|
||||||
libgcrypt-dev \
|
libgcrypt-dev \
|
||||||
libhdhomerun-dev \
|
libhdhomerun-dev \
|
||||||
|
libressl-dev \
|
||||||
libtool \
|
libtool \
|
||||||
libvpx-dev \
|
libvpx-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
make \
|
make \
|
||||||
openssl-dev \
|
mercurial \
|
||||||
opus-dev \
|
opus-dev \
|
||||||
patch \
|
patch \
|
||||||
pcre2-dev \
|
pcre2-dev \
|
||||||
@@ -77,7 +77,6 @@ RUN \
|
|||||||
perl-lingua-en-numbers-ordinate \
|
perl-lingua-en-numbers-ordinate \
|
||||||
perl-lingua-preferred \
|
perl-lingua-preferred \
|
||||||
perl-list-moreutils \
|
perl-list-moreutils \
|
||||||
perl-lwp-useragent-determined \
|
|
||||||
perl-module-build \
|
perl-module-build \
|
||||||
perl-module-pluggable \
|
perl-module-pluggable \
|
||||||
perl-net-ssleay \
|
perl-net-ssleay \
|
||||||
@@ -119,7 +118,7 @@ RUN \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install perl modules for xmltv ****" && \
|
echo "**** install perl modules for xmltv ****" && \
|
||||||
curl -L https://cpanmin.us | perl - App::cpanminus && \
|
curl -L http://cpanmin.us | perl - App::cpanminus && \
|
||||||
cpanm --installdeps /tmp/patches
|
cpanm --installdeps /tmp/patches
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@@ -140,11 +139,19 @@ RUN \
|
|||||||
make test && \
|
make test && \
|
||||||
make DESTDIR=/tmp/xmltv-build install
|
make DESTDIR=/tmp/xmltv-build install
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
echo "**** compile dvb-apps ****" && \
|
||||||
|
hg clone http://linuxtv.org/hg/dvb-apps /tmp/dvb-apps && \
|
||||||
|
cd /tmp/dvb-apps && \
|
||||||
|
make -C lib && \
|
||||||
|
make -C lib DESTDIR=/tmp/dvbapps-build install && \
|
||||||
|
cp -pr /tmp/dvbapps-build/usr/* /usr/
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** compile tvheadend ****" && \
|
echo "**** compile tvheadend ****" && \
|
||||||
if [ -z ${TVHEADEND_COMMIT+x} ]; then \
|
if [ -z ${TVHEADEND_COMMIT+x} ]; then \
|
||||||
TVHEADEND_COMMIT=$(curl -sX GET https://api.github.com/repos/tvheadend/tvheadend/commits/master \
|
TVHEADEND_COMMIT=$(curl -sX GET https://api.github.com/repos/tvheadend/tvheadend/commits/${TVH_VER} \
|
||||||
| jq -r '. | .sha'); \
|
| jq -r '. | .sha'); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/tmp/tvheadend && \
|
/tmp/tvheadend && \
|
||||||
@@ -152,31 +159,21 @@ RUN \
|
|||||||
cd /tmp/tvheadend && \
|
cd /tmp/tvheadend && \
|
||||||
git checkout ${TVHEADEND_COMMIT} && \
|
git checkout ${TVHEADEND_COMMIT} && \
|
||||||
./configure \
|
./configure \
|
||||||
`#Encoding` \
|
--disable-avahi \
|
||||||
|
--disable-bintray_cache \
|
||||||
|
--disable-dbus_1 \
|
||||||
--disable-ffmpeg_static \
|
--disable-ffmpeg_static \
|
||||||
|
--disable-hdhomerun_static \
|
||||||
--disable-libfdkaac_static \
|
--disable-libfdkaac_static \
|
||||||
|
--disable-libmfx_static \
|
||||||
--disable-libtheora_static \
|
--disable-libtheora_static \
|
||||||
--disable-libopus_static \
|
|
||||||
--disable-libvorbis_static \
|
--disable-libvorbis_static \
|
||||||
--disable-libvpx_static \
|
--disable-libvpx_static \
|
||||||
--disable-libx264_static \
|
--disable-libx264_static \
|
||||||
--disable-libx265_static \
|
--disable-libx265_static \
|
||||||
--disable-libfdkaac \
|
|
||||||
--enable-libopus \
|
|
||||||
--enable-libvorbis \
|
|
||||||
--enable-libvpx \
|
|
||||||
--enable-libx264 \
|
|
||||||
--enable-libx265 \
|
|
||||||
\
|
|
||||||
`#Options` \
|
|
||||||
--disable-avahi \
|
|
||||||
--disable-dbus_1 \
|
|
||||||
--disable-bintray_cache \
|
|
||||||
--disable-hdhomerun_static \
|
|
||||||
--enable-hdhomerun_client \
|
--enable-hdhomerun_client \
|
||||||
--enable-libav \
|
--enable-libav \
|
||||||
--enable-pngquant \
|
--enable-pngquant \
|
||||||
--enable-trace \
|
|
||||||
--infodir=/usr/share/info \
|
--infodir=/usr/share/info \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
@@ -239,15 +236,14 @@ RUN \
|
|||||||
ffmpeg-libs \
|
ffmpeg-libs \
|
||||||
gzip \
|
gzip \
|
||||||
libcrypto1.1 \
|
libcrypto1.1 \
|
||||||
libcurl \
|
libcurl \
|
||||||
libdvbcsa \
|
|
||||||
libhdhomerun-libs \
|
libhdhomerun-libs \
|
||||||
|
libressl \
|
||||||
libssl1.1 \
|
libssl1.1 \
|
||||||
libvpx \
|
libvpx \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
libxslt \
|
libxslt \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
openssl \
|
|
||||||
opus \
|
opus \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
perl \
|
perl \
|
||||||
@@ -282,7 +278,6 @@ RUN \
|
|||||||
perl-lingua-en-numbers-ordinate \
|
perl-lingua-en-numbers-ordinate \
|
||||||
perl-lingua-preferred \
|
perl-lingua-preferred \
|
||||||
perl-list-moreutils \
|
perl-list-moreutils \
|
||||||
perl-lwp-useragent-determined \
|
|
||||||
perl-module-build \
|
perl-module-build \
|
||||||
perl-module-pluggable \
|
perl-module-pluggable \
|
||||||
perl-net-ssleay \
|
perl-net-ssleay \
|
||||||
@@ -322,6 +317,7 @@ RUN \
|
|||||||
# copy local files and buildstage artifacts
|
# copy local files and buildstage artifacts
|
||||||
COPY --from=buildstage /tmp/argtable-build/usr/ /usr/
|
COPY --from=buildstage /tmp/argtable-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/comskip-build/usr/ /usr/
|
COPY --from=buildstage /tmp/comskip-build/usr/ /usr/
|
||||||
|
COPY --from=buildstage /tmp/dvbapps-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/tvheadend-build/usr/ /usr/
|
COPY --from=buildstage /tmp/tvheadend-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/xmltv-build/usr/ /usr/
|
COPY --from=buildstage /tmp/xmltv-build/usr/ /usr/
|
||||||
COPY --from=buildstage /usr/local/share/man/ /usr/local/share/man/
|
COPY --from=buildstage /usr/local/share/man/ /usr/local/share/man/
|
||||||
|
|||||||
@@ -3,11 +3,12 @@ FROM lsiobase/alpine:arm32v7-3.10 as buildstage
|
|||||||
|
|
||||||
# package versions
|
# package versions
|
||||||
ARG ARGTABLE_VER="2.13"
|
ARG ARGTABLE_VER="2.13"
|
||||||
ARG XMLTV_VER="v0.6.1"
|
ARG TVH_VER="release/4.2"
|
||||||
|
ARG XMLTV_VER="v0.5.70"
|
||||||
|
ARG TVHEADEND_COMMIT
|
||||||
|
|
||||||
# environment settings
|
# environment settings
|
||||||
ARG TZ="Europe/Oslo"
|
ARG TZ="Europe/Oslo"
|
||||||
ARG TVHEADEND_COMMIT
|
|
||||||
ENV HOME="/config"
|
ENV HOME="/config"
|
||||||
|
|
||||||
# copy patches
|
# copy patches
|
||||||
@@ -31,17 +32,16 @@ RUN \
|
|||||||
git \
|
git \
|
||||||
gzip \
|
gzip \
|
||||||
jq \
|
jq \
|
||||||
libcurl \
|
|
||||||
libdvbcsa-dev \
|
|
||||||
libgcrypt-dev \
|
libgcrypt-dev \
|
||||||
libhdhomerun-dev \
|
libhdhomerun-dev \
|
||||||
|
libressl-dev \
|
||||||
libtool \
|
libtool \
|
||||||
libvpx-dev \
|
libvpx-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
make \
|
make \
|
||||||
openssl-dev \
|
mercurial \
|
||||||
opus-dev \
|
opus-dev \
|
||||||
patch \
|
patch \
|
||||||
pcre2-dev \
|
pcre2-dev \
|
||||||
@@ -77,7 +77,6 @@ RUN \
|
|||||||
perl-lingua-en-numbers-ordinate \
|
perl-lingua-en-numbers-ordinate \
|
||||||
perl-lingua-preferred \
|
perl-lingua-preferred \
|
||||||
perl-list-moreutils \
|
perl-list-moreutils \
|
||||||
perl-lwp-useragent-determined \
|
|
||||||
perl-module-build \
|
perl-module-build \
|
||||||
perl-module-pluggable \
|
perl-module-pluggable \
|
||||||
perl-net-ssleay \
|
perl-net-ssleay \
|
||||||
@@ -119,7 +118,7 @@ RUN \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install perl modules for xmltv ****" && \
|
echo "**** install perl modules for xmltv ****" && \
|
||||||
curl -L https://cpanmin.us | perl - App::cpanminus && \
|
curl -L http://cpanmin.us | perl - App::cpanminus && \
|
||||||
cpanm --installdeps /tmp/patches
|
cpanm --installdeps /tmp/patches
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@@ -140,11 +139,19 @@ RUN \
|
|||||||
make test && \
|
make test && \
|
||||||
make DESTDIR=/tmp/xmltv-build install
|
make DESTDIR=/tmp/xmltv-build install
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
echo "**** compile dvb-apps ****" && \
|
||||||
|
hg clone http://linuxtv.org/hg/dvb-apps /tmp/dvb-apps && \
|
||||||
|
cd /tmp/dvb-apps && \
|
||||||
|
make -C lib && \
|
||||||
|
make -C lib DESTDIR=/tmp/dvbapps-build install && \
|
||||||
|
cp -pr /tmp/dvbapps-build/usr/* /usr/
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** compile tvheadend ****" && \
|
echo "**** compile tvheadend ****" && \
|
||||||
if [ -z ${TVHEADEND_COMMIT+x} ]; then \
|
if [ -z ${TVHEADEND_COMMIT+x} ]; then \
|
||||||
TVHEADEND_COMMIT=$(curl -sX GET https://api.github.com/repos/tvheadend/tvheadend/commits/master \
|
TVHEADEND_COMMIT=$(curl -sX GET https://api.github.com/repos/tvheadend/tvheadend/commits/${TVH_VER} \
|
||||||
| jq -r '. | .sha'); \
|
| jq -r '. | .sha'); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/tmp/tvheadend && \
|
/tmp/tvheadend && \
|
||||||
@@ -152,31 +159,21 @@ RUN \
|
|||||||
cd /tmp/tvheadend && \
|
cd /tmp/tvheadend && \
|
||||||
git checkout ${TVHEADEND_COMMIT} && \
|
git checkout ${TVHEADEND_COMMIT} && \
|
||||||
./configure \
|
./configure \
|
||||||
`#Encoding` \
|
--disable-avahi \
|
||||||
|
--disable-bintray_cache \
|
||||||
|
--disable-dbus_1 \
|
||||||
--disable-ffmpeg_static \
|
--disable-ffmpeg_static \
|
||||||
|
--disable-hdhomerun_static \
|
||||||
--disable-libfdkaac_static \
|
--disable-libfdkaac_static \
|
||||||
|
--disable-libmfx_static \
|
||||||
--disable-libtheora_static \
|
--disable-libtheora_static \
|
||||||
--disable-libopus_static \
|
|
||||||
--disable-libvorbis_static \
|
--disable-libvorbis_static \
|
||||||
--disable-libvpx_static \
|
--disable-libvpx_static \
|
||||||
--disable-libx264_static \
|
--disable-libx264_static \
|
||||||
--disable-libx265_static \
|
--disable-libx265_static \
|
||||||
--disable-libfdkaac \
|
|
||||||
--enable-libopus \
|
|
||||||
--enable-libvorbis \
|
|
||||||
--enable-libvpx \
|
|
||||||
--enable-libx264 \
|
|
||||||
--enable-libx265 \
|
|
||||||
\
|
|
||||||
`#Options` \
|
|
||||||
--disable-avahi \
|
|
||||||
--disable-dbus_1 \
|
|
||||||
--disable-bintray_cache \
|
|
||||||
--disable-hdhomerun_static \
|
|
||||||
--enable-hdhomerun_client \
|
--enable-hdhomerun_client \
|
||||||
--enable-libav \
|
--enable-libav \
|
||||||
--enable-pngquant \
|
--enable-pngquant \
|
||||||
--enable-trace \
|
|
||||||
--infodir=/usr/share/info \
|
--infodir=/usr/share/info \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
@@ -239,15 +236,14 @@ RUN \
|
|||||||
ffmpeg-libs \
|
ffmpeg-libs \
|
||||||
gzip \
|
gzip \
|
||||||
libcrypto1.1 \
|
libcrypto1.1 \
|
||||||
libcurl \
|
libcurl \
|
||||||
libdvbcsa \
|
|
||||||
libhdhomerun-libs \
|
libhdhomerun-libs \
|
||||||
|
libressl \
|
||||||
libssl1.1 \
|
libssl1.1 \
|
||||||
libvpx \
|
libvpx \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
libxslt \
|
libxslt \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
openssl \
|
|
||||||
opus \
|
opus \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
perl \
|
perl \
|
||||||
@@ -282,7 +278,6 @@ RUN \
|
|||||||
perl-lingua-en-numbers-ordinate \
|
perl-lingua-en-numbers-ordinate \
|
||||||
perl-lingua-preferred \
|
perl-lingua-preferred \
|
||||||
perl-list-moreutils \
|
perl-list-moreutils \
|
||||||
perl-lwp-useragent-determined \
|
|
||||||
perl-module-build \
|
perl-module-build \
|
||||||
perl-module-pluggable \
|
perl-module-pluggable \
|
||||||
perl-net-ssleay \
|
perl-net-ssleay \
|
||||||
@@ -322,6 +317,7 @@ RUN \
|
|||||||
# copy local files and buildstage artifacts
|
# copy local files and buildstage artifacts
|
||||||
COPY --from=buildstage /tmp/argtable-build/usr/ /usr/
|
COPY --from=buildstage /tmp/argtable-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/comskip-build/usr/ /usr/
|
COPY --from=buildstage /tmp/comskip-build/usr/ /usr/
|
||||||
|
COPY --from=buildstage /tmp/dvbapps-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/tvheadend-build/usr/ /usr/
|
COPY --from=buildstage /tmp/tvheadend-build/usr/ /usr/
|
||||||
COPY --from=buildstage /tmp/xmltv-build/usr/ /usr/
|
COPY --from=buildstage /tmp/xmltv-build/usr/ /usr/
|
||||||
COPY --from=buildstage /usr/local/share/man/ /usr/local/share/man/
|
COPY --from=buildstage /usr/local/share/man/ /usr/local/share/man/
|
||||||
|
|||||||
68
Jenkinsfile
vendored
68
Jenkinsfile
vendored
@@ -14,7 +14,7 @@ pipeline {
|
|||||||
environment {
|
environment {
|
||||||
BUILDS_DISCORD=credentials('build_webhook_url')
|
BUILDS_DISCORD=credentials('build_webhook_url')
|
||||||
GITHUB_TOKEN=credentials('498b4638-2d02-4ce5-832d-8a57d01d97ab')
|
GITHUB_TOKEN=credentials('498b4638-2d02-4ce5-832d-8a57d01d97ab')
|
||||||
EXT_GIT_BRANCH = 'master'
|
EXT_GIT_BRANCH = 'release/4.2'
|
||||||
EXT_USER = 'tvheadend'
|
EXT_USER = 'tvheadend'
|
||||||
EXT_REPO = 'tvheadend'
|
EXT_REPO = 'tvheadend'
|
||||||
BUILD_VERSION_ARG = 'TVHEADEND_COMMIT'
|
BUILD_VERSION_ARG = 'TVHEADEND_COMMIT'
|
||||||
@@ -42,7 +42,7 @@ pipeline {
|
|||||||
script{
|
script{
|
||||||
env.EXIT_STATUS = ''
|
env.EXIT_STATUS = ''
|
||||||
env.LS_RELEASE = sh(
|
env.LS_RELEASE = sh(
|
||||||
script: '''docker run --rm alexeiled/skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':latest 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
|
script: '''docker run --rm alexeiled/skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':release-4.2 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
env.LS_RELEASE_NOTES = sh(
|
env.LS_RELEASE_NOTES = sh(
|
||||||
script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''',
|
script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''',
|
||||||
@@ -127,10 +127,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If this is a master build use live docker endpoints
|
// If this is a release-4.2 build use live docker endpoints
|
||||||
stage("Set ENV live build"){
|
stage("Set ENV live build"){
|
||||||
when {
|
when {
|
||||||
branch "master"
|
branch "release-4.2"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
@@ -148,7 +148,7 @@ pipeline {
|
|||||||
// If this is a dev build use dev docker endpoints
|
// If this is a dev build use dev docker endpoints
|
||||||
stage("Set ENV dev build"){
|
stage("Set ENV dev build"){
|
||||||
when {
|
when {
|
||||||
not {branch "master"}
|
not {branch "release-4.2"}
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
@@ -215,7 +215,7 @@ pipeline {
|
|||||||
// Use helper containers to render templated files
|
// Use helper containers to render templated files
|
||||||
stage('Update-Templates') {
|
stage('Update-Templates') {
|
||||||
when {
|
when {
|
||||||
branch "master"
|
branch "release-4.2"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
expression {
|
expression {
|
||||||
env.CONTAINER_NAME != null
|
env.CONTAINER_NAME != null
|
||||||
@@ -226,7 +226,7 @@ pipeline {
|
|||||||
set -e
|
set -e
|
||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
docker pull linuxserver/jenkins-builder:latest
|
docker pull linuxserver/jenkins-builder:latest
|
||||||
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=master -v ${TEMPDIR}:/ansible/jenkins linuxserver/jenkins-builder:latest
|
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=release-4.2 -v ${TEMPDIR}:/ansible/jenkins linuxserver/jenkins-builder:latest
|
||||||
CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
||||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
||||||
NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
||||||
@@ -234,7 +234,7 @@ pipeline {
|
|||||||
mkdir -p ${TEMPDIR}/repo
|
mkdir -p ${TEMPDIR}/repo
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
||||||
cd ${TEMPDIR}/repo/${LS_REPO}
|
cd ${TEMPDIR}/repo/${LS_REPO}
|
||||||
git checkout -f master
|
git checkout -f release-4.2
|
||||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
||||||
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github
|
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github
|
||||||
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/
|
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/
|
||||||
@@ -266,7 +266,7 @@ pipeline {
|
|||||||
// Exit the build if the Templated files were just updated
|
// Exit the build if the Templated files were just updated
|
||||||
stage('Template-exit') {
|
stage('Template-exit') {
|
||||||
when {
|
when {
|
||||||
branch "master"
|
branch "release-4.2"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'FILES_UPDATED', value: 'true'
|
environment name: 'FILES_UPDATED', value: 'true'
|
||||||
expression {
|
expression {
|
||||||
@@ -365,7 +365,7 @@ pipeline {
|
|||||||
// Take the image we just built and dump package versions for comparison
|
// Take the image we just built and dump package versions for comparison
|
||||||
stage('Update-packages') {
|
stage('Update-packages') {
|
||||||
when {
|
when {
|
||||||
branch "master"
|
branch "release-4.2"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
}
|
}
|
||||||
@@ -393,7 +393,7 @@ pipeline {
|
|||||||
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
|
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
|
||||||
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
|
if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then
|
||||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/${LS_REPO}
|
||||||
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f master
|
git --git-dir ${TEMPDIR}/${LS_REPO}/.git checkout -f release-4.2
|
||||||
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
cp ${TEMPDIR}/package_versions.txt ${TEMPDIR}/${LS_REPO}/
|
||||||
cd ${TEMPDIR}/${LS_REPO}/
|
cd ${TEMPDIR}/${LS_REPO}/
|
||||||
wait
|
wait
|
||||||
@@ -417,7 +417,7 @@ pipeline {
|
|||||||
// Exit the build if the package file was just updated
|
// Exit the build if the package file was just updated
|
||||||
stage('PACKAGE-exit') {
|
stage('PACKAGE-exit') {
|
||||||
when {
|
when {
|
||||||
branch "master"
|
branch "release-4.2"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'PACKAGE_UPDATED', value: 'true'
|
environment name: 'PACKAGE_UPDATED', value: 'true'
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
@@ -431,7 +431,7 @@ pipeline {
|
|||||||
// Exit the build if this is just a package check and there are no changes to push
|
// Exit the build if this is just a package check and there are no changes to push
|
||||||
stage('PACKAGECHECK-exit') {
|
stage('PACKAGECHECK-exit') {
|
||||||
when {
|
when {
|
||||||
branch "master"
|
branch "release-4.2"
|
||||||
environment name: 'CHANGE_ID', value: ''
|
environment name: 'CHANGE_ID', value: ''
|
||||||
environment name: 'PACKAGE_UPDATED', value: 'false'
|
environment name: 'PACKAGE_UPDATED', value: 'false'
|
||||||
environment name: 'EXIT_STATUS', value: ''
|
environment name: 'EXIT_STATUS', value: ''
|
||||||
@@ -516,12 +516,12 @@ pipeline {
|
|||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
|
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
|
||||||
'''
|
'''
|
||||||
sh "docker tag ${IMAGE}:${META_TAG} ${IMAGE}:latest"
|
sh "docker tag ${IMAGE}:${META_TAG} ${IMAGE}:release-4.2"
|
||||||
sh "docker push ${IMAGE}:latest"
|
sh "docker push ${IMAGE}:release-4.2"
|
||||||
sh "docker push ${IMAGE}:${META_TAG}"
|
sh "docker push ${IMAGE}:${META_TAG}"
|
||||||
sh '''docker rmi \
|
sh '''docker rmi \
|
||||||
${IMAGE}:${META_TAG} \
|
${IMAGE}:${META_TAG} \
|
||||||
${IMAGE}:latest || :'''
|
${IMAGE}:release-4.2 || :'''
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -551,32 +551,32 @@ pipeline {
|
|||||||
docker tag lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm32v7-${META_TAG}
|
docker tag lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm32v7-${META_TAG}
|
||||||
docker tag lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}
|
docker tag lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG}
|
||||||
fi'''
|
fi'''
|
||||||
sh "docker tag ${IMAGE}:amd64-${META_TAG} ${IMAGE}:amd64-latest"
|
sh "docker tag ${IMAGE}:amd64-${META_TAG} ${IMAGE}:amd64-release-4.2"
|
||||||
sh "docker tag ${IMAGE}:arm32v7-${META_TAG} ${IMAGE}:arm32v7-latest"
|
sh "docker tag ${IMAGE}:arm32v7-${META_TAG} ${IMAGE}:arm32v7-release-4.2"
|
||||||
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} ${IMAGE}:arm64v8-latest"
|
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} ${IMAGE}:arm64v8-release-4.2"
|
||||||
sh "docker push ${IMAGE}:amd64-${META_TAG}"
|
sh "docker push ${IMAGE}:amd64-${META_TAG}"
|
||||||
sh "docker push ${IMAGE}:arm32v7-${META_TAG}"
|
sh "docker push ${IMAGE}:arm32v7-${META_TAG}"
|
||||||
sh "docker push ${IMAGE}:arm64v8-${META_TAG}"
|
sh "docker push ${IMAGE}:arm64v8-${META_TAG}"
|
||||||
sh "docker push ${IMAGE}:amd64-latest"
|
sh "docker push ${IMAGE}:amd64-release-4.2"
|
||||||
sh "docker push ${IMAGE}:arm32v7-latest"
|
sh "docker push ${IMAGE}:arm32v7-release-4.2"
|
||||||
sh "docker push ${IMAGE}:arm64v8-latest"
|
sh "docker push ${IMAGE}:arm64v8-release-4.2"
|
||||||
sh "docker manifest push --purge ${IMAGE}:latest || :"
|
sh "docker manifest push --purge ${IMAGE}:release-4.2 || :"
|
||||||
sh "docker manifest create ${IMAGE}:latest ${IMAGE}:amd64-latest ${IMAGE}:arm32v7-latest ${IMAGE}:arm64v8-latest"
|
sh "docker manifest create ${IMAGE}:release-4.2 ${IMAGE}:amd64-release-4.2 ${IMAGE}:arm32v7-release-4.2 ${IMAGE}:arm64v8-release-4.2"
|
||||||
sh "docker manifest annotate ${IMAGE}:latest ${IMAGE}:arm32v7-latest --os linux --arch arm"
|
sh "docker manifest annotate ${IMAGE}:release-4.2 ${IMAGE}:arm32v7-release-4.2 --os linux --arch arm"
|
||||||
sh "docker manifest annotate ${IMAGE}:latest ${IMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8"
|
sh "docker manifest annotate ${IMAGE}:release-4.2 ${IMAGE}:arm64v8-release-4.2 --os linux --arch arm64 --variant v8"
|
||||||
sh "docker manifest push --purge ${IMAGE}:${META_TAG} || :"
|
sh "docker manifest push --purge ${IMAGE}:${META_TAG} || :"
|
||||||
sh "docker manifest create ${IMAGE}:${META_TAG} ${IMAGE}:amd64-${META_TAG} ${IMAGE}:arm32v7-${META_TAG} ${IMAGE}:arm64v8-${META_TAG}"
|
sh "docker manifest create ${IMAGE}:${META_TAG} ${IMAGE}:amd64-${META_TAG} ${IMAGE}:arm32v7-${META_TAG} ${IMAGE}:arm64v8-${META_TAG}"
|
||||||
sh "docker manifest annotate ${IMAGE}:${META_TAG} ${IMAGE}:arm32v7-${META_TAG} --os linux --arch arm"
|
sh "docker manifest annotate ${IMAGE}:${META_TAG} ${IMAGE}:arm32v7-${META_TAG} --os linux --arch arm"
|
||||||
sh "docker manifest annotate ${IMAGE}:${META_TAG} ${IMAGE}:arm64v8-${META_TAG} --os linux --arch arm64 --variant v8"
|
sh "docker manifest annotate ${IMAGE}:${META_TAG} ${IMAGE}:arm64v8-${META_TAG} --os linux --arch arm64 --variant v8"
|
||||||
sh "docker manifest push --purge ${IMAGE}:latest"
|
sh "docker manifest push --purge ${IMAGE}:release-4.2"
|
||||||
sh "docker manifest push --purge ${IMAGE}:${META_TAG}"
|
sh "docker manifest push --purge ${IMAGE}:${META_TAG}"
|
||||||
sh '''docker rmi \
|
sh '''docker rmi \
|
||||||
${IMAGE}:amd64-${META_TAG} \
|
${IMAGE}:amd64-${META_TAG} \
|
||||||
${IMAGE}:amd64-latest \
|
${IMAGE}:amd64-release-4.2 \
|
||||||
${IMAGE}:arm32v7-${META_TAG} \
|
${IMAGE}:arm32v7-${META_TAG} \
|
||||||
${IMAGE}:arm32v7-latest \
|
${IMAGE}:arm32v7-release-4.2 \
|
||||||
${IMAGE}:arm64v8-${META_TAG} \
|
${IMAGE}:arm64v8-${META_TAG} \
|
||||||
${IMAGE}:arm64v8-latest \
|
${IMAGE}:arm64v8-release-4.2 \
|
||||||
lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} \
|
lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} \
|
||||||
lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
||||||
}
|
}
|
||||||
@@ -585,7 +585,7 @@ pipeline {
|
|||||||
// If this is a public release tag it in the LS Github
|
// If this is a public release tag it in the LS Github
|
||||||
stage('Github-Tag-Push-Release') {
|
stage('Github-Tag-Push-Release') {
|
||||||
when {
|
when {
|
||||||
branch "master"
|
branch "release-4.2"
|
||||||
expression {
|
expression {
|
||||||
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
env.LS_RELEASE != env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||||
}
|
}
|
||||||
@@ -597,17 +597,17 @@ pipeline {
|
|||||||
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/git/tags \
|
||||||
-d '{"tag":"'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
-d '{"tag":"'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
||||||
"object": "'${COMMIT_SHA}'",\
|
"object": "'${COMMIT_SHA}'",\
|
||||||
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to master",\
|
"message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to release-4.2",\
|
||||||
"type": "commit",\
|
"type": "commit",\
|
||||||
"tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
"tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' '''
|
||||||
echo "Pushing New release for Tag"
|
echo "Pushing New release for Tag"
|
||||||
sh '''#! /bin/bash
|
sh '''#! /bin/bash
|
||||||
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq '. | .commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
|
curl -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq '. | .commit.message' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
|
||||||
echo '{"tag_name":"'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
echo '{"tag_name":"'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
||||||
"target_commitish": "master",\
|
"target_commitish": "release-4.2",\
|
||||||
"name": "'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
"name": "'${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}'",\
|
||||||
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
|
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n**'${EXT_REPO}' Changes:**\\n\\n' > start
|
||||||
printf '","draft": false,"prerelease": false}' >> releasebody.json
|
printf '","draft": false,"prerelease": true}' >> releasebody.json
|
||||||
paste -d'\\0' start releasebody.json > releasebody.json.done
|
paste -d'\\0' start releasebody.json > releasebody.json.done
|
||||||
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
|
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
|
||||||
}
|
}
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -82,15 +82,14 @@ docker create \
|
|||||||
-v <path to data>:/config \
|
-v <path to data>:/config \
|
||||||
-v <path to recordings>:/recordings \
|
-v <path to recordings>:/recordings \
|
||||||
--device /dev/dri:/dev/dri `#optional` \
|
--device /dev/dri:/dev/dri `#optional` \
|
||||||
--device /dev/dvb:/dev/dvb `#optional` \
|
--device /dev/drb:/dev/dvb `#optional` \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
linuxserver/tvheadend
|
linuxserver/tvheadend
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Host vs. Bridge
|
#### Host vs. Bridge
|
||||||
|
|
||||||
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because to work with these services Tvheadend requires a multicast address of `239.255.255.250` and a UDP port of `1900` which at this time is not possible with docker bridge mode.
|
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because of a limitation in docker and multicast.
|
||||||
If you have other host services which also use multicast such as SSDP/DLNA/Emby you may experience stabilty problems. These can be solved by giving tvheadend its own IP using macavlan.
|
|
||||||
|
|
||||||
|
|
||||||
### docker-compose
|
### docker-compose
|
||||||
@@ -117,7 +116,7 @@ services:
|
|||||||
- 9982:9982
|
- 9982:9982
|
||||||
devices:
|
devices:
|
||||||
- /dev/dri:/dev/dri #optional
|
- /dev/dri:/dev/dri #optional
|
||||||
- /dev/dvb:/dev/dvb #optional
|
- /dev/drb:/dev/dvb #optional
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -279,14 +278,11 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
* **02.10.19:** - Improve permission fixing on render & dvb devices.
|
* **02.10.19:** - Improve permissions fixing on render & dvb devices.
|
||||||
* **18.08.19:** - Add AMD drivers.
|
|
||||||
* **02.08.19:** - Attempt to automatically fix permissions on /dev/dri and /dev/dvb.
|
* **02.08.19:** - Attempt to automatically fix permissions on /dev/dri and /dev/dvb.
|
||||||
* **28.06.19:** - Rebasing to alpine 3.10.
|
* **28.06.19:** - Rebasing to alpine 3.10.
|
||||||
* **27.03.19:** - Rebase to Alpine 3.9, fix init logic to only chown once.
|
* **27.03.19:** - Rebase to Alpine 3.9, fix init logic to only chown once.
|
||||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||||
* **01.03.19:** - Bump xmltv to 0.6.1.
|
|
||||||
* **28.02.19:** - add perl-lwp-useragent-determined.
|
|
||||||
* **17.02.19:** - Bump xmltv to 5.70, ensure version tagging works by cloning tvheadend.
|
* **17.02.19:** - Bump xmltv to 5.70, ensure version tagging works by cloning tvheadend.
|
||||||
* **14.02.19:** - Add picons path to config.
|
* **14.02.19:** - Add picons path to config.
|
||||||
* **15.01.19:** - Add pipeline logic and multi arch.
|
* **15.01.19:** - Add pipeline logic and multi arch.
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
# jenkins variables
|
# jenkins variables
|
||||||
project_name: docker-tvheadend
|
project_name: docker-tvheadend
|
||||||
external_type: github_commit
|
external_type: github_commit
|
||||||
release_type: stable
|
release_type: prerelease
|
||||||
release_tag: latest
|
release_tag: release-4.2
|
||||||
ls_branch: master
|
ls_branch: release-4.2
|
||||||
repo_vars:
|
repo_vars:
|
||||||
- EXT_GIT_BRANCH = 'master'
|
- EXT_GIT_BRANCH = 'release/4.2'
|
||||||
- EXT_USER = 'tvheadend'
|
- EXT_USER = 'tvheadend'
|
||||||
- EXT_REPO = 'tvheadend'
|
- EXT_REPO = 'tvheadend'
|
||||||
- BUILD_VERSION_ARG = 'TVHEADEND_COMMIT'
|
- BUILD_VERSION_ARG = 'TVHEADEND_COMMIT'
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ ca-certificates-20190108-r0
|
|||||||
ca-certificates-cacert-20190108-r0
|
ca-certificates-cacert-20190108-r0
|
||||||
coreutils-8.31-r0
|
coreutils-8.31-r0
|
||||||
curl-7.66.0-r0
|
curl-7.66.0-r0
|
||||||
elfutils-libelf-0.168-r2
|
|
||||||
expat-2.2.8-r0
|
expat-2.2.8-r0
|
||||||
ffmpeg-4.1.4-r0
|
ffmpeg-4.1.4-r0
|
||||||
ffmpeg-libs-4.1.4-r0
|
ffmpeg-libs-4.1.4-r0
|
||||||
@@ -32,7 +31,6 @@ libc-utils-0.7.1-r0
|
|||||||
libcrypto1.1-1.1.1d-r0
|
libcrypto1.1-1.1.1d-r0
|
||||||
libcurl-7.66.0-r0
|
libcurl-7.66.0-r0
|
||||||
libdrm-2.4.98-r0
|
libdrm-2.4.98-r0
|
||||||
libdvbcsa-1.1.0-r1
|
|
||||||
libffi-3.2.1-r6
|
libffi-3.2.1-r6
|
||||||
libgcc-8.3.0-r0
|
libgcc-8.3.0-r0
|
||||||
libgcrypt-1.8.5-r0
|
libgcrypt-1.8.5-r0
|
||||||
@@ -43,6 +41,10 @@ libjpeg-turbo-2.0.2-r0
|
|||||||
libogg-1.3.3-r2
|
libogg-1.3.3-r2
|
||||||
libpciaccess-0.14-r0
|
libpciaccess-0.14-r0
|
||||||
libpng-1.6.37-r1
|
libpng-1.6.37-r1
|
||||||
|
libressl-2.7.5-r0
|
||||||
|
libressl2.7-libcrypto-2.7.5-r0
|
||||||
|
libressl2.7-libssl-2.7.5-r0
|
||||||
|
libressl2.7-libtls-2.7.5-r0
|
||||||
libssl1.1-1.1.1d-r0
|
libssl1.1-1.1.1d-r0
|
||||||
libstdc++-8.3.0-r0
|
libstdc++-8.3.0-r0
|
||||||
libtasn1-4.14-r0
|
libtasn1-4.14-r0
|
||||||
@@ -52,7 +54,6 @@ libunistring-0.9.10-r0
|
|||||||
liburiparser-0.9.3-r0
|
liburiparser-0.9.3-r0
|
||||||
libuuid-2.33.2-r0
|
libuuid-2.33.2-r0
|
||||||
libva-2.4.1-r0
|
libva-2.4.1-r0
|
||||||
libva-intel-driver-2.3.0-r0
|
|
||||||
libvdpau-1.2-r0
|
libvdpau-1.2-r0
|
||||||
libvorbis-1.3.6-r2
|
libvorbis-1.3.6-r2
|
||||||
libvpx-1.8.0-r0
|
libvpx-1.8.0-r0
|
||||||
@@ -63,14 +64,9 @@ libxdmcp-1.1.3-r0
|
|||||||
libxext-1.3.4-r0
|
libxext-1.3.4-r0
|
||||||
libxfixes-5.0.3-r2
|
libxfixes-5.0.3-r2
|
||||||
libxml2-2.9.9-r2
|
libxml2-2.9.9-r2
|
||||||
libxshmfence-1.3-r0
|
|
||||||
libxslt-1.1.33-r1
|
libxslt-1.1.33-r1
|
||||||
linux-headers-4.19.36-r0
|
linux-headers-4.19.36-r0
|
||||||
linux-pam-1.3.0-r1
|
linux-pam-1.3.0-r1
|
||||||
llvm8-libs-8.0.0-r1
|
|
||||||
mesa-19.0.6-r0
|
|
||||||
mesa-dri-ati-19.0.6-r0
|
|
||||||
mesa-glapi-19.0.6-r0
|
|
||||||
musl-1.1.22-r3
|
musl-1.1.22-r3
|
||||||
musl-utils-1.1.22-r3
|
musl-utils-1.1.22-r3
|
||||||
ncurses-libs-6.1_p20190518-r0
|
ncurses-libs-6.1_p20190518-r0
|
||||||
@@ -78,7 +74,6 @@ ncurses-terminfo-6.1_p20190518-r0
|
|||||||
ncurses-terminfo-base-6.1_p20190518-r0
|
ncurses-terminfo-base-6.1_p20190518-r0
|
||||||
nettle-3.4.1-r1
|
nettle-3.4.1-r1
|
||||||
nghttp2-libs-1.39.2-r0
|
nghttp2-libs-1.39.2-r0
|
||||||
openssl-1.1.1d-r0
|
|
||||||
opus-1.3.1-r0
|
opus-1.3.1-r0
|
||||||
p11-kit-0.23.16.1-r0
|
p11-kit-0.23.16.1-r0
|
||||||
pcre2-10.33-r0
|
pcre2-10.33-r0
|
||||||
@@ -141,7 +136,6 @@ perl-lingua-preferred-0.2.4-r1
|
|||||||
perl-list-moreutils-0.428-r0
|
perl-list-moreutils-0.428-r0
|
||||||
perl-list-moreutils-xs-0.428-r1
|
perl-list-moreutils-xs-0.428-r1
|
||||||
perl-lwp-mediatypes-6.04-r0
|
perl-lwp-mediatypes-6.04-r0
|
||||||
perl-lwp-useragent-determined-1.07-r0
|
|
||||||
perl-module-build-0.4229-r0
|
perl-module-build-0.4229-r0
|
||||||
perl-module-implementation-0.09-r1
|
perl-module-implementation-0.09-r1
|
||||||
perl-module-metadata-1.000036-r0
|
perl-module-metadata-1.000036-r0
|
||||||
|
|||||||
@@ -53,15 +53,14 @@ opt_param_usage_include_ports: false
|
|||||||
opt_param_device_map: true
|
opt_param_device_map: true
|
||||||
opt_param_devices:
|
opt_param_devices:
|
||||||
- { device_path: "/dev/dri", device_host_path: "/dev/dri", desc: "Only needed if you want to use your AMD/Intel GPU for hardware accelerated video encoding (vaapi)." }
|
- { device_path: "/dev/dri", device_host_path: "/dev/dri", desc: "Only needed if you want to use your AMD/Intel GPU for hardware accelerated video encoding (vaapi)." }
|
||||||
- { device_path: "/dev/dvb", device_host_path: "/dev/dvb", desc: "Only needed if you want to pass through a DVB card to the container. If you use IPTV or HDHomeRun you can leave it out." }
|
- { device_path: "/dev/dvb", device_host_path: "/dev/drb", desc: "Only needed if you want to pass through a DVB card to the container. If you use IPTV or HDHomeRun you can leave it out." }
|
||||||
opt_cap_add_param: false
|
opt_cap_add_param: false
|
||||||
optional_block_1: true
|
optional_block_1: true
|
||||||
optional_block_1_items:
|
optional_block_1_items:
|
||||||
- |
|
- |
|
||||||
#### Host vs. Bridge
|
#### Host vs. Bridge
|
||||||
|
|
||||||
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because to work with these services Tvheadend requires a multicast address of `239.255.255.250` and a UDP port of `1900` which at this time is not possible with docker bridge mode.
|
If you use IPTV, SAT>IP or HDHomeRun, you need to create the container with --net=host and remove the -p flags. This is because of a limitation in docker and multicast.
|
||||||
If you have other host services which also use multicast such as SSDP/DLNA/Emby you may experience stabilty problems. These can be solved by giving tvheadend its own IP using macavlan.
|
|
||||||
|
|
||||||
# application setup block
|
# application setup block
|
||||||
app_setup_block_enabled: true
|
app_setup_block_enabled: true
|
||||||
@@ -126,14 +125,11 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
- { date: "02.10.19:", desc: "Improve permission fixing on render & dvb devices." }
|
- { date: "02.10.19:", desc: "Improve permissions fixing on render & dvb devices." }
|
||||||
- { date: "18.08.19:", desc: "Add AMD drivers." }
|
|
||||||
- { date: "02.08.19:", desc: "Attempt to automatically fix permissions on /dev/dri and /dev/dvb." }
|
- { date: "02.08.19:", desc: "Attempt to automatically fix permissions on /dev/dri and /dev/dvb." }
|
||||||
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
|
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
|
||||||
- { date: "27.03.19:", desc: "Rebase to Alpine 3.9, fix init logic to only chown once." }
|
- { date: "27.03.19:", desc: "Rebase to Alpine 3.9, fix init logic to only chown once." }
|
||||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||||
- { date: "01.03.19:", desc: "Bump xmltv to 0.6.1." }
|
|
||||||
- { date: "28.02.19:", desc: "add perl-lwp-useragent-determined." }
|
|
||||||
- { date: "17.02.19:", desc: "Bump xmltv to 5.70, ensure version tagging works by cloning tvheadend." }
|
- { date: "17.02.19:", desc: "Bump xmltv to 5.70, ensure version tagging works by cloning tvheadend." }
|
||||||
- { date: "14.02.19:", desc: "Add picons path to config." }
|
- { date: "14.02.19:", desc: "Add picons path to config." }
|
||||||
- { date: "15.01.19:", desc: "Add pipeline logic and multi arch." }
|
- { date: "15.01.19:", desc: "Add pipeline logic and multi arch." }
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"prefer_picon": true,
|
"prefer_picon": true,
|
||||||
"chiconpath": "file:///picons/%C.png",
|
"chiconpath": "file:///picons/%C.png",
|
||||||
"piconpath": "file:///picons/",
|
"piconpath": "file:///picons/",
|
||||||
"piconscheme": 0,
|
"piconscheme": 0,
|
||||||
"chiconscheme": 2
|
"chiconscheme": 2
|
||||||
}
|
}
|
||||||
|
|||||||
0
root/etc/services.d/tvheadend/run
Executable file → Normal file
0
root/etc/services.d/tvheadend/run
Executable file → Normal file
Reference in New Issue
Block a user