Closed denkristoffer closed 7 years ago
Hi,
Here is how I deal with nzbtomedia. Create a file named userscript.sh in your container config folder, with this content :
#!/bin/bash
apt-get install -y git python
GIT_APP_FOLDER="/app/nzbToMedia"
CONF_APP_FOLDER="/config/nzbToMedia"
if [[ -d "$GIT_APP_FOLDER/.git" ]]
then
git -C $GIT_APP_FOLDER pull
else
git clone https://github.com/clinton-hall/nzbToMedia.git $GIT_APP_FOLDER
fi
mkdir -p $CONF_APP_FOLDER
[[ ! -f "$CONF_APP_FOLDER/autoProcessMedia.cfg" ]] && cp $GIT_APP_FOLDER/autoProcessMedia.cfg.spec $CONF_APP_FOLDER/autoProcessMedia.cfg
[[ ! -h "$GIT_APP_FOLDER/autoProcessMedia.cfg" ]] && ln -s $CONF_APP_FOLDER/autoProcessMedia.cfg $GIT_APP_FOLDER/autoProcessMedia.cfg
[[ ! -f "$GIT_APP_FOLDER/logs/nzbtomedia.log" ]] && { mkdir -p $GIT_APP_FOLDER/logs && touch $GIT_APP_FOLDER/logs/nzbtomedia.log; }
chown -R abc.abc /config /app
Obviously you can add more package to the
apt-get install
if you need to.
Personally, I add this in my torrent software container. Because you can have multiple video snatcher but you have only one downloader most of the time :)
Do not forget to add the variable -e ADVANCED_SCRIPT='true'
when launching you container
Deprecated solution since it use Apline and advanced script is no longer available
Any ideas how to implement git and nzbtomedia to this container? I now have to update manually the nzbtomedia implement it and it seems after a container restart I have to re-implement it again...
I created a PR to add a Volume for the Scripts. Standard scripts are not included anymore, but one can add them in the volume
I closed the PR, you can add volumes from the create/run line, you don't need to add them for everyone by putting them in the Dockerfile.
FYI, check how I deal with it on my transmission container.
https://github.com/zaggash/docker-transmission/ https://hub.docker.com/r/zaggash/docker-transmission/
Zaggash, how exactly do you deal with it on your transmission container? I didn't see anything there related. Just trying to get my nzbget container to install ffmpeg and ffprobe so the FailureLink script will work.
Thanks
Post-processing scripts, nzbToMedia especially, would be a very welcome addition to this container. It seems to require the following packages though: