|
|
@ -1,11 +1,10 @@
|
|
|
|
FROM linuxserver/sabnzbd:unstable
|
|
|
|
FROM linuxserver/sabnzbd:unstable
|
|
|
|
LABEL maintainer="RandomNinjaAtk"
|
|
|
|
LABEL maintainer="RandomNinjaAtk"
|
|
|
|
|
|
|
|
|
|
|
|
ENV VERSION="1.0.2"
|
|
|
|
ENV TITLE="SABnzbd Extended"
|
|
|
|
ENV SABSCRIPTS_PATH /usr/local/sabnzbd-scripts
|
|
|
|
ENV VERSION="1.0.3"
|
|
|
|
ENV SMA_PATH /usr/local/sma
|
|
|
|
ENV SMA_PATH /usr/local/sma
|
|
|
|
ENV UPDATE_EXT FALSE
|
|
|
|
ENV UPDATE_EXT FALSE
|
|
|
|
ENV UPDATE_SMA FALSE
|
|
|
|
|
|
|
|
ENV VIDEO_LANG eng
|
|
|
|
ENV VIDEO_LANG eng
|
|
|
|
ENV VIDEO_SMA FALSE
|
|
|
|
ENV VIDEO_SMA FALSE
|
|
|
|
ENV VIDEO_SMA_TAGGING FALSE
|
|
|
|
ENV VIDEO_SMA_TAGGING FALSE
|
|
|
@ -15,16 +14,15 @@ ENV AUDIO_BITRATE 320
|
|
|
|
ENV AUDIO_REPLAYGAIN FALSE
|
|
|
|
ENV AUDIO_REPLAYGAIN FALSE
|
|
|
|
ENV AUDIO_DSFA TRUE
|
|
|
|
ENV AUDIO_DSFA TRUE
|
|
|
|
ENV AUDIO_DSFAS 150M
|
|
|
|
ENV AUDIO_DSFAS 150M
|
|
|
|
ENV AUDIO_BEETSTAGGING TRUE
|
|
|
|
|
|
|
|
ENV AUDIO_REQUIREBEETSTAGGING false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
RUN \
|
|
|
|
echo "************ install dependencies ************" && \
|
|
|
|
echo "************ install dependencies ************" && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y software-properties-common && \
|
|
|
|
apt-get install -y software-properties-common && \
|
|
|
|
add-apt-repository ppa:jonathonf/ffmpeg-4 -y && \
|
|
|
|
add-apt-repository ppa:jonathonf/ffmpeg-4 -y && \
|
|
|
|
echo "************ install packages ************" && \
|
|
|
|
echo "************ install and update packages ************" && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get update && \
|
|
|
|
|
|
|
|
apt-get upgrade -y && \
|
|
|
|
apt-get install -y \
|
|
|
|
apt-get install -y \
|
|
|
|
mkvtoolnix \
|
|
|
|
mkvtoolnix \
|
|
|
|
mp3val \
|
|
|
|
mp3val \
|
|
|
@ -32,24 +30,12 @@ RUN \
|
|
|
|
opus-tools \
|
|
|
|
opus-tools \
|
|
|
|
jq \
|
|
|
|
jq \
|
|
|
|
git \
|
|
|
|
git \
|
|
|
|
wget \
|
|
|
|
|
|
|
|
beets \
|
|
|
|
|
|
|
|
python3 \
|
|
|
|
|
|
|
|
ffmpeg \
|
|
|
|
ffmpeg \
|
|
|
|
|
|
|
|
python3 \
|
|
|
|
python3-pip \
|
|
|
|
python3-pip \
|
|
|
|
libchromaprint-tools \
|
|
|
|
ffmpeg && \
|
|
|
|
ffmpeg \
|
|
|
|
|
|
|
|
imagemagick \
|
|
|
|
|
|
|
|
python3-pythonmagick \
|
|
|
|
|
|
|
|
cron && \
|
|
|
|
|
|
|
|
apt-get purge --auto-remove -y && \
|
|
|
|
apt-get purge --auto-remove -y && \
|
|
|
|
apt-get clean && \
|
|
|
|
apt-get clean && \
|
|
|
|
echo "************ install Beets dependencies ************" && \
|
|
|
|
|
|
|
|
pip3 install --no-cache-dir -U \
|
|
|
|
|
|
|
|
requests \
|
|
|
|
|
|
|
|
Pillow \
|
|
|
|
|
|
|
|
pylast \
|
|
|
|
|
|
|
|
pyacoustid && \
|
|
|
|
|
|
|
|
echo "************ setup SMA ************" && \
|
|
|
|
echo "************ setup SMA ************" && \
|
|
|
|
echo "************ setup directory ************" && \
|
|
|
|
echo "************ setup directory ************" && \
|
|
|
|
mkdir -p ${SMA_PATH} && \
|
|
|
|
mkdir -p ${SMA_PATH} && \
|
|
|
@ -66,18 +52,15 @@ RUN \
|
|
|
|
pip3 install -r ${SMA_PATH}/setup/requirements.txt && \
|
|
|
|
pip3 install -r ${SMA_PATH}/setup/requirements.txt && \
|
|
|
|
echo "************ setup sabnzbd-scripts ************" && \
|
|
|
|
echo "************ setup sabnzbd-scripts ************" && \
|
|
|
|
echo "************ setup directory ************" && \
|
|
|
|
echo "************ setup directory ************" && \
|
|
|
|
mkdir -p ${SABSCRIPTS_PATH} && \
|
|
|
|
mkdir -p ${SABSCRIPTS_PATH}
|
|
|
|
echo "************ download repo ************" && \
|
|
|
|
|
|
|
|
git clone https://github.com/RandomNinjaAtk/sabnzbd-scripts.git ${SABSCRIPTS_PATH} && \
|
|
|
|
|
|
|
|
echo "************ setup cron ************" && \
|
|
|
|
|
|
|
|
service cron start && \
|
|
|
|
|
|
|
|
echo "* * * * * root bash /etc/cont-init.d/33-script-setup.bash" >> "/etc/crontab"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# copy local files
|
|
|
|
# copy local files
|
|
|
|
COPY root/ /
|
|
|
|
COPY root/ /
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# set work directory
|
|
|
|
|
|
|
|
WORKDIR /config
|
|
|
|
|
|
|
|
|
|
|
|
# ports and volumes
|
|
|
|
# ports and volumes
|
|
|
|
EXPOSE 8080 9090
|
|
|
|
EXPOSE 8080 9090
|
|
|
|
VOLUME /config /storage
|
|
|
|
VOLUME /config
|
|
|
|