Migrate to s6v3

This commit is contained in:
TheSpad 2022-10-11 14:35:44 +01:00
parent 68ff72ec48
commit e6b1700282
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
19 changed files with 31 additions and 28 deletions

View File

@ -1,6 +1,7 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.14
FROM ghcr.io/linuxserver/baseimage-alpine:3.16
# set version label
ARG UNRAR_VERSION=6.1.7
ARG BUILD_DATE
ARG VERSION
ARG BAZARR_VERSION
@ -20,16 +21,15 @@ RUN \
libffi-dev \
libxml2-dev \
libxslt-dev \
make \
python3-dev && \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
ffmpeg \
libxml2 \
libxslt \
py3-pip \
python3 \
unrar \
unzip && \
echo "**** install bazarr ****" && \
if [ -z ${BAZARR_VERSION+x} ]; then \
@ -45,11 +45,10 @@ RUN \
/tmp/bazarr.zip -d \
/app/bazarr/bin && \
rm -Rf /app/bazarr/bin/bin && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/bazarr/package_info && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
echo "**** Install requirements ****" && \
pip3 install -U --no-cache-dir pip && \
pip install lxml --no-binary :all: && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine/ -r \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r \
/app/bazarr/bin/requirements.txt && \
echo "**** clean up ****" && \
apk del --purge \
@ -64,4 +63,5 @@ COPY root/ /
# ports and volumes
EXPOSE 6767
VOLUME /config

View File

@ -1,6 +1,7 @@
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.14
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.16
# set version label
ARG UNRAR_VERSION=6.1.7
ARG BUILD_DATE
ARG VERSION
ARG BAZARR_VERSION
@ -20,16 +21,15 @@ RUN \
libffi-dev \
libxml2-dev \
libxslt-dev \
make \
python3-dev && \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
ffmpeg \
libxml2 \
libxslt \
py3-pip \
python3 \
unrar \
unzip && \
echo "**** install bazarr ****" && \
if [ -z ${BAZARR_VERSION+x} ]; then \
@ -45,10 +45,10 @@ RUN \
/tmp/bazarr.zip -d \
/app/bazarr/bin && \
rm -Rf /app/bazarr/bin/bin && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/bazarr/package_info && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
echo "**** Install requirements ****" && \
pip3 install -U --no-cache-dir pip && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine/ -r \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r \
/app/bazarr/bin/requirements.txt && \
echo "**** clean up ****" && \
apk del --purge \
@ -63,4 +63,5 @@ COPY root/ /
# ports and volumes
EXPOSE 6767
VOLUME /config

View File

@ -1,6 +1,7 @@
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.14
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.16
# set version label
ARG UNRAR_VERSION=6.1.7
ARG BUILD_DATE
ARG VERSION
ARG BAZARR_VERSION
@ -20,16 +21,15 @@ RUN \
libffi-dev \
libxml2-dev \
libxslt-dev \
make \
python3-dev && \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
ffmpeg \
libxml2 \
libxslt \
py3-pip \
python3 \
unrar \
unzip && \
echo "**** install bazarr ****" && \
if [ -z ${BAZARR_VERSION+x} ]; then \
@ -45,10 +45,10 @@ RUN \
/tmp/bazarr.zip -d \
/app/bazarr/bin && \
rm -Rf /app/bazarr/bin/bin && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/bazarr/package_info && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
echo "**** Install requirements ****" && \
pip3 install -U --no-cache-dir pip && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine/ -r \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r \
/app/bazarr/bin/requirements.txt && \
echo "**** clean up ****" && \
apk del --purge \
@ -63,4 +63,5 @@ COPY root/ /
# ports and volumes
EXPOSE 6767
VOLUME /config

2
Jenkinsfile vendored
View File

@ -36,7 +36,7 @@ pipeline {
CI_DELAY='120'
CI_DOCKERENV='TZ=US/Pacific'
CI_AUTH='user:password'
CI_WEBPATH=''
CI_WEBPATH='/system/status'
}
stages {
// Setup all the basic environment variables needed for the build

View File

@ -237,6 +237,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **11.10.22:** - Rebase master branch to Alpine 3.16, migrate to s6v3.
* **15.15.21:** - Temp fix for lxml, compile from scratch to avoid broken official wheel.
* **25.10.21:** - Rebase to alpine 3.14. Fix numpy wheel.
* **22.10.21:** - Added openblas package to prevent numpy error.

View File

@ -26,6 +26,6 @@ repo_vars:
- CI_DELAY='120'
- CI_DOCKERENV='TZ=US/Pacific'
- CI_AUTH='user:password'
- CI_WEBPATH=''
- CI_WEBPATH='/system/status'
sponsor_links:
- { name: "Bazarr", url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url" }

View File

@ -45,6 +45,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "11.10.22:", desc: "Rebase master branch to Alpine 3.16, migrate to s6v3." }
- { date: "15.15.21:", desc: "Temp fix for lxml, compile from scratch to avoid broken official wheel." }
- { date: "25.10.21:", desc: "Rebase to alpine 3.14. Fix numpy wheel." }
- { date: "22.10.21:", desc: "Added openblas package to prevent numpy error." }

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-bazarr-config/run

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 6767" \
s6-setuidgid abc python3 /app/bazarr/bin/bazarr.py --no-update --config /config

View File

@ -0,0 +1 @@
longrun

View File

@ -1,10 +0,0 @@
#!/usr/bin/with-contenv bash
if [ -n "${UMASK_SET}" ] && [ -z "${UMASK}" ]; then
echo -e "You are using a legacy method of defining umask\nplease update your environment variable from UMASK_SET to UMASK\nto keep the functionality after July 2021"
umask ${UMASK_SET}
fi
exec \
s6-setuidgid abc python3 /app/bazarr/bin/bazarr.py \
--no-update --config /config