This repository has been archived by the owner on May 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
73 lines (64 loc) · 2.94 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM linuxserver/nzbget
MAINTAINER KaHooli
VOLUME /scripts
# Install Git
RUN apk add --no-cache git
# Install MP4 Automator
RUN git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git /scripts/MP4_Automator
RUN apk add --no-cache \
py-setuptools \
py-pip \
python-dev \
libffi-dev \
gcc \
musl-dev \
openssl-dev \
ffmpeg
RUN pip install --upgrade PIP
RUN pip install requests
RUN pip install requests[security]
RUN pip install requests-cache
RUN pip install babelfish
RUN pip install "guessit<2"
RUN pip install "subliminal<2"
RUN pip install qtfaststart
# As per https://github.com/mdhiggins/sickbeard_mp4_automator/issues/643
ONBUILD RUN pip uninstall stevedore
ONBUILD RUN pip install stevedore==1.19.1
#Set MP4_Automator script settings in NZBGet settings
RUN echo 'NZBGetPostProcess.py:MP4_FOLDER=/scripts/MP4_Automator' >> /config/nzbget.conf
RUN echo 'NZBGetPostProcess.py:SHOULDCONVERT=True' >> /config/nzbget.conf
# Install nzbToMedia
RUN apk add --no-cache git
RUN git clone https://github.com/clinton-hall/nzbToMedia.git /scripts/nzbToMedia
#Set MP4_Automator script settings in NZBGet settings
RUN echo 'nzbToCouchPotato.py:auto_update=1' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:cpsCategory=Movie' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:cpsdelete_failed=0' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:getSubs=1' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:subLanguages=eng' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:transcode=1' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:duplicate=0' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:ignoreExtensions=' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:outputFastStart=1' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:embedSubs=0' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:extractSubs=1' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:hwAccel=1' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:outputVideoResolution=' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:outputAudioTrack2Codec=' >> /config/nzbget.conf
RUN echo 'nzbToCouchPotato.py:outputAudioOtherCodec=' >> /config/nzbget.conf
#RUN echo '' >> /config/nzbget.conf
RUN echo 'nzbToGamez.py:auto_update=1' >> /config/nzbget.conf
RUN echo 'nzbToHeadPhones.py:auto_update=1' >> /config/nzbget.conf
RUN echo 'nzbToMedia.py:auto_update=1' >> /config/nzbget.conf
RUN echo 'nzbToMylar.py:auto_update=1' >> /config/nzbget.conf
RUN echo 'nzbToNzbDrone.py:auto_update=1' >> /config/nzbget.conf
RUN echo 'nzbToSickBeard.py:auto_update=1' >> /config/nzbget.conf
#Set script file permissions
RUN chmod 775 -R /scripts
#Set script directory setting in NZBGet
#RUN /app/nzbget -o ScriptDir=/app/scripts,${MP4Automator_dir},/scripts/nzbToMedia
ONBUILD RUN sed -i 's/^ScriptDir=.*/ScriptDir=\/app\/scripts;\/scripts\/MP4_Automator;\/scripts\/nzbToMedia/' /config/nzbget.conf
#Adding Custom files
ADD init/ /etc/my_init.d/
RUN chmod -v +x /etc/my_init.d/*.sh