forked from Ivasoft/docker-tvheadend
Compare commits
74 Commits
771dfd6b-l
...
313803bb-l
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e783cbddd4 | ||
|
|
8851174fde | ||
|
|
5d7727eb67 | ||
|
|
8d3a0879a5 | ||
|
|
a86b31a466 | ||
|
|
5c2472e875 | ||
|
|
e2ca758bcd | ||
|
|
be4d765182 | ||
|
|
3307f71d6a | ||
|
|
78b70217f9 | ||
|
|
e9f324cf83 | ||
|
|
c83501cda1 | ||
|
|
590c526d4f | ||
|
|
b1e3a2b76c | ||
|
|
e46a100668 | ||
|
|
a264297038 | ||
|
|
1d382f1e2d | ||
|
|
92de6b3807 | ||
|
|
de6a3f09aa | ||
|
|
27de84621d | ||
|
|
af32e275fc | ||
|
|
b53c4e8a95 | ||
|
|
da780f88bc | ||
|
|
c293456f31 | ||
|
|
0d8c5aa390 | ||
|
|
aa73a745f3 | ||
|
|
9d7a35ba91 | ||
|
|
7253c86d23 | ||
|
|
317114ce56 | ||
|
|
922de73700 | ||
|
|
0dff29da35 | ||
|
|
6d325b1f7e | ||
|
|
f2423c1628 | ||
|
|
6a902e358e | ||
|
|
05e3e94c17 | ||
|
|
f69f0308e8 | ||
|
|
0aa53af054 | ||
|
|
8290519f1e | ||
|
|
99f9917b5f | ||
|
|
0922cf5d87 | ||
|
|
7bcfb3bdf2 | ||
|
|
f8a739bf42 | ||
|
|
42d5564cea | ||
|
|
f95217ed6d | ||
|
|
308e7be673 | ||
|
|
797285de84 | ||
|
|
8507c5fb2e | ||
|
|
c60559b46f | ||
|
|
70b794cabc | ||
|
|
9a7b46c55c | ||
|
|
48be429287 | ||
|
|
0cee1652df | ||
|
|
87a4772008 | ||
|
|
cd589b5edc | ||
|
|
7621f743f9 | ||
|
|
2c722cf6f5 | ||
|
|
fbe55624ba | ||
|
|
05dfb9ffb3 | ||
|
|
ac4f7d401e | ||
|
|
ed43e439b6 | ||
|
|
f406290afe | ||
|
|
7520004527 | ||
|
|
18489b187b | ||
|
|
621a1dc880 | ||
|
|
c6d1618f97 | ||
|
|
7d62763012 | ||
|
|
22930512ea | ||
|
|
d97c1f1796 | ||
|
|
0ca518f159 | ||
|
|
8cd7586acc | ||
|
|
3b258e70bc | ||
|
|
41ebcd4ea6 | ||
|
|
343b9cd5f3 | ||
|
|
33ab472fc7 |
2
.github/FUNDING.yml
vendored
Executable file
2
.github/FUNDING.yml
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
github: linuxserver
|
||||
open_collective: linuxserver
|
||||
37
.github/ISSUE_TEMPLATE.md
vendored
37
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,21 +1,34 @@
|
||||
<!--- Provide a general summary of the issue in the Title above -->
|
||||
|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[][linuxserverurl]
|
||||
|
||||
|
||||
<!--- If you have an issue with the project, please provide us with the following information -->
|
||||
If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support.
|
||||
|
||||
<!--- Host OS -->
|
||||
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. -->
|
||||
<!--- Docker log output, docker log <container-name> -->
|
||||
<!--- Mention if you're using symlinks on any of the volume mounts. -->
|
||||
<!--- Provide a general summary of the issue in the Title above -->
|
||||
|
||||
------------------------------
|
||||
|
||||
<!--- If you have a suggestion or fix for the project, please provide us with the following information -->
|
||||
## Expected Behavior
|
||||
<!--- Tell us what should happen -->
|
||||
|
||||
<!--- What you think your suggestion brings to the project, or fixes with the project -->
|
||||
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? -->
|
||||
## Current Behavior
|
||||
<!--- Tell us what happens instead of the expected behavior -->
|
||||
|
||||
## Thanks, team linuxserver.io
|
||||
## Steps to Reproduce
|
||||
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
|
||||
<!--- reproduce this bug. Include code to reproduce, if relevant -->
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
4.
|
||||
|
||||
## Environment
|
||||
**OS:**
|
||||
**CPU architecture:** x86_64/arm32/arm64
|
||||
**How docker service was installed:**
|
||||
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
|
||||
|
||||
## Command used to create docker container (run/create/compose/screenshot)
|
||||
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
|
||||
|
||||
## Docker logs
|
||||
<!--- Provide a full docker log, output of "docker logs tvheadend" -->
|
||||
|
||||
30
.github/PULL_REQUEST_TEMPLATE.md
vendored
30
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -6,10 +6,34 @@
|
||||
|
||||
<!--- Before submitting a pull request please check the following -->
|
||||
|
||||
<!--- That you have made a branch in your fork, we'd rather not merge from your master -->
|
||||
<!--- If this is a fix for a typo in code or documentation in the README please file an issue and let us sort it out we do not need a PR -->
|
||||
<!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
|
||||
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
|
||||
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
|
||||
<!--- -->
|
||||
<!--- We maintain a changelog of major revisions to the container at the end of readme-vars.yml in the root of this repository, please add your changes there if appropriate -->
|
||||
|
||||
## Thanks, team linuxserver.io
|
||||
|
||||
<!--- Coding guidelines: -->
|
||||
<!--- 1. Installed packages in the Dockerfiles should be in alphabetical order -->
|
||||
<!--- 2. Changes to Dockerfile should be replicated in Dockerfile.armhf and Dockerfile.aarch64 if applicable -->
|
||||
<!--- 3. Indentation style (tabs vs 4 spaces vs 1 space) should match the rest of the document -->
|
||||
<!--- 4. Readme is auto generated from readme-vars.yml, make your changes there -->
|
||||
|
||||
------------------------------
|
||||
|
||||
We welcome all PR’s though this doesn’t guarantee it will be accepted.
|
||||
|
||||
## Description:
|
||||
<!--- Describe your changes in detail -->
|
||||
|
||||
## Benefits of this PR and context:
|
||||
<!--- Please explain why we should accept this PR. If this fixes an outstanding bug, please reference the issue # -->
|
||||
|
||||
## How Has This Been Tested?
|
||||
<!--- Please describe in detail how you tested your changes. -->
|
||||
<!--- Include details of your testing environment, and the tests you ran to -->
|
||||
<!--- see how your change affects other areas of the code, etc. -->
|
||||
|
||||
|
||||
## Source / References:
|
||||
<!--- Please include any forum posts/github links relevant to the PR -->
|
||||
|
||||
26
Dockerfile
26
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM lsiobase/alpine:3.9 as buildstage
|
||||
FROM lsiobase/alpine:3.12 as buildstage
|
||||
############## build stage ##############
|
||||
|
||||
# package versions
|
||||
@@ -29,6 +29,7 @@ RUN \
|
||||
gcc \
|
||||
gettext-dev \
|
||||
git \
|
||||
gnu-libiconv-dev \
|
||||
gzip \
|
||||
jq \
|
||||
libcurl \
|
||||
@@ -74,6 +75,7 @@ RUN \
|
||||
perl-io-socket-ssl \
|
||||
perl-io-stringy \
|
||||
perl-json \
|
||||
perl-json-xs \
|
||||
perl-libwww \
|
||||
perl-lingua-en-numbers-ordinate \
|
||||
perl-lingua-preferred \
|
||||
@@ -101,17 +103,14 @@ RUN \
|
||||
perl-xml-writer \
|
||||
pkgconf \
|
||||
pngquant \
|
||||
python \
|
||||
python2 \
|
||||
sdl-dev \
|
||||
tar \
|
||||
uriparser-dev \
|
||||
wget \
|
||||
x264-dev \
|
||||
x265-dev \
|
||||
zlib-dev && \
|
||||
apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
gnu-libiconv-dev
|
||||
zlib-dev
|
||||
|
||||
RUN \
|
||||
echo "**** remove musl iconv.h and replace with gnu-iconv.h ****" && \
|
||||
@@ -128,6 +127,8 @@ RUN \
|
||||
git clone https://github.com/XMLTV/xmltv.git /tmp/xmltv && \
|
||||
cd /tmp/xmltv && \
|
||||
git checkout ${XMLTV_VER} && \
|
||||
echo "**** Fix test for xmltv alpine 3.11 ****" && \
|
||||
patch -p1 -i /tmp/patches/test_tv_imdb.t.patch && \
|
||||
echo "**** Perl 5.26 fixes for XMTLV ****" && \
|
||||
sed "s/use POSIX 'tmpnam';//" -i filter/tv_to_latex && \
|
||||
sed "s/use POSIX 'tmpnam';//" -i filter/tv_to_text && \
|
||||
@@ -220,7 +221,7 @@ RUN \
|
||||
make DESTDIR=/tmp/comskip-build install
|
||||
|
||||
############## runtime stage ##############
|
||||
FROM lsiobase/alpine:3.9
|
||||
FROM lsiobase/alpine:3.12
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -239,6 +240,7 @@ RUN \
|
||||
curl \
|
||||
ffmpeg \
|
||||
ffmpeg-libs \
|
||||
gnu-libiconv \
|
||||
gzip \
|
||||
libcrypto1.1 \
|
||||
libcurl \
|
||||
@@ -247,6 +249,7 @@ RUN \
|
||||
libssl1.1 \
|
||||
libva \
|
||||
libva-intel-driver \
|
||||
mesa-dri-ati \
|
||||
libvpx \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
@@ -282,6 +285,7 @@ RUN \
|
||||
perl-io-socket-ssl \
|
||||
perl-io-stringy \
|
||||
perl-json \
|
||||
perl-json-xs \
|
||||
perl-libwww \
|
||||
perl-lingua-en-numbers-ordinate \
|
||||
perl-lingua-preferred \
|
||||
@@ -307,16 +311,14 @@ RUN \
|
||||
perl-xml-treepp \
|
||||
perl-xml-twig \
|
||||
perl-xml-writer \
|
||||
python \
|
||||
py3-requests \
|
||||
python2 \
|
||||
tar \
|
||||
uriparser \
|
||||
wget \
|
||||
x264 \
|
||||
x265 \
|
||||
zlib && \
|
||||
apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
gnu-libiconv && \
|
||||
echo "**** Add Picons ****" && \
|
||||
mkdir -p /picons && \
|
||||
curl -o \
|
||||
@@ -334,4 +336,4 @@ COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 9981 9982
|
||||
VOLUME /config /recordings
|
||||
VOLUME /config
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM lsiobase/alpine:arm64v8-3.9 as buildstage
|
||||
FROM lsiobase/alpine:arm64v8-3.12 as buildstage
|
||||
############## build stage ##############
|
||||
|
||||
# package versions
|
||||
@@ -29,6 +29,7 @@ RUN \
|
||||
gcc \
|
||||
gettext-dev \
|
||||
git \
|
||||
gnu-libiconv-dev \
|
||||
gzip \
|
||||
jq \
|
||||
libcurl \
|
||||
@@ -73,6 +74,7 @@ RUN \
|
||||
perl-io-socket-ssl \
|
||||
perl-io-stringy \
|
||||
perl-json \
|
||||
perl-json-xs \
|
||||
perl-libwww \
|
||||
perl-lingua-en-numbers-ordinate \
|
||||
perl-lingua-preferred \
|
||||
@@ -100,17 +102,14 @@ RUN \
|
||||
perl-xml-writer \
|
||||
pkgconf \
|
||||
pngquant \
|
||||
python \
|
||||
python2 \
|
||||
sdl-dev \
|
||||
tar \
|
||||
uriparser-dev \
|
||||
wget \
|
||||
x264-dev \
|
||||
x265-dev \
|
||||
zlib-dev && \
|
||||
apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
gnu-libiconv-dev
|
||||
zlib-dev
|
||||
|
||||
RUN \
|
||||
echo "**** remove musl iconv.h and replace with gnu-iconv.h ****" && \
|
||||
@@ -127,6 +126,8 @@ RUN \
|
||||
git clone https://github.com/XMLTV/xmltv.git /tmp/xmltv && \
|
||||
cd /tmp/xmltv && \
|
||||
git checkout ${XMLTV_VER} && \
|
||||
echo "**** Fix test for xmltv alpine 3.11 ****" && \
|
||||
patch -p1 -i /tmp/patches/test_tv_imdb.t.patch && \
|
||||
echo "**** Perl 5.26 fixes for XMTLV ****" && \
|
||||
sed "s/use POSIX 'tmpnam';//" -i filter/tv_to_latex && \
|
||||
sed "s/use POSIX 'tmpnam';//" -i filter/tv_to_text && \
|
||||
@@ -218,7 +219,7 @@ RUN \
|
||||
make DESTDIR=/tmp/comskip-build install
|
||||
|
||||
############## runtime stage ##############
|
||||
FROM lsiobase/alpine:arm64v8-3.9
|
||||
FROM lsiobase/alpine:arm64v8-3.12
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -237,6 +238,7 @@ RUN \
|
||||
curl \
|
||||
ffmpeg \
|
||||
ffmpeg-libs \
|
||||
gnu-libiconv \
|
||||
gzip \
|
||||
libcrypto1.1 \
|
||||
libcurl \
|
||||
@@ -278,6 +280,7 @@ RUN \
|
||||
perl-io-socket-ssl \
|
||||
perl-io-stringy \
|
||||
perl-json \
|
||||
perl-json-xs \
|
||||
perl-libwww \
|
||||
perl-lingua-en-numbers-ordinate \
|
||||
perl-lingua-preferred \
|
||||
@@ -303,16 +306,14 @@ RUN \
|
||||
perl-xml-treepp \
|
||||
perl-xml-twig \
|
||||
perl-xml-writer \
|
||||
python \
|
||||
py3-requests \
|
||||
python2 \
|
||||
tar \
|
||||
uriparser \
|
||||
wget \
|
||||
x264 \
|
||||
x265 \
|
||||
zlib && \
|
||||
apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
gnu-libiconv && \
|
||||
echo "**** Add Picons ****" && \
|
||||
mkdir -p /picons && \
|
||||
curl -o \
|
||||
@@ -330,4 +331,4 @@ COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 9981 9982
|
||||
VOLUME /config /recordings
|
||||
VOLUME /config
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM lsiobase/alpine:arm32v7-3.9 as buildstage
|
||||
FROM lsiobase/alpine:arm32v7-3.12 as buildstage
|
||||
############## build stage ##############
|
||||
|
||||
# package versions
|
||||
@@ -29,6 +29,7 @@ RUN \
|
||||
gcc \
|
||||
gettext-dev \
|
||||
git \
|
||||
gnu-libiconv-dev \
|
||||
gzip \
|
||||
jq \
|
||||
libcurl \
|
||||
@@ -73,6 +74,7 @@ RUN \
|
||||
perl-io-socket-ssl \
|
||||
perl-io-stringy \
|
||||
perl-json \
|
||||
perl-json-xs \
|
||||
perl-libwww \
|
||||
perl-lingua-en-numbers-ordinate \
|
||||
perl-lingua-preferred \
|
||||
@@ -100,17 +102,14 @@ RUN \
|
||||
perl-xml-writer \
|
||||
pkgconf \
|
||||
pngquant \
|
||||
python \
|
||||
python2 \
|
||||
sdl-dev \
|
||||
tar \
|
||||
uriparser-dev \
|
||||
wget \
|
||||
x264-dev \
|
||||
x265-dev \
|
||||
zlib-dev && \
|
||||
apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
gnu-libiconv-dev
|
||||
zlib-dev
|
||||
|
||||
RUN \
|
||||
echo "**** remove musl iconv.h and replace with gnu-iconv.h ****" && \
|
||||
@@ -127,6 +126,8 @@ RUN \
|
||||
git clone https://github.com/XMLTV/xmltv.git /tmp/xmltv && \
|
||||
cd /tmp/xmltv && \
|
||||
git checkout ${XMLTV_VER} && \
|
||||
echo "**** Fix test for xmltv alpine 3.11 ****" && \
|
||||
patch -p1 -i /tmp/patches/test_tv_imdb.t.patch && \
|
||||
echo "**** Perl 5.26 fixes for XMTLV ****" && \
|
||||
sed "s/use POSIX 'tmpnam';//" -i filter/tv_to_latex && \
|
||||
sed "s/use POSIX 'tmpnam';//" -i filter/tv_to_text && \
|
||||
@@ -218,7 +219,7 @@ RUN \
|
||||
make DESTDIR=/tmp/comskip-build install
|
||||
|
||||
############## runtime stage ##############
|
||||
FROM lsiobase/alpine:arm32v7-3.9
|
||||
FROM lsiobase/alpine:arm32v7-3.12
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@@ -237,6 +238,7 @@ RUN \
|
||||
curl \
|
||||
ffmpeg \
|
||||
ffmpeg-libs \
|
||||
gnu-libiconv \
|
||||
gzip \
|
||||
libcrypto1.1 \
|
||||
libcurl \
|
||||
@@ -278,6 +280,7 @@ RUN \
|
||||
perl-io-socket-ssl \
|
||||
perl-io-stringy \
|
||||
perl-json \
|
||||
perl-json-xs \
|
||||
perl-libwww \
|
||||
perl-lingua-en-numbers-ordinate \
|
||||
perl-lingua-preferred \
|
||||
@@ -303,16 +306,14 @@ RUN \
|
||||
perl-xml-treepp \
|
||||
perl-xml-twig \
|
||||
perl-xml-writer \
|
||||
python \
|
||||
py3-requests \
|
||||
python2 \
|
||||
tar \
|
||||
uriparser \
|
||||
wget \
|
||||
x264 \
|
||||
x265 \
|
||||
zlib && \
|
||||
apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
gnu-libiconv && \
|
||||
echo "**** Add Picons ****" && \
|
||||
mkdir -p /picons && \
|
||||
curl -o \
|
||||
@@ -330,4 +331,4 @@ COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 9981 9982
|
||||
VOLUME /config /recordings
|
||||
VOLUME /config
|
||||
|
||||
214
Jenkinsfile
vendored
214
Jenkinsfile
vendored
@@ -2,6 +2,10 @@ pipeline {
|
||||
agent {
|
||||
label 'X86-64-MULTI'
|
||||
}
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '10', daysToKeepStr: '60'))
|
||||
parallelsAlwaysFailFast()
|
||||
}
|
||||
// Input to determine if this is a package check
|
||||
parameters {
|
||||
string(defaultValue: 'false', description: 'package check run', name: 'PACKAGE_CHECK')
|
||||
@@ -10,6 +14,8 @@ pipeline {
|
||||
environment {
|
||||
BUILDS_DISCORD=credentials('build_webhook_url')
|
||||
GITHUB_TOKEN=credentials('498b4638-2d02-4ce5-832d-8a57d01d97ab')
|
||||
GITLAB_TOKEN=credentials('b6f0f1dd-6952-4cf6-95d1-9c06380283f0')
|
||||
GITLAB_NAMESPACE=credentials('gitlab-namespace-id')
|
||||
EXT_GIT_BRANCH = 'master'
|
||||
EXT_USER = 'tvheadend'
|
||||
EXT_REPO = 'tvheadend'
|
||||
@@ -52,14 +58,7 @@ pipeline {
|
||||
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
|
||||
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
|
||||
env.PULL_REQUEST = env.CHANGE_ID
|
||||
env.LICENSE_TAG = sh(
|
||||
script: '''#!/bin/bash
|
||||
if [ -e LICENSE ] ; then
|
||||
cat LICENSE | md5sum | cut -c1-8
|
||||
else
|
||||
echo none
|
||||
fi''',
|
||||
returnStdout: true).trim()
|
||||
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE.md ./.github/PULL_REQUEST_TEMPLATE.md'
|
||||
}
|
||||
script{
|
||||
env.LS_RELEASE_NUMBER = sh(
|
||||
@@ -139,6 +138,8 @@ pipeline {
|
||||
steps {
|
||||
script{
|
||||
env.IMAGE = env.DOCKERHUB_IMAGE
|
||||
env.GITHUBIMAGE = 'docker.pkg.github.com/' + env.LS_USER + '/' + env.LS_REPO + '/' + env.CONTAINER_NAME
|
||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME
|
||||
if (env.MULTIARCH == 'true') {
|
||||
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER
|
||||
} else {
|
||||
@@ -157,6 +158,8 @@ pipeline {
|
||||
steps {
|
||||
script{
|
||||
env.IMAGE = env.DEV_DOCKERHUB_IMAGE
|
||||
env.GITHUBIMAGE = 'docker.pkg.github.com/' + env.LS_USER + '/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME
|
||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME
|
||||
if (env.MULTIARCH == 'true') {
|
||||
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA
|
||||
} else {
|
||||
@@ -175,6 +178,8 @@ pipeline {
|
||||
steps {
|
||||
script{
|
||||
env.IMAGE = env.PR_DOCKERHUB_IMAGE
|
||||
env.GITHUBIMAGE = 'docker.pkg.github.com/' + env.LS_USER + '/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME
|
||||
env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME
|
||||
if (env.MULTIARCH == 'true') {
|
||||
env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST
|
||||
} else {
|
||||
@@ -230,32 +235,32 @@ pipeline {
|
||||
TEMPDIR=$(mktemp -d)
|
||||
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 pull linuxserver/doc-builder:latest
|
||||
docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=master -v ${TEMPDIR}:/ansible/readme linuxserver/doc-builder:latest
|
||||
if [ "$(md5sum ${TEMPDIR}/${LS_REPO}/Jenkinsfile | awk '{ print $1 }')" != "$(md5sum Jenkinsfile | awk '{ print $1 }')" ] || \
|
||||
[ "$(md5sum ${TEMPDIR}/${CONTAINER_NAME}/README.md | awk '{ print $1 }')" != "$(md5sum README.md | awk '{ print $1 }')" ] || \
|
||||
[ "$(cat ${TEMPDIR}/${LS_REPO}/LICENSE | md5sum | cut -c1-8)" != "${LICENSE_TAG}" ]; then
|
||||
CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
||||
NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8)
|
||||
if [[ "${CURRENTHASH}" != "${NEWHASH}" ]]; then
|
||||
mkdir -p ${TEMPDIR}/repo
|
||||
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
|
||||
git --git-dir ${TEMPDIR}/repo/${LS_REPO}/.git checkout -f master
|
||||
cp ${TEMPDIR}/${CONTAINER_NAME}/README.md ${TEMPDIR}/repo/${LS_REPO}/
|
||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/
|
||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/LICENSE ${TEMPDIR}/repo/${LS_REPO}/
|
||||
cd ${TEMPDIR}/repo/${LS_REPO}
|
||||
git checkout -f master
|
||||
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
|
||||
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github
|
||||
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/
|
||||
cd ${TEMPDIR}/repo/${LS_REPO}/
|
||||
git --git-dir ${TEMPDIR}/repo/${LS_REPO}/.git add Jenkinsfile README.md LICENSE
|
||||
git --git-dir ${TEMPDIR}/repo/${LS_REPO}/.git commit -m 'Bot Updating Templated Files'
|
||||
git --git-dir ${TEMPDIR}/repo/${LS_REPO}/.git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
||||
git add ${TEMPLATED_FILES}
|
||||
git commit -m 'Bot Updating Templated Files'
|
||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all
|
||||
echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
||||
else
|
||||
echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
|
||||
fi
|
||||
mkdir -p ${TEMPDIR}/gitbook
|
||||
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
|
||||
if [[ "${BRANCH_NAME}" == "master" ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then
|
||||
cp ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
|
||||
if [[ "${BRANCH_NAME}" == "master" ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then
|
||||
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
|
||||
cd ${TEMPDIR}/gitbook/docker-documentation/
|
||||
git add images/docker-${CONTAINER_NAME}.md
|
||||
git commit -m 'Bot Updating Templated Files'
|
||||
git commit -m 'Bot Updating Documentation'
|
||||
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git --all
|
||||
fi
|
||||
rm -Rf ${TEMPDIR}'''
|
||||
@@ -282,6 +287,26 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
/* #######################
|
||||
GitLab Mirroring
|
||||
####################### */
|
||||
// Ping into Gitlab to mirror this repo and have a registry endpoint
|
||||
stage("GitLab Mirror"){
|
||||
when {
|
||||
environment name: 'EXIT_STATUS', value: ''
|
||||
}
|
||||
steps{
|
||||
sh '''curl -H "Content-Type: application/json" -H "Private-Token: ${GITLAB_TOKEN}" -X POST https://gitlab.com/api/v4/projects \
|
||||
-d '{"namespace_id":'${GITLAB_NAMESPACE}',\
|
||||
"name":"'${LS_REPO}'",
|
||||
"mirror":true,\
|
||||
"import_url":"https://github.com/linuxserver/'${LS_REPO}'.git",\
|
||||
"issues_access_level":"disabled",\
|
||||
"merge_requests_access_level":"disabled",\
|
||||
"repository_access_level":"enabled",\
|
||||
"visibility":"public"}' '''
|
||||
}
|
||||
}
|
||||
/* ###############
|
||||
Build Container
|
||||
############### */
|
||||
@@ -329,7 +354,9 @@ pipeline {
|
||||
sh "docker build --no-cache --pull -f Dockerfile.armhf -t ${IMAGE}:arm32v7-${META_TAG} \
|
||||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${META_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
||||
sh "docker tag ${IMAGE}:arm32v7-${META_TAG} lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
||||
sh "docker push lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
||||
retry(5) {
|
||||
sh "docker push lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
||||
}
|
||||
sh '''docker rmi \
|
||||
${IMAGE}:arm32v7-${META_TAG} \
|
||||
lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
||||
@@ -356,7 +383,9 @@ pipeline {
|
||||
sh "docker build --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} \
|
||||
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${META_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
||||
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
||||
sh "docker push lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
||||
retry(5) {
|
||||
sh "docker push lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
||||
}
|
||||
sh '''docker rmi \
|
||||
${IMAGE}:arm64v8-${META_TAG} \
|
||||
lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
||||
@@ -515,17 +544,27 @@ pipeline {
|
||||
passwordVariable: 'DOCKERPASS'
|
||||
]
|
||||
]) {
|
||||
echo 'Logging into DockerHub'
|
||||
retry(5) {
|
||||
sh '''#! /bin/bash
|
||||
set -e
|
||||
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
|
||||
echo $GITHUB_TOKEN | docker login docker.pkg.github.com -u LinuxServer-CI --password-stdin
|
||||
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
||||
for PUSHIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
|
||||
docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG}
|
||||
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:latest
|
||||
docker push ${PUSHIMAGE}:latest
|
||||
docker push ${PUSHIMAGE}:${META_TAG}
|
||||
done
|
||||
'''
|
||||
}
|
||||
sh '''#! /bin/bash
|
||||
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
|
||||
for DELETEIMAGE in "${GITHUBIMAGE}" "{GITLABIMAGE}" "${IMAGE}"; do
|
||||
docker rmi \
|
||||
${DELETEIMAGE}:${META_TAG} \
|
||||
${DELETEIMAGE}:latest || :
|
||||
done
|
||||
'''
|
||||
sh "docker tag ${IMAGE}:${META_TAG} ${IMAGE}:latest"
|
||||
sh "docker push ${IMAGE}:latest"
|
||||
sh "docker push ${IMAGE}:${META_TAG}"
|
||||
sh '''docker rmi \
|
||||
${IMAGE}:${META_TAG} \
|
||||
${IMAGE}:latest || :'''
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -544,44 +583,72 @@ pipeline {
|
||||
passwordVariable: 'DOCKERPASS'
|
||||
]
|
||||
]) {
|
||||
retry(5) {
|
||||
sh '''#! /bin/bash
|
||||
set -e
|
||||
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
|
||||
echo $GITHUB_TOKEN | docker login docker.pkg.github.com -u LinuxServer-CI --password-stdin
|
||||
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
|
||||
if [ "${CI}" == "false" ]; then
|
||||
docker pull lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||
docker pull lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||
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}
|
||||
fi
|
||||
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}"; do
|
||||
docker tag ${IMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG}
|
||||
docker tag ${IMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
||||
docker tag ${IMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
||||
docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-latest
|
||||
docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-latest
|
||||
docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-latest
|
||||
docker push ${MANIFESTIMAGE}:amd64-${META_TAG}
|
||||
docker push ${MANIFESTIMAGE}:arm32v7-${META_TAG}
|
||||
docker push ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
||||
docker push ${MANIFESTIMAGE}:amd64-latest
|
||||
docker push ${MANIFESTIMAGE}:arm32v7-latest
|
||||
docker push ${MANIFESTIMAGE}:arm64v8-latest
|
||||
docker manifest push --purge ${MANIFESTIMAGE}:latest || :
|
||||
docker manifest create ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm32v7-latest ${MANIFESTIMAGE}:arm64v8-latest
|
||||
docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm32v7-latest --os linux --arch arm
|
||||
docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8
|
||||
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} || :
|
||||
docker manifest create ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
|
||||
docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} --os linux --arch arm
|
||||
docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} --os linux --arch arm64 --variant v8
|
||||
docker manifest push --purge ${MANIFESTIMAGE}:latest
|
||||
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
|
||||
done
|
||||
docker tag ${IMAGE}:amd64-${META_TAG} ${GITHUBIMAGE}:amd64-${META_TAG}
|
||||
docker tag ${IMAGE}:arm32v7-${META_TAG} ${GITHUBIMAGE}:arm32v7-${META_TAG}
|
||||
docker tag ${IMAGE}:arm64v8-${META_TAG} ${GITHUBIMAGE}:arm64v8-${META_TAG}
|
||||
docker tag ${GITHUBIMAGE}:amd64-${META_TAG} ${GITHUBIMAGE}:latest
|
||||
docker tag ${GITHUBIMAGE}:amd64-${META_TAG} ${GITHUBIMAGE}:${META_TAG}
|
||||
docker tag ${GITHUBIMAGE}:arm32v7-${META_TAG} ${GITHUBIMAGE}:arm32v7-latest
|
||||
docker tag ${GITHUBIMAGE}:arm64v8-${META_TAG} ${GITHUBIMAGE}:arm64v8-latest
|
||||
docker push ${GITHUBIMAGE}:amd64-${META_TAG}
|
||||
docker push ${GITHUBIMAGE}:arm32v7-${META_TAG}
|
||||
docker push ${GITHUBIMAGE}:arm64v8-${META_TAG}
|
||||
docker push ${GITHUBIMAGE}:latest
|
||||
docker push ${GITHUBIMAGE}:${META_TAG}
|
||||
docker push ${GITHUBIMAGE}:arm32v7-latest
|
||||
docker push ${GITHUBIMAGE}:arm64v8-latest
|
||||
'''
|
||||
}
|
||||
sh '''#! /bin/bash
|
||||
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
|
||||
'''
|
||||
sh '''#! /bin/bash
|
||||
if [ "${CI}" == "false" ]; then
|
||||
docker pull lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||
docker pull lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}
|
||||
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}
|
||||
fi'''
|
||||
sh "docker tag ${IMAGE}:amd64-${META_TAG} ${IMAGE}:amd64-latest"
|
||||
sh "docker tag ${IMAGE}:arm32v7-${META_TAG} ${IMAGE}:arm32v7-latest"
|
||||
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} ${IMAGE}:arm64v8-latest"
|
||||
sh "docker push ${IMAGE}:amd64-${META_TAG}"
|
||||
sh "docker push ${IMAGE}:arm32v7-${META_TAG}"
|
||||
sh "docker push ${IMAGE}:arm64v8-${META_TAG}"
|
||||
sh "docker push ${IMAGE}:amd64-latest"
|
||||
sh "docker push ${IMAGE}:arm32v7-latest"
|
||||
sh "docker push ${IMAGE}:arm64v8-latest"
|
||||
sh "docker manifest push --purge ${IMAGE}:latest || :"
|
||||
sh "docker manifest create ${IMAGE}:latest ${IMAGE}:amd64-latest ${IMAGE}:arm32v7-latest ${IMAGE}:arm64v8-latest"
|
||||
sh "docker manifest annotate ${IMAGE}:latest ${IMAGE}:arm32v7-latest --os linux --arch arm"
|
||||
sh "docker manifest annotate ${IMAGE}:latest ${IMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8"
|
||||
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 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 push --purge ${IMAGE}:latest"
|
||||
sh "docker manifest push --purge ${IMAGE}:${META_TAG}"
|
||||
sh '''docker rmi \
|
||||
${IMAGE}:amd64-${META_TAG} \
|
||||
${IMAGE}:amd64-latest \
|
||||
${IMAGE}:arm32v7-${META_TAG} \
|
||||
${IMAGE}:arm32v7-latest \
|
||||
${IMAGE}:arm64v8-${META_TAG} \
|
||||
${IMAGE}:arm64v8-latest \
|
||||
for DELETEIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
|
||||
docker rmi \
|
||||
${DELETEIMAGE}:amd64-${META_TAG} \
|
||||
${DELETEIMAGE}:amd64-latest \
|
||||
${DELETEIMAGE}:arm32v7-${META_TAG} \
|
||||
${DELETEIMAGE}:arm32v7-latest \
|
||||
${DELETEIMAGE}:arm64v8-${META_TAG} \
|
||||
${DELETEIMAGE}:arm64v8-latest || :
|
||||
done
|
||||
docker rmi \
|
||||
lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} \
|
||||
lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
||||
lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -665,16 +732,19 @@ pipeline {
|
||||
sh 'echo "build aborted"'
|
||||
}
|
||||
else if (currentBuild.currentResult == "SUCCESS"){
|
||||
sh ''' curl -X POST --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 1681177,\
|
||||
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 1681177,\
|
||||
"description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** Success\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\
|
||||
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
|
||||
}
|
||||
else {
|
||||
sh ''' curl -X POST --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 16711680,\
|
||||
sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 16711680,\
|
||||
"description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** failure\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\
|
||||
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
|
||||
}
|
||||
}
|
||||
}
|
||||
cleanup {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
90
README.md
90
README.md
@@ -1,6 +1,13 @@
|
||||
[](https://linuxserver.io)
|
||||
|
||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring :-
|
||||
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
||||
[](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
|
||||
[](https://discourse.linuxserver.io "post on our community forum.")
|
||||
[](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
|
||||
[](https://github.com/linuxserver "view the source for all of our repositories.")
|
||||
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
||||
|
||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:
|
||||
|
||||
* regular and timely application updates
|
||||
* easy user mappings (PGID, PUID)
|
||||
@@ -9,18 +16,24 @@ The [LinuxServer.io](https://linuxserver.io) team brings you another container r
|
||||
* regular security updates
|
||||
|
||||
Find us at:
|
||||
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
|
||||
* [IRC](https://irc.linuxserver.io) - on freenode at `#linuxserver.io`. Our primary support channel is Discord.
|
||||
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
|
||||
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
|
||||
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
|
||||
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
|
||||
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
|
||||
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
|
||||
|
||||
# [linuxserver/tvheadend](https://github.com/linuxserver/docker-tvheadend)
|
||||
[](https://discord.gg/YWrKVTn)
|
||||
[](https://microbadger.com/images/linuxserver/tvheadend "Get your own version badge on microbadger.com")
|
||||
[](https://microbadger.com/images/linuxserver/tvheadend "Get your own version badge on microbadger.com")
|
||||

|
||||

|
||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-tvheadend/job/master/)
|
||||
[](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/tvheadend/latest/index.html)
|
||||
|
||||
[](https://github.com/linuxserver/docker-tvheadend)
|
||||
[](https://github.com/linuxserver/docker-tvheadend/releases)
|
||||
[](https://github.com/linuxserver/docker-tvheadend/packages)
|
||||
[](https://gitlab.com/Linuxserver.io/docker-tvheadend/container_registry)
|
||||
[](https://microbadger.com/images/linuxserver/tvheadend "Get your own version badge on microbadger.com")
|
||||
[](https://hub.docker.com/r/linuxserver/tvheadend)
|
||||
[](https://hub.docker.com/r/linuxserver/tvheadend)
|
||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-tvheadend/job/master/)
|
||||
[](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/tvheadend/latest/index.html)
|
||||
|
||||
[Tvheadend](https://www.tvheadend.org/) works as a proxy server: is a TV streaming server and recorder for Linux, FreeBSD and Android supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, ISDB-T, IPTV, SAT>IP and HDHomeRun as input sources.
|
||||
Tvheadend offers the HTTP (VLC, MPlayer), HTSP (Kodi, Movian) and SAT>IP streaming.
|
||||
@@ -31,7 +44,7 @@ Multiple EPG sources are supported (over-the-air DVB and ATSC including OpenTV D
|
||||
|
||||
## Supported Architectures
|
||||
|
||||
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
|
||||
Simply pulling `linuxserver/tvheadend` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||
|
||||
@@ -72,14 +85,15 @@ docker create \
|
||||
-v <path to data>:/config \
|
||||
-v <path to recordings>:/recordings \
|
||||
--device /dev/dri:/dev/dri `#optional` \
|
||||
--device /dev/drb:/dev/dvb `#optional` \
|
||||
--device /dev/dvb:/dev/dvb `#optional` \
|
||||
--restart unless-stopped \
|
||||
linuxserver/tvheadend
|
||||
```
|
||||
|
||||
#### 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 of a limitation in docker and multicast.
|
||||
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 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
|
||||
@@ -88,7 +102,7 @@ Compatible with docker-compose v2 schemas.
|
||||
|
||||
```
|
||||
---
|
||||
version: "2"
|
||||
version: "2.1"
|
||||
services:
|
||||
tvheadend:
|
||||
image: linuxserver/tvheadend
|
||||
@@ -106,7 +120,7 @@ services:
|
||||
- 9982:9982
|
||||
devices:
|
||||
- /dev/dri:/dev/dri #optional
|
||||
- /dev/drb:/dev/dvb #optional
|
||||
- /dev/dvb:/dev/dvb #optional
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
@@ -127,6 +141,23 @@ Container images are configured using parameters passed at runtime (such as thos
|
||||
| `--device /dev/dri` | Only needed if you want to use your AMD/Intel GPU for hardware accelerated video encoding (vaapi). |
|
||||
| `--device /dev/dvb` | 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. |
|
||||
|
||||
## Environment variables from files (Docker secrets)
|
||||
|
||||
You can set any environment variable from a file by using a special prepend `FILE__`.
|
||||
|
||||
As an example:
|
||||
|
||||
```
|
||||
-e FILE__PASSWORD=/run/secrets/mysecretpassword
|
||||
```
|
||||
|
||||
Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file.
|
||||
|
||||
## Umask for running applications
|
||||
|
||||
For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional `-e UMASK=022` setting.
|
||||
Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up [here](https://en.wikipedia.org/wiki/Umask) before asking for support.
|
||||
|
||||
## User / Group Identifiers
|
||||
|
||||
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
|
||||
@@ -195,7 +226,7 @@ For advanced setup of tvheadend, go to [Tvheadend][appurl]
|
||||
|
||||
**Picons**
|
||||
|
||||
We have added all the picons from [picons.xyz](https://picons.xyz/) in the folder /picons. To enable the use of these picons, add the path to the Channel icon path in Configuration --> General --> Base.
|
||||
We have added all the picons from [picons.eu](https://picons.eu/) in the folder /picons. To enable the use of these picons, add the path to the Channel icon path in Configuration --> General --> Base.
|
||||
You need to enable minimum advanced view level to see the picons options.
|
||||
|
||||
## Additional runtime parameters
|
||||
@@ -203,22 +234,27 @@ You need to enable minimum advanced view level to see the picons options.
|
||||
In some cases it might be necessary to start tvheadend with additional parameters, for example to enable debugging or specify webroot for reverse proxy. Be sure to have the right parameters set, as adding the wrong once might lead to the container not starting correctly.
|
||||
|
||||
|
||||
## Docker Mods
|
||||
[](https://mods.linuxserver.io/?mod=tvheadend "view available mods for this container.")
|
||||
|
||||
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) can be accessed via the dynamic badge above.
|
||||
|
||||
|
||||
## Support Info
|
||||
|
||||
* Shell access whilst the container is running: `docker exec -it tvheadend /bin/bash`
|
||||
* To monitor the logs of the container in realtime: `docker logs -f tvheadend`
|
||||
* container version number
|
||||
* container version number
|
||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' tvheadend`
|
||||
* image version number
|
||||
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/tvheadend`
|
||||
|
||||
## Updating Info
|
||||
|
||||
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
|
||||
|
||||
Below are the instructions for updating containers:
|
||||
|
||||
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
|
||||
|
||||
Below are the instructions for updating containers:
|
||||
|
||||
### Via Docker Run/Create
|
||||
* Update the image: `docker pull linuxserver/tvheadend`
|
||||
* Stop the running container: `docker stop tvheadend`
|
||||
@@ -242,11 +278,14 @@ Below are the instructions for updating containers:
|
||||
containrrr/watchtower \
|
||||
--run-once tvheadend
|
||||
```
|
||||
|
||||
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose.
|
||||
|
||||
* You can also remove the old dangling images: `docker image prune`
|
||||
|
||||
## Building locally
|
||||
|
||||
If you want to make local modifications to these images for development purposes or just to customize the logic:
|
||||
If you want to make local modifications to these images for development purposes or just to customize the logic:
|
||||
```
|
||||
git clone https://github.com/linuxserver/docker-tvheadend.git
|
||||
cd docker-tvheadend
|
||||
@@ -265,6 +304,13 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **02.06.20:** - Update to Alpine 3.12.
|
||||
* **27.12.19:** - Add requests and perl-json-xs package.
|
||||
* **27.12.19:** - Update to Alpine 3.11.
|
||||
* **02.10.19:** - Improve permission 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.
|
||||
* **28.06.19:** - Rebasing to alpine 3.10.
|
||||
* **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.
|
||||
* **01.03.19:** - Bump xmltv to 0.6.1.
|
||||
|
||||
@@ -1,218 +1,255 @@
|
||||
alpine-baselayout-3.1.0-r3
|
||||
alpine-keys-2.1-r1
|
||||
alsa-lib-1.1.8-r0
|
||||
apk-tools-2.10.3-r1
|
||||
bash-4.4.19-r1
|
||||
bsd-compat-headers-0.7.1-r0
|
||||
busybox-1.29.3-r10
|
||||
bzip2-1.0.6-r6
|
||||
ca-certificates-20190108-r0
|
||||
ca-certificates-cacert-20190108-r0
|
||||
coreutils-8.30-r0
|
||||
curl-7.64.0-r2
|
||||
expat-2.2.6-r0
|
||||
ffmpeg-4.0.2-r0
|
||||
ffmpeg-libs-4.0.2-r0
|
||||
fontconfig-2.13.1-r0
|
||||
freetype-2.9.1-r2
|
||||
fribidi-1.0.5-r0
|
||||
alpine-baselayout-3.2.0-r7
|
||||
alpine-keys-2.2-r0
|
||||
alsa-lib-1.2.2-r0
|
||||
aom-libs-1.0.0-r1
|
||||
apk-tools-2.10.5-r1
|
||||
bash-5.0.17-r0
|
||||
brotli-libs-1.0.7-r5
|
||||
bsd-compat-headers-0.7.2-r3
|
||||
busybox-1.31.1-r19
|
||||
bzip2-1.0.8-r1
|
||||
ca-certificates-20191127-r4
|
||||
ca-certificates-bundle-20191127-r4
|
||||
coreutils-8.32-r0
|
||||
curl-7.69.1-r0
|
||||
expat-2.2.9-r1
|
||||
ffmpeg-4.3-r0
|
||||
ffmpeg-libs-4.3-r0
|
||||
fontconfig-2.13.1-r2
|
||||
freetype-2.10.2-r0
|
||||
fribidi-1.0.9-r0
|
||||
fts-1.2.7-r1
|
||||
gdbm-1.13-r1
|
||||
gmp-6.1.2-r1
|
||||
gmp-6.2.0-r0
|
||||
gnu-libiconv-1.15-r2
|
||||
gnutls-3.6.7-r0
|
||||
gnutls-3.6.14-r0
|
||||
gzip-1.10-r0
|
||||
lame-3.100-r0
|
||||
libacl-2.2.52-r5
|
||||
libacl-2.2.53-r0
|
||||
libass-0.14.0-r0
|
||||
libattr-2.4.47-r7
|
||||
libbsd-0.8.6-r2
|
||||
libbz2-1.0.6-r6
|
||||
libc-utils-0.7.1-r0
|
||||
libcrypto1.1-1.1.1b-r1
|
||||
libcurl-7.64.0-r2
|
||||
libdrm-2.4.96-r0
|
||||
libattr-2.4.48-r0
|
||||
libbsd-0.10.0-r0
|
||||
libbz2-1.0.8-r1
|
||||
libc-utils-0.7.2-r3
|
||||
libcrypto1.1-1.1.1g-r0
|
||||
libcurl-7.69.1-r0
|
||||
libdav1d-0.7.0-r0
|
||||
libdrm-2.4.102-r0
|
||||
libdvbcsa-1.1.0-r1
|
||||
libffi-3.2.1-r6
|
||||
libgcc-8.3.0-r0
|
||||
libgcrypt-1.8.4-r0
|
||||
libgpg-error-1.33-r0
|
||||
libhdhomerun-libs-20161117-r1
|
||||
libelf-0.179-r0
|
||||
libffi-3.3-r2
|
||||
libgcc-9.3.0-r2
|
||||
libgcrypt-1.8.5-r0
|
||||
libgpg-error-1.37-r0
|
||||
libhdhomerun-libs-20200225-r0
|
||||
libidn-1.35-r0
|
||||
libjpeg-turbo-1.5.3-r4
|
||||
libogg-1.3.3-r2
|
||||
libpciaccess-0.14-r0
|
||||
libpng-1.6.37-r0
|
||||
libssh2-1.8.2-r0
|
||||
libssl1.1-1.1.1b-r1
|
||||
libstdc++-8.3.0-r0
|
||||
libtasn1-4.13-r0
|
||||
libtheora-1.1.1-r13
|
||||
libtls-standalone-2.7.4-r6
|
||||
libidn2-2.3.0-r0
|
||||
libintl-0.20.2-r0
|
||||
libjpeg-turbo-2.0.5-r0
|
||||
libogg-1.3.4-r0
|
||||
libpciaccess-0.16-r0
|
||||
libpng-1.6.37-r1
|
||||
libproc-3.3.16-r0
|
||||
libssh-0.9.4-r0
|
||||
libssl1.1-1.1.1g-r0
|
||||
libstdc++-9.3.0-r2
|
||||
libtasn1-4.16.0-r1
|
||||
libtheora-1.1.1-r14
|
||||
libtls-standalone-2.9.1-r1
|
||||
libunistring-0.9.10-r0
|
||||
libuuid-2.33-r0
|
||||
libva-2.2.0-r0
|
||||
libva-intel-driver-2.2.0-r0
|
||||
libvdpau-1.1.1-r2
|
||||
liburiparser-0.9.3-r1
|
||||
libuuid-2.35.2-r0
|
||||
libva-2.7.1-r0
|
||||
libva-intel-driver-2.4.0-r1
|
||||
libvdpau-1.4-r0
|
||||
libvorbis-1.3.6-r2
|
||||
libvpx-1.6.1-r1
|
||||
libx11-1.6.7-r0
|
||||
libxau-1.0.8-r3
|
||||
libxcb-1.13-r2
|
||||
libxdmcp-1.1.2-r5
|
||||
libxext-1.3.3-r3
|
||||
libvpx-1.8.2-r0
|
||||
libx11-1.6.9-r0
|
||||
libxau-1.0.9-r0
|
||||
libxcb-1.14-r1
|
||||
libxdmcp-1.1.3-r0
|
||||
libxext-1.3.4-r0
|
||||
libxfixes-5.0.3-r2
|
||||
libxml2-2.9.9-r1
|
||||
libxslt-1.1.33-r1
|
||||
linux-headers-4.18.13-r1
|
||||
linux-pam-1.3.0-r0
|
||||
musl-1.1.20-r4
|
||||
musl-utils-1.1.20-r4
|
||||
ncurses-libs-6.1_p20190105-r0
|
||||
ncurses-terminfo-6.1_p20190105-r0
|
||||
ncurses-terminfo-base-6.1_p20190105-r0
|
||||
nettle-3.4.1-r0
|
||||
nghttp2-libs-1.35.1-r0
|
||||
openssl-1.1.1b-r1
|
||||
opus-1.3-r0
|
||||
p11-kit-0.23.14-r0
|
||||
pcre2-10.32-r1
|
||||
perl-5.26.3-r0
|
||||
perl-archive-zip-1.64-r0
|
||||
perl-b-hooks-endofscope-0.24-r0
|
||||
perl-boolean-0.46-r0
|
||||
perl-capture-tiny-0.48-r0
|
||||
perl-cgi-4.40-r0
|
||||
perl-class-data-inheritable-0.08-r0
|
||||
perl-class-inspector-1.32-r0
|
||||
perl-class-methodmaker-2.24-r2
|
||||
perl-class-singleton-1.5-r0
|
||||
perl-compress-raw-bzip2-2.084-r0
|
||||
perl-compress-raw-zlib-2.084-r0
|
||||
libxml2-2.9.10-r4
|
||||
libxshmfence-1.3-r0
|
||||
libxslt-1.1.34-r0
|
||||
linux-headers-5.4.5-r1
|
||||
linux-pam-1.3.1-r4
|
||||
llvm10-libs-10.0.0-r2
|
||||
mesa-20.0.7-r0
|
||||
mesa-dri-ati-20.0.7-r0
|
||||
mesa-dri-classic-20.0.7-r0
|
||||
mesa-dri-gallium-20.0.7-r0
|
||||
mesa-glapi-20.0.7-r0
|
||||
mesa-va-gallium-20.0.7-r0
|
||||
mesa-vdpau-gallium-20.0.7-r0
|
||||
musl-1.1.24-r9
|
||||
musl-utils-1.1.24-r9
|
||||
ncurses-libs-6.2_p20200523-r0
|
||||
ncurses-terminfo-base-6.2_p20200523-r0
|
||||
nettle-3.5.1-r1
|
||||
nghttp2-libs-1.41.0-r0
|
||||
openssl-1.1.1g-r0
|
||||
opus-1.3.1-r0
|
||||
p11-kit-0.23.20-r5
|
||||
pcre2-10.35-r0
|
||||
perl-5.30.3-r0
|
||||
perl-archive-zip-1.68-r0
|
||||
perl-b-hooks-endofscope-0.24-r1
|
||||
perl-boolean-0.46-r1
|
||||
perl-canary-stability-2013-r0
|
||||
perl-capture-tiny-0.48-r1
|
||||
perl-cgi-4.47-r0
|
||||
perl-class-data-inheritable-0.08-r1
|
||||
perl-class-inspector-1.36-r1
|
||||
perl-class-methodmaker-2.24-r6
|
||||
perl-class-singleton-1.5-r1
|
||||
perl-common-sense-3.75-r0
|
||||
perl-compress-raw-bzip2-2.093-r1
|
||||
perl-compress-raw-zlib-2.093-r1
|
||||
perl-cpan-meta-check-0.014-r1
|
||||
perl-data-dumper-2.173-r0
|
||||
perl-date-manip-6.75-r1
|
||||
perl-datetime-1.44-r0
|
||||
perl-datetime-format-strptime-1.74-r0
|
||||
perl-datetime-locale-1.22-r0
|
||||
perl-datetime-timezone-2.19-r0
|
||||
perl-dbd-sqlite-1.62-r0
|
||||
perl-dbi-1.642-r0
|
||||
perl-devel-stacktrace-2.03-r0
|
||||
perl-devel-symdump-2.18-r0
|
||||
perl-digest-sha1-2.13-r9
|
||||
perl-data-dumper-2.173-r3
|
||||
perl-date-manip-6.81-r0
|
||||
perl-datetime-1.52-r0
|
||||
perl-datetime-format-strptime-1.77-r0
|
||||
perl-datetime-locale-1.25-r0
|
||||
perl-datetime-timezone-2.39-r0
|
||||
perl-dbd-sqlite-1.64-r2
|
||||
perl-dbi-1.643-r0
|
||||
perl-devel-stacktrace-2.04-r1
|
||||
perl-devel-symdump-2.18-r1
|
||||
perl-digest-sha1-2.13-r12
|
||||
perl-dist-checkconflicts-0.11-r1
|
||||
perl-doc-5.26.3-r0
|
||||
perl-encode-locale-1.05-r1
|
||||
perl-eval-closure-0.14-r0
|
||||
perl-exception-class-1.44-r0
|
||||
perl-exporter-tiny-1.002001-r0
|
||||
perl-file-listing-6.04-r1
|
||||
perl-file-sharedir-1.116-r0
|
||||
perl-file-sharedir-install-0.13-r0
|
||||
perl-file-slurp-9999.25-r0
|
||||
perl-file-temp-0.2308-r0
|
||||
perl-file-which-1.22-r0
|
||||
perl-getopt-long-2.50-r0
|
||||
perl-html-parser-3.72-r2
|
||||
perl-html-tagset-3.20-r1
|
||||
perl-html-tree-5.07-r0
|
||||
perl-http-cookies-6.04-r0
|
||||
perl-http-daemon-6.01-r1
|
||||
perl-http-date-6.02-r1
|
||||
perl-http-message-6.18-r0
|
||||
perl-http-negotiate-6.01-r1
|
||||
perl-doc-5.30.3-r0
|
||||
perl-encode-locale-1.05-r2
|
||||
perl-eval-closure-0.14-r1
|
||||
perl-exception-class-1.44-r1
|
||||
perl-exporter-tiny-1.002002-r0
|
||||
perl-file-listing-6.04-r2
|
||||
perl-file-sharedir-1.116-r1
|
||||
perl-file-sharedir-install-0.13-r1
|
||||
perl-file-slurp-9999.30-r0
|
||||
perl-file-temp-0.2309-r1
|
||||
perl-file-which-1.23-r1
|
||||
perl-getopt-long-2.51-r1
|
||||
perl-html-parser-3.72-r5
|
||||
perl-html-tagset-3.20-r2
|
||||
perl-html-tree-5.07-r1
|
||||
perl-http-cookies-6.08-r0
|
||||
perl-http-daemon-6.10-r0
|
||||
perl-http-date-6.05-r0
|
||||
perl-http-message-6.24-r0
|
||||
perl-http-negotiate-6.01-r2
|
||||
perl-importer-0.025-r0
|
||||
perl-io-1.25-r4
|
||||
perl-io-compress-2.084-r0
|
||||
perl-io-html-1.001-r1
|
||||
perl-io-socket-ssl-2.060-r0
|
||||
perl-io-stringy-2.111-r1
|
||||
perl-ipc-run3-0.048-r0
|
||||
perl-json-2.97000-r0
|
||||
perl-libwww-6.36-r0
|
||||
perl-lingua-en-numbers-ordinate-1.04-r1
|
||||
perl-lingua-preferred-0.2.4-r1
|
||||
perl-list-moreutils-0.419-r1
|
||||
perl-lwp-mediatypes-6.02-r1
|
||||
perl-lwp-useragent-determined-1.07-r0
|
||||
perl-module-build-0.4224-r0
|
||||
perl-module-implementation-0.09-r1
|
||||
perl-module-pluggable-5.2-r0
|
||||
perl-module-runtime-0.016-r1
|
||||
perl-mro-compat-0.13-r0
|
||||
perl-namespace-autoclean-0.28-r0
|
||||
perl-namespace-clean-0.27-r0
|
||||
perl-net-http-6.09-r1
|
||||
perl-net-libidn-0.12-r5
|
||||
perl-net-ssleay-1.85-r4
|
||||
perl-package-deprecationmanager-0.17-r0
|
||||
perl-package-stash-0.37-r0
|
||||
perl-package-stash-xs-0.28-r4
|
||||
perl-params-classify-0.015-r0
|
||||
perl-params-util-1.07-r5
|
||||
perl-params-validate-1.29-r0
|
||||
perl-params-validationcompiler-0.27-r0
|
||||
perl-parse-recdescent-1.967015-r1
|
||||
perl-path-class-0.37-r0
|
||||
perl-pod-coverage-0.23-r0
|
||||
perl-role-tiny-2.000006-r0
|
||||
perl-scalar-list-utils-1.50-r0
|
||||
perl-scope-guard-0.21-r0
|
||||
perl-specio-0.42-r0
|
||||
perl-sub-exporter-progressive-0.001013-r0
|
||||
perl-sub-identify-0.14-r1
|
||||
perl-sub-info-0.002-r0
|
||||
perl-io-1.42-r0
|
||||
perl-io-compress-2.093-r0
|
||||
perl-io-html-1.001-r2
|
||||
perl-io-socket-ssl-2.068-r0
|
||||
perl-io-stringy-2.113-r0
|
||||
perl-ipc-run3-0.048-r1
|
||||
perl-json-4.02-r0
|
||||
perl-json-xs-4.02-r1
|
||||
perl-libwww-6.44-r0
|
||||
perl-lingua-en-numbers-ordinate-1.04-r2
|
||||
perl-lingua-preferred-0.2.4-r2
|
||||
perl-list-moreutils-0.428-r0
|
||||
perl-list-moreutils-xs-0.428-r3
|
||||
perl-lwp-mediatypes-6.04-r0
|
||||
perl-lwp-useragent-determined-1.07-r1
|
||||
perl-module-build-0.4231-r0
|
||||
perl-module-implementation-0.09-r2
|
||||
perl-module-metadata-1.000037-r0
|
||||
perl-module-pluggable-5.2-r1
|
||||
perl-module-runtime-0.016-r3
|
||||
perl-mro-compat-0.13-r1
|
||||
perl-namespace-autoclean-0.29-r1
|
||||
perl-namespace-clean-0.27-r1
|
||||
perl-net-http-6.19-r0
|
||||
perl-net-libidn-0.12-r8
|
||||
perl-net-ssleay-1.88-r0
|
||||
perl-package-deprecationmanager-0.17-r1
|
||||
perl-package-stash-0.38-r2
|
||||
perl-package-stash-xs-0.29-r3
|
||||
perl-params-util-1.07-r8
|
||||
perl-params-validate-1.29-r3
|
||||
perl-params-validationcompiler-0.30-r0
|
||||
perl-parse-recdescent-1.967015-r2
|
||||
perl-path-class-0.37-r1
|
||||
perl-pod-coverage-0.23-r1
|
||||
perl-role-tiny-2.001004-r0
|
||||
perl-scalar-list-utils-1.55-r0
|
||||
perl-scope-guard-0.21-r1
|
||||
perl-specio-0.46-r0
|
||||
perl-sub-exporter-progressive-0.001013-r1
|
||||
perl-sub-identify-0.14-r4
|
||||
perl-sub-info-0.002-r1
|
||||
perl-sub-install-0.928-r1
|
||||
perl-sub-name-0.21-r1
|
||||
perl-sub-quote-2.004000-r0
|
||||
perl-sub-uplevel-0.2800-r0
|
||||
perl-term-progressbar-2.22-r0
|
||||
perl-term-readkey-2.37-r1
|
||||
perl-term-table-0.012-r0
|
||||
perl-test-exception-0.43-r0
|
||||
perl-test-fatal-0.014-r1
|
||||
perl-test-needs-0.002005-r1
|
||||
perl-test-pod-1.52-r0
|
||||
perl-test-requires-0.10-r0
|
||||
perl-test-simple-1.302141-r0
|
||||
perl-test-taint-1.06-r5
|
||||
perl-test-warnings-0.026-r0
|
||||
perl-test-without-module-0.20-r0
|
||||
perl-test2-plugin-nowarnings-0.06-r0
|
||||
perl-test2-suite-0.000114-r0
|
||||
perl-timedate-2.30-r1
|
||||
perl-try-tiny-0.30-r0
|
||||
perl-unicode-string-2.09-r6
|
||||
perl-uri-1.74-r0
|
||||
perl-variable-magic-0.62-r0
|
||||
perl-www-robotrules-6.02-r1
|
||||
perl-xml-libxml-2.0132-r1
|
||||
perl-xml-libxslt-1.96-r0
|
||||
perl-xml-namespacesupport-1.12-r0
|
||||
perl-xml-parser-2.44-r4
|
||||
perl-xml-sax-0.99-r2
|
||||
perl-xml-sax-base-1.09-r0
|
||||
perl-xml-treepp-0.43-r1
|
||||
perl-xml-twig-3.52-r1
|
||||
perl-xml-writer-0.625-r2
|
||||
perl-yaml-syck-1.31-r0
|
||||
python2-2.7.16-r1
|
||||
readline-7.0.003-r1
|
||||
scanelf-1.2.3-r0
|
||||
sdl2-2.0.9-r0
|
||||
shadow-4.5-r2
|
||||
sqlite-libs-3.28.0-r0
|
||||
ssl_client-1.29.3-r10
|
||||
tar-1.32-r0
|
||||
tzdata-2019a-r0
|
||||
uriparser-0.9.1-r0
|
||||
v4l-utils-libs-1.16.2-r0
|
||||
wget-1.20.3-r0
|
||||
x264-20180304-r1
|
||||
x264-libs-20180304-r1
|
||||
x265-2.8-r1
|
||||
x265-libs-2.8-r1
|
||||
xvidcore-1.3.4-r1
|
||||
xz-5.2.4-r0
|
||||
xz-libs-5.2.4-r0
|
||||
zlib-1.2.11-r1
|
||||
perl-sub-name-0.26-r1
|
||||
perl-sub-quote-2.006006-r0
|
||||
perl-sub-uplevel-0.2800-r1
|
||||
perl-term-progressbar-2.22-r1
|
||||
perl-term-readkey-2.38-r3
|
||||
perl-term-table-0.015-r0
|
||||
perl-test-exception-0.43-r1
|
||||
perl-test-fatal-0.014-r2
|
||||
perl-test-needs-0.002006-r0
|
||||
perl-test-pod-1.52-r1
|
||||
perl-test-requires-0.11-r0
|
||||
perl-test-simple-1.302175-r0
|
||||
perl-test-taint-1.08-r2
|
||||
perl-test-warnings-0.030-r0
|
||||
perl-test-without-module-0.20-r1
|
||||
perl-test2-plugin-nowarnings-0.08-r1
|
||||
perl-test2-suite-0.000129-r0
|
||||
perl-timedate-2.33-r0
|
||||
perl-try-tiny-0.30-r1
|
||||
perl-types-serialiser-1.0-r2
|
||||
perl-unicode-string-2.10-r1
|
||||
perl-uri-1.76-r0
|
||||
perl-variable-magic-0.62-r3
|
||||
perl-www-robotrules-6.02-r2
|
||||
perl-xml-libxml-2.0205-r0
|
||||
perl-xml-libxslt-1.99-r0
|
||||
perl-xml-namespacesupport-1.12-r1
|
||||
perl-xml-parser-2.46-r0
|
||||
perl-xml-sax-1.02-r0
|
||||
perl-xml-sax-base-1.09-r1
|
||||
perl-xml-treepp-0.43-r2
|
||||
perl-xml-twig-3.52-r2
|
||||
perl-xml-writer-0.625-r3
|
||||
perl-yaml-syck-1.32-r0
|
||||
procps-3.3.16-r0
|
||||
py3-appdirs-1.4.4-r1
|
||||
py3-certifi-2020.4.5.1-r0
|
||||
py3-chardet-3.0.4-r4
|
||||
py3-idna-2.9-r0
|
||||
py3-ordered-set-4.0.1-r0
|
||||
py3-packaging-20.4-r0
|
||||
py3-parsing-2.4.7-r0
|
||||
py3-requests-2.23.0-r0
|
||||
py3-setuptools-47.0.0-r0
|
||||
py3-six-1.15.0-r0
|
||||
py3-urllib3-1.25.9-r0
|
||||
python2-2.7.18-r0
|
||||
python3-3.8.3-r0
|
||||
readline-8.0.4-r0
|
||||
scanelf-1.2.6-r0
|
||||
sdl2-2.0.12-r1
|
||||
shadow-4.8.1-r0
|
||||
sqlite-libs-3.32.1-r0
|
||||
ssl_client-1.31.1-r19
|
||||
tar-1.32-r1
|
||||
tzdata-2020a-r0
|
||||
uriparser-0.9.3-r1
|
||||
v4l-utils-libs-1.20.0-r0
|
||||
wayland-libs-client-1.18.0-r4
|
||||
wget-1.20.3-r1
|
||||
x264-20191119-r1
|
||||
x264-libs-20191119-r1
|
||||
x265-3.3-r1
|
||||
x265-libs-3.3-r1
|
||||
xvidcore-1.3.7-r1
|
||||
xz-5.2.5-r0
|
||||
xz-libs-5.2.5-r0
|
||||
zlib-1.2.11-r3
|
||||
zstd-libs-1.4.5-r0
|
||||
|
||||
@@ -11,7 +11,6 @@ requires 'HTML::TableExtract' ;
|
||||
requires 'HTTP::Cache::Transparent' => ">= 1.3, != 1.4" ;
|
||||
requires 'inc' ;
|
||||
requires 'JSON::PP' ;
|
||||
requires 'JSON::XS' ;
|
||||
requires 'LWP::Simple' ;
|
||||
requires 'LWP::UserAgent' ;
|
||||
requires 'PerlIO::gzip' ;
|
||||
|
||||
20
patches/test_tv_imdb.t.patch
Normal file
20
patches/test_tv_imdb.t.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
t/test_tv_imdb.t | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/t/test_tv_imdb.t b/t/test_tv_imdb.t
|
||||
index ad504464..4dc281a1 100755
|
||||
--- a/t/test_tv_imdb.t
|
||||
+++ b/t/test_tv_imdb.t
|
||||
@@ -84,9 +84,9 @@ INPUT: foreach my $input (@inputs) {
|
||||
my $output="$tmpDir/".File::Basename::basename($input)."-output.xml";
|
||||
|
||||
# Make temporary directory and split into it.
|
||||
- my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1";
|
||||
+ my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1";
|
||||
if ( $input=~m/movies-only/ ) {
|
||||
- $cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1";
|
||||
+ $cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1";
|
||||
}
|
||||
#print STDERR "\nRUN:$cmd\n";
|
||||
my $r = system($cmd);
|
||||
@@ -53,14 +53,15 @@ opt_param_usage_include_ports: false
|
||||
opt_param_device_map: true
|
||||
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/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." }
|
||||
- { 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." }
|
||||
opt_cap_add_param: false
|
||||
optional_block_1: true
|
||||
optional_block_1_items:
|
||||
- |
|
||||
#### 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 of a limitation in docker and multicast.
|
||||
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 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
|
||||
app_setup_block_enabled: true
|
||||
@@ -116,7 +117,7 @@ app_setup_block: |
|
||||
|
||||
**Picons**
|
||||
|
||||
We have added all the picons from [picons.xyz](https://picons.xyz/) in the folder /picons. To enable the use of these picons, add the path to the Channel icon path in Configuration --> General --> Base.
|
||||
We have added all the picons from [picons.eu](https://picons.eu/) in the folder /picons. To enable the use of these picons, add the path to the Channel icon path in Configuration --> General --> Base.
|
||||
You need to enable minimum advanced view level to see the picons options.
|
||||
|
||||
## Additional runtime parameters
|
||||
@@ -125,6 +126,13 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "02.06.20:", desc: "Update to Alpine 3.12." }
|
||||
- { date: "27.12.19:", desc: "Add requests and perl-json-xs package." }
|
||||
- { date: "27.12.19:", desc: "Update to Alpine 3.11." }
|
||||
- { date: "02.10.19:", desc: "Improve permission 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: "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: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||
- { date: "01.03.19:", desc: "Bump xmltv to 0.6.1." }
|
||||
|
||||
26
root/etc/cont-init.d/50-gid-video
Normal file
26
root/etc/cont-init.d/50-gid-video
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)
|
||||
|
||||
for i in $FILES
|
||||
do
|
||||
VIDEO_GID=$(stat -c '%g' "$i")
|
||||
if id -G abc | grep -qw "$VIDEO_GID"; then
|
||||
touch /groupadd
|
||||
else
|
||||
if [ ! "${VIDEO_GID}" == '0' ]; then
|
||||
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
|
||||
if [ -z "${VIDEO_NAME}" ]; then
|
||||
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c8)"
|
||||
groupadd "$VIDEO_NAME"
|
||||
groupmod -g "$VIDEO_GID" "$VIDEO_NAME"
|
||||
fi
|
||||
usermod -a -G "$VIDEO_NAME" abc
|
||||
touch /groupadd
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then
|
||||
usermod -a -G root abc
|
||||
fi
|
||||
Reference in New Issue
Block a user