docker – Blame information for rev 63
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
60 | office | 1 | FROM debian:bookworm-slim |
45 | office | 2 | |
3 | # Install cron and required utilities. |
||
4 | RUN apt-get update |
||
5 | RUN apt-get -y install \ |
||
50 | office | 6 | bc \ |
7 | build-essential \ |
||
8 | cron \ |
||
9 | cron-daemon-common \ |
||
10 | curl \ |
||
11 | ffmpeg \ |
||
12 | gawk \ |
||
13 | git \ |
||
14 | gnupg \ |
||
15 | grep \ |
||
16 | joe \ |
||
17 | jq \ |
||
18 | less \ |
||
19 | openssl \ |
||
20 | pipx \ |
||
21 | procps \ |
||
22 | python3 \ |
||
23 | python3-pip \ |
||
24 | rclone \ |
||
25 | rsyslog \ |
||
26 | sed \ |
||
27 | sqlite3 \ |
||
28 | subversion \ |
||
29 | wget \ |
||
30 | unzip |
||
45 | office | 31 | |
32 | # Install node-js |
||
33 | RUN curl -fsSL https://deb.nodesource.com/setup_current.x | bash - && \ |
||
50 | office | 34 | apt-get install -y nodejs && \ |
35 | node --version && npm --version |
||
45 | office | 36 | |
50 | office | 37 | # Build cronicle-edge |
38 | WORKDIR /tmp |
||
39 | RUN git clone https://github.com/cronicle-edge/cronicle-edge && \ |
||
40 | cd cronicle-edge && \ |
||
41 | ./bundle /opt/cronicle --sqlite --tools && \ |
||
42 | rm -rf /tmp/chronicle-edge |
||
45 | office | 43 | |
50 | office | 44 | # non root user for shell plugin |
45 | ARG CRONICLE_UID=1000 |
||
46 | ARG CRONICLE_GID=1000 |
||
47 | RUN addgroup cronicle --gid $CRONICLE_GID && \ |
||
48 | adduser --disabled-password --disabled-login --home /opt/cronicle --uid $CRONICLE_UID --gid $CRONICLE_GID cronicle |
||
45 | office | 49 | |
50 | office | 50 | # this is dockeeerrrr!! |
51 | RUN usermod -o -g 1000 -u 1000 cronicle |
||
52 | |||
45 | office | 53 | ########################################################################### |
54 | # BEGIN TOOLS # |
||
55 | ########################################################################### |
||
50 | office | 56 | RUN mkdir -p /tmp/kitchen |
57 | WORKDIR /tmp/kitchen |
||
45 | office | 58 | |
63 | office | 59 | # install whisper-ctranslate2 |
60 | #RUN pip install --break-system-packages -U whisper-ctranslate2 |
||
61 | |||
45 | office | 62 | # Install selenium for web automation. |
63 | RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ |
||
60 | office | 64 | echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \ |
45 | office | 65 | apt-get update && apt-get -y install google-chrome-stable |
66 | |||
67 | RUN CHROMEDRIVER_FORCE_DOWNLOAD=true npm install -g selenium-side-runner chromedriver |
||
68 | |||
50 | office | 69 | # Install phantomJS |
63 | office | 70 | RUN npm install -g phantomjs-bin |
71 | #RUN curl -L -s https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -o /tmp/kitchen/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \ |
||
72 | # tar -jxpvf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \ |
||
73 | # mkdir -p /usr/local/bin && \ |
||
74 | # cp phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/ && \ |
||
75 | # rm -rf /tmp/kitchen/phantomjs* |
||
50 | office | 76 | |
45 | office | 77 | # Install xidel |
50 | office | 78 | RUN curl -L -s https://sourceforge.net/projects/videlibri/files/Xidel/Xidel%200.9.8/xidel_0.9.8-1_amd64.deb/download -o /tmp/kitchen/xidel.deb && \ |
79 | apt-get install -f -y /tmp/kitchen/xidel.deb && \ |
||
80 | rm /tmp/kitchen/xidel.deb |
||
45 | office | 81 | |
82 | # Install YouTube downloader. |
||
63 | office | 83 | #RUN mkdir -p /opt/pipx && \ |
84 | # export PIPX_HOME=/opt/pipx && \ |
||
85 | # export PIPX_BIN_DIR=/usr/local/bin && \ |
||
86 | # pipx install yt-dlp |
||
87 | RUN curl -L -s https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && \ |
||
88 | chmod +x /usr/local/bin/yt-dlp |
||
45 | office | 89 | |
90 | # HDHomeRun |
||
50 | office | 91 | RUN git clone https://github.com/Silicondust/libhdhomerun.git /tmp/kitchen/libhdhomerun && \ |
92 | cd /tmp/kitchen/libhdhomerun && \ |
||
45 | office | 93 | make && \ |
94 | cp hdhomerun_config /usr/local/bin/ && \ |
||
95 | cp libhdhomerun.so /usr/local/lib/ |
||
96 | |||
50 | office | 97 | # rclone |
98 | RUN curl -L -s https://downloads.rclone.org/v1.69.1/rclone-v1.69.1-linux-amd64.zip -o /tmp/kitchen/rclone-v1.69.1-linux-amd64.zip && \ |
||
99 | unzip rclone-v1.69.1-linux-amd64.zip && \ |
||
100 | cp rclone-v1.69.1-linux-amd64/rclone /usr/local/bin && \ |
||
101 | chmod +x /usr/local/bin/rclone |
||
102 | |||
103 | # remove kitchen |
||
104 | RUN rm -rf /tmp/kitchen |
||
105 | WORKDIR / |
||
106 | |||
45 | office | 107 | ########################################################################### |
108 | # END TOOLS # |
||
109 | ########################################################################### |
||
110 | |||
50 | office | 111 | WORKDIR /opt/cronicle |
112 | ENV PATH "/opt/cronicle/bin:${PATH}" |
||
113 | ENV CRONICLE_foreground=1 |
||
114 | ENV CRONICLE_echo=1 |
||
115 | ENV TZ=Etc/UTC |
||
116 | |||
117 | # add filesystem requirements |
||
118 | ADD rootfs / |
||
119 | |||
60 | office | 120 | # set the default entry point |
121 | RUN chmod +x /usr/local/bin/run |
||
122 | ENTRYPOINT [ "/usr/local/bin/run" ] |
||
50 | office | 123 |