mirror of
https://github.com/linuxserver/docker-bazarr.git
synced 2026-01-20 19:47:03 +08:00
Migrate to s6v3
This commit is contained in:
parent
68ff72ec48
commit
e6b1700282
12
Dockerfile
12
Dockerfile
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
2
Jenkinsfile
vendored
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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" }
|
||||
|
||||
@ -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." }
|
||||
|
||||
0
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-bazarr-config/run
Normal file → Executable file
0
root/etc/cont-init.d/30-config → root/etc/s6-overlay/s6-rc.d/init-bazarr-config/run
Normal file → Executable file
1
root/etc/s6-overlay/s6-rc.d/init-bazarr-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-bazarr-config/type
Normal file
@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-bazarr-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-bazarr-config/up
Normal file
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-bazarr-config/run
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-bazarr/notification-fd
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-bazarr/notification-fd
Normal file
@ -0,0 +1 @@
|
||||
3
|
||||
5
root/etc/s6-overlay/s6-rc.d/svc-bazarr/run
Executable file
5
root/etc/s6-overlay/s6-rc.d/svc-bazarr/run
Executable 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
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-bazarr/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-bazarr/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user