mirror of
https://github.com/linuxserver/docker-bazarr.git
synced 2026-02-20 01:02:49 +08:00
Merge pull request #97 from linuxserver/s6v3-development
This commit is contained in:
commit
fa83e67654
23
Dockerfile
23
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,17 +21,27 @@ 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 unrar from source ****" && \
|
||||
mkdir /tmp/unrar && \
|
||||
curl -o \
|
||||
/tmp/unrar.tar.gz -L \
|
||||
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/unrar.tar.gz -C \
|
||||
/tmp/unrar --strip-components=1 && \
|
||||
cd /tmp/unrar && \
|
||||
make && \
|
||||
install -v -m755 unrar /usr/local/bin && \
|
||||
echo "**** install bazarr ****" && \
|
||||
if [ -z ${BAZARR_VERSION+x} ]; then \
|
||||
BAZARR_VERSION=$(curl -sX GET https://api.github.com/repos/morpheus65535/bazarr/releases \
|
||||
@ -45,11 +56,10 @@ RUN \
|
||||
/tmp/bazarr.zip -d \
|
||||
/app/bazarr/bin && \
|
||||
rm -Rf /app/bazarr/bin/bin && \
|
||||
echo "UpdateMethod=docker\nBranch=development\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/bazarr/package_info && \
|
||||
echo "UpdateMethod=docker\nBranch=development\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 +74,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,17 +21,27 @@ 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 unrar from source ****" && \
|
||||
mkdir /tmp/unrar && \
|
||||
curl -o \
|
||||
/tmp/unrar.tar.gz -L \
|
||||
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/unrar.tar.gz -C \
|
||||
/tmp/unrar --strip-components=1 && \
|
||||
cd /tmp/unrar && \
|
||||
make && \
|
||||
install -v -m755 unrar /usr/local/bin && \
|
||||
echo "**** install bazarr ****" && \
|
||||
if [ -z ${BAZARR_VERSION+x} ]; then \
|
||||
BAZARR_VERSION=$(curl -sX GET https://api.github.com/repos/morpheus65535/bazarr/releases \
|
||||
@ -45,10 +56,10 @@ RUN \
|
||||
/tmp/bazarr.zip -d \
|
||||
/app/bazarr/bin && \
|
||||
rm -Rf /app/bazarr/bin/bin && \
|
||||
echo "UpdateMethod=docker\nBranch=development\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/bazarr/package_info && \
|
||||
echo "UpdateMethod=docker\nBranch=development\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 +74,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,17 +21,27 @@ 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 unrar from source ****" && \
|
||||
mkdir /tmp/unrar && \
|
||||
curl -o \
|
||||
/tmp/unrar.tar.gz -L \
|
||||
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/unrar.tar.gz -C \
|
||||
/tmp/unrar --strip-components=1 && \
|
||||
cd /tmp/unrar && \
|
||||
make && \
|
||||
install -v -m755 unrar /usr/local/bin && \
|
||||
echo "**** install bazarr ****" && \
|
||||
if [ -z ${BAZARR_VERSION+x} ]; then \
|
||||
BAZARR_VERSION=$(curl -sX GET https://api.github.com/repos/morpheus65535/bazarr/releases \
|
||||
@ -45,10 +56,10 @@ RUN \
|
||||
/tmp/bazarr.zip -d \
|
||||
/app/bazarr/bin && \
|
||||
rm -Rf /app/bazarr/bin/bin && \
|
||||
echo "UpdateMethod=docker\nBranch=development\nPackageVersion=${VERSION}\nPackageAuthor=[linuxserver.io](https://linuxserver.io)" > /app/bazarr/package_info && \
|
||||
echo "UpdateMethod=docker\nBranch=development\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 +74,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
|
||||
|
||||
14
README.md
14
README.md
@ -81,9 +81,9 @@ services:
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
volumes:
|
||||
- </path/to/bazarr/config>:/config
|
||||
- </path/to/movies>:/movies
|
||||
- </path/to/tv:/tv
|
||||
- /path/to/bazarr/config:/config
|
||||
- /path/to/movies:/movies
|
||||
- /path/to/tv:/tv
|
||||
ports:
|
||||
- 6767:6767
|
||||
restart: unless-stopped
|
||||
@ -98,9 +98,9 @@ docker run -d \
|
||||
-e PGID=1000 \
|
||||
-e TZ=Europe/London \
|
||||
-p 6767:6767 \
|
||||
-v </path/to/bazarr/config>:/config \
|
||||
-v </path/to/movies>:/movies \
|
||||
-v </path/to/tv:/tv \
|
||||
-v /path/to/bazarr/config:/config \
|
||||
-v /path/to/movies:/movies \
|
||||
-v /path/to/tv:/tv \
|
||||
--restart unless-stopped \
|
||||
lscr.io/linuxserver/bazarr:development
|
||||
```
|
||||
@ -108,7 +108,6 @@ docker run -d \
|
||||
You can choose between ,using tags, various branch versions of bazarr, no tag is required to remain on the main branch.
|
||||
Add one of the tags, if required, to the linuxserver/bazarr line of the run/create command in the following format, linuxserver/bazarr:development
|
||||
The development tag will be the latest commit in the development branch of bazarr.
|
||||
HOWEVER , USE THE DEVELOPMENT BRANCH AT YOUR OWN PERIL !!!!!!!!!
|
||||
|
||||
## Parameters
|
||||
|
||||
@ -233,6 +232,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **11.10.22:** - Rebase development branch to Alpine 3.16, migrate to s6v3.
|
||||
* **15.11.21:** - Temp fix for lxml on amd64, compile it instead of using official wheel that seems to be broken.
|
||||
* **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" }
|
||||
|
||||
@ -20,15 +20,14 @@ optional_block_1_items:
|
||||
You can choose between ,using tags, various branch versions of bazarr, no tag is required to remain on the main branch.
|
||||
Add one of the tags, if required, to the linuxserver/bazarr line of the run/create command in the following format, linuxserver/bazarr:development
|
||||
The development tag will be the latest commit in the development branch of bazarr.
|
||||
HOWEVER , USE THE DEVELOPMENT BRANCH AT YOUR OWN PERIL !!!!!!!!!
|
||||
|
||||
# container parameters
|
||||
param_container_name: "{{ project_name }}"
|
||||
param_usage_include_vols: true
|
||||
param_volumes:
|
||||
- { vol_path: "/config", vol_host_path: "</path/to/bazarr/config>", desc: "Bazarr data" }
|
||||
- { vol_path: "/movies", vol_host_path: "</path/to/movies>", desc: "Location of your movies" }
|
||||
- { vol_path: "/tv", vol_host_path: "</path/to/tv", desc: "Location of your TV Shows" }
|
||||
- { vol_path: "/config", vol_host_path: "/path/to/bazarr/config", desc: "Bazarr data" }
|
||||
- { vol_path: "/movies", vol_host_path: "/path/to/movies", desc: "Location of your movies" }
|
||||
- { vol_path: "/tv", vol_host_path: "/path/to/tv", desc: "Location of your TV Shows" }
|
||||
param_usage_include_ports: true
|
||||
param_ports:
|
||||
- { external_port: "6767", internal_port: "6767", port_desc: "Allows HTTP access to the internal webserver." }
|
||||
@ -46,6 +45,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "11.10.22:", desc: "Rebase development branch to Alpine 3.16, migrate to s6v3." }
|
||||
- { date: "15.11.21:", desc: "Temp fix for lxml on amd64, compile it instead of using official wheel that seems to be broken." }
|
||||
- { 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