mirror of
https://github.com/linuxserver/docker-bazarr.git
synced 2026-02-20 01:02:49 +08:00
Merge pull request #110 from linuxserver/master-postgres
This commit is contained in:
commit
f7c9a66cc2
14
Dockerfile
14
Dockerfile
@ -18,6 +18,7 @@ RUN \
|
||||
build-base \
|
||||
cargo \
|
||||
libffi-dev \
|
||||
libpq-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
python3-dev && \
|
||||
@ -26,6 +27,7 @@ RUN \
|
||||
ffmpeg \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
mediainfo \
|
||||
python3 && \
|
||||
echo "**** install unrar from source ****" && \
|
||||
mkdir /tmp/unrar && \
|
||||
@ -39,6 +41,8 @@ RUN \
|
||||
make && \
|
||||
install -v -m755 unrar /usr/local/bin && \
|
||||
echo "**** install bazarr ****" && \
|
||||
mkdir -p \
|
||||
/app/bazarr/bin && \
|
||||
if [ -z ${BAZARR_VERSION+x} ]; then \
|
||||
BAZARR_VERSION=$(curl -sX GET "https://api.github.com/repos/morpheus65535/bazarr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
@ -46,20 +50,22 @@ RUN \
|
||||
curl -o \
|
||||
/tmp/bazarr.zip -L \
|
||||
"https://github.com/morpheus65535/bazarr/releases/download/${BAZARR_VERSION}/bazarr.zip" && \
|
||||
mkdir -p \
|
||||
/app/bazarr/bin && \
|
||||
unzip \
|
||||
/tmp/bazarr.zip -d \
|
||||
/app/bazarr/bin && \
|
||||
rm -Rf /app/bazarr/bin/bin && \
|
||||
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
|
||||
curl -o \
|
||||
/app/bazarr/bin/postgres-requirements.txt -L \
|
||||
"https://raw.githubusercontent.com/morpheus65535/bazarr/${BAZARR_VERSION}/postgres-requirements.txt" && \
|
||||
echo "**** Install requirements ****" && \
|
||||
python3 -m ensurepip && \
|
||||
pip3 install -U --no-cache-dir \
|
||||
pip \
|
||||
wheel && \
|
||||
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ -r \
|
||||
/app/bazarr/bin/requirements.txt && \
|
||||
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
|
||||
-r /app/bazarr/bin/requirements.txt \
|
||||
-r /app/bazarr/bin/postgres-requirements.txt && \
|
||||
echo "**** clean up ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@ -18,6 +18,7 @@ RUN \
|
||||
build-base \
|
||||
cargo \
|
||||
libffi-dev \
|
||||
libpq-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
python3-dev && \
|
||||
@ -26,6 +27,7 @@ RUN \
|
||||
ffmpeg \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
mediainfo \
|
||||
python3 && \
|
||||
echo "**** install unrar from source ****" && \
|
||||
mkdir /tmp/unrar && \
|
||||
@ -39,6 +41,8 @@ RUN \
|
||||
make && \
|
||||
install -v -m755 unrar /usr/local/bin && \
|
||||
echo "**** install bazarr ****" && \
|
||||
mkdir -p \
|
||||
/app/bazarr/bin && \
|
||||
if [ -z ${BAZARR_VERSION+x} ]; then \
|
||||
BAZARR_VERSION=$(curl -sX GET "https://api.github.com/repos/morpheus65535/bazarr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
@ -46,20 +50,22 @@ RUN \
|
||||
curl -o \
|
||||
/tmp/bazarr.zip -L \
|
||||
"https://github.com/morpheus65535/bazarr/releases/download/${BAZARR_VERSION}/bazarr.zip" && \
|
||||
mkdir -p \
|
||||
/app/bazarr/bin && \
|
||||
unzip \
|
||||
/tmp/bazarr.zip -d \
|
||||
/app/bazarr/bin && \
|
||||
rm -Rf /app/bazarr/bin/bin && \
|
||||
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
|
||||
curl -o \
|
||||
/app/bazarr/bin/postgres-requirements.txt -L \
|
||||
"https://raw.githubusercontent.com/morpheus65535/bazarr/${BAZARR_VERSION}/postgres-requirements.txt" && \
|
||||
echo "**** Install requirements ****" && \
|
||||
python3 -m ensurepip && \
|
||||
pip3 install -U --no-cache-dir \
|
||||
pip \
|
||||
wheel && \
|
||||
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ -r \
|
||||
/app/bazarr/bin/requirements.txt && \
|
||||
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
|
||||
-r /app/bazarr/bin/requirements.txt \
|
||||
-r /app/bazarr/bin/postgres-requirements.txt && \
|
||||
echo "**** clean up ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@ -18,6 +18,7 @@ RUN \
|
||||
build-base \
|
||||
cargo \
|
||||
libffi-dev \
|
||||
libpq-dev \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
python3-dev && \
|
||||
@ -26,6 +27,7 @@ RUN \
|
||||
ffmpeg \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
mediainfo \
|
||||
python3 && \
|
||||
echo "**** install unrar from source ****" && \
|
||||
mkdir /tmp/unrar && \
|
||||
@ -39,6 +41,8 @@ RUN \
|
||||
make && \
|
||||
install -v -m755 unrar /usr/local/bin && \
|
||||
echo "**** install bazarr ****" && \
|
||||
mkdir -p \
|
||||
/app/bazarr/bin && \
|
||||
if [ -z ${BAZARR_VERSION+x} ]; then \
|
||||
BAZARR_VERSION=$(curl -sX GET "https://api.github.com/repos/morpheus65535/bazarr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
@ -46,20 +50,22 @@ RUN \
|
||||
curl -o \
|
||||
/tmp/bazarr.zip -L \
|
||||
"https://github.com/morpheus65535/bazarr/releases/download/${BAZARR_VERSION}/bazarr.zip" && \
|
||||
mkdir -p \
|
||||
/app/bazarr/bin && \
|
||||
unzip \
|
||||
/tmp/bazarr.zip -d \
|
||||
/app/bazarr/bin && \
|
||||
rm -Rf /app/bazarr/bin/bin && \
|
||||
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
|
||||
curl -o \
|
||||
/app/bazarr/bin/postgres-requirements.txt -L \
|
||||
"https://raw.githubusercontent.com/morpheus65535/bazarr/${BAZARR_VERSION}/postgres-requirements.txt" && \
|
||||
echo "**** Install requirements ****" && \
|
||||
python3 -m ensurepip && \
|
||||
pip3 install -U --no-cache-dir \
|
||||
pip \
|
||||
wheel && \
|
||||
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ -r \
|
||||
/app/bazarr/bin/requirements.txt && \
|
||||
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
|
||||
-r /app/bazarr/bin/requirements.txt \
|
||||
-r /app/bazarr/bin/postgres-requirements.txt && \
|
||||
echo "**** clean up ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@ -237,6 +237,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **26.02.23:** - Add dependencies for postgres support. Add mediainfo.
|
||||
* **23.01.23:** - Rebase master branch to Alpine 3.17.
|
||||
* **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.
|
||||
|
||||
@ -45,6 +45,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "26.02.23:", desc: "Add dependencies for postgres support. Add mediainfo." }
|
||||
- { date: "23.01.23:", desc: "Rebase master branch to Alpine 3.17." }
|
||||
- { 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." }
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# permissions
|
||||
lsiown -R abc:abc \
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=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
|
||||
cd /app/bazarr/bin s6-setuidgid abc python3 /app/bazarr/bin/bazarr.py --no-update --config /config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user