Skip to content

Commit

Permalink
Added ffmpeg, added inf loop so jd2 can be updated from within the we…
Browse files Browse the repository at this point in the history
…bapp, added beta 7zipbinding
  • Loading branch information
PlusMinus0 committed Aug 30, 2018
1 parent 6c4b3fc commit 371c74b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ MAINTAINER PlusMinus <piddlpiddl@gmail.com>
# Create directory, and start JD2 for the initial update and creation of config files.
RUN \
apk add --no-cache --quiet tini su-exec bash && \
mkdir -p /opt/JDownloader/ && \
mkdir -p /opt/JDownloader/libs && \
wget -O /opt/JDownloader/JDownloader.jar --user-agent="https://hub.docker.com/r/plusminus/jdownloader2-headless/" http://installer.jdownloader.org/JDownloader.jar && \
java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar
java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar && \
apk add --update ffmpeg

# Beta sevenzipbindings
COPY sevenzip* /opt/JDownloader/

COPY startJD2.sh /opt/JDownloader/
RUN chmod +x /opt/JDownloader/startJD2.sh
Expand Down
Binary file added sevenzipjbinding1509.jar
Binary file not shown.
Binary file added sevenzipjbinding1509Linux.jar
Binary file not shown.
7 changes: 6 additions & 1 deletion startJD2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ fi
adduser -G $GROUP $USER
chown -R $USER:$GROUP /opt/JDownloader

exec su-exec ${USER}:${GROUP} "$@"
# Sometimes this gets deleted. Just copy it every time.
cp /opt/JDownloader/sevenzip* /opt/JDownloader/libs/

su-exec ${USER}:${GROUP} "$@"

# Keep container alive when jd2 restarts
while sleep 3600; do :; done

0 comments on commit 371c74b

Please sign in to comment.