|
|
|
@ -88,8 +88,7 @@ ENV SUBTITLE_ATTACHMENT_CODEC=""
|
|
|
|
|
COPY --from=ffmpeg /usr/local/ /usr/local/
|
|
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
|
############## install dependencies ##############
|
|
|
|
|
echo "**** install dependencies ****" && \
|
|
|
|
|
echo "************ install dependencies ************" && \
|
|
|
|
|
apt-get update -qq && \
|
|
|
|
|
apt-get install -qq -y \
|
|
|
|
|
mkvtoolnix \
|
|
|
|
@ -105,38 +104,34 @@ RUN \
|
|
|
|
|
cron && \
|
|
|
|
|
apt-get purge --auto-remove -y && \
|
|
|
|
|
apt-get clean && \
|
|
|
|
|
############## install SMA ##############
|
|
|
|
|
echo "**** setup SMA ****" && \
|
|
|
|
|
# make directory
|
|
|
|
|
echo "************ setup SMA ************" && \
|
|
|
|
|
echo "************ setup directory ************" && \
|
|
|
|
|
mkdir -p ${SMA_PATH} && \
|
|
|
|
|
# download repo
|
|
|
|
|
echo ""************ download repo ************" && \
|
|
|
|
|
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
|
|
|
|
|
mkdir -p ${SMA_PATH}/config && \
|
|
|
|
|
# create logging file
|
|
|
|
|
echo "************ create logging file ************" && \
|
|
|
|
|
mkdir -p ${SMA_PATH}/config && \
|
|
|
|
|
touch ${SMA_PATH}/config/sma.log && \
|
|
|
|
|
chgrp users ${SMA_PATH}/config/sma.log && \
|
|
|
|
|
chmod g+w ${SMA_PATH}/config/sma.log && \
|
|
|
|
|
# install pip, venv, and set up a virtual self contained python environment
|
|
|
|
|
echo "************ install pip dependencies ************" && \
|
|
|
|
|
python3 -m pip install --user --upgrade pip && \
|
|
|
|
|
pip3 install -r ${SMA_PATH}/setup/requirements.txt && \
|
|
|
|
|
############## setup sabnzbd-scripts ##############
|
|
|
|
|
echo "**** setup sabnzbd-scripts ****" && \
|
|
|
|
|
# make directory
|
|
|
|
|
echo "************ setup sabnzbd-scripts ************" && \
|
|
|
|
|
echo "************ setup directory ************" && \
|
|
|
|
|
mkdir -p ${SABSCRIPTS_PATH} && \
|
|
|
|
|
# download repo
|
|
|
|
|
echo "************ download repo ************" && \
|
|
|
|
|
git clone https://github.com/RandomNinjaAtk/sabnzbd-scripts.git ${SABSCRIPTS_PATH} && \
|
|
|
|
|
############## setup cron ##############
|
|
|
|
|
echo "**** setup cron ****" && \
|
|
|
|
|
echo "************ setup cron ************" && \
|
|
|
|
|
service cron start && \
|
|
|
|
|
echo "* * * * * root bash /etc/cont-init.d/33-script-setup.bash" >> "/etc/crontab"
|
|
|
|
|
############## setup ffmpeg ##############
|
|
|
|
|
echo "**** setup ffmpeg ****" && \
|
|
|
|
|
echo "* * * * * root bash /etc/cont-init.d/33-script-setup.bash" >> "/etc/crontab" && \
|
|
|
|
|
echo "************ setup ffmpeg ************" && \
|
|
|
|
|
chgrp users /usr/local/bin/ffmpeg && \
|
|
|
|
|
chgrp users /usr/local/bin/ffprobe && \
|
|
|
|
|
chmod g+x /usr/local/bin/ffmpeg && \
|
|
|
|
|
chmod g+x /usr/local/bin/ffprobe && \
|
|
|
|
|
echo "**** install runtime ****" && \
|
|
|
|
|
echo "************ install runtime ************" && \
|
|
|
|
|
apt-get update && \
|
|
|
|
|
apt-get install -y \
|
|
|
|
|
i965-va-driver \
|
|
|
|
@ -152,7 +147,7 @@ RUN \
|
|
|
|
|
libxml2 \
|
|
|
|
|
libva-drm2 \
|
|
|
|
|
libva2 && \
|
|
|
|
|
echo "**** clean up ****" && \
|
|
|
|
|
echo "************ clean up ************" && \
|
|
|
|
|
rm -rf \
|
|
|
|
|
/var/lib/apt/lists/* \
|
|
|
|
|
/var/tmp/*
|
|
|
|
|