Last active
September 22, 2018 20:15
-
-
Save mdPlusPlus/be33d18ee0bdc37432bae036b5826580 to your computer and use it in GitHub Desktop.
Dockerfile: jd-headless-openvpn (use JDownloader behind OpenVPN client)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FROM alpine:latest | |
#FROM debian:stable | |
FROM ubuntu:rolling | |
MAINTAINER mdPlusPlus | |
RUN \ | |
apt -qq update ; \ | |
apt -qq full-upgrade -y | |
RUN \ | |
apt -qq install -y ffmpeg \ | |
openjdk-11-jre-headless \ | |
openvpn \ | |
wget | |
RUN \ | |
mkdir /root/jd ; \ | |
mkdir /root/openvpn ; \ | |
wget -O /root/jd/JDownloader.jar http://installer.jdownloader.org/JDownloader.jar ; \ | |
java -Djava.awt.headless=true -jar /root/jd/JDownloader.jar -norestart | |
ENTRYPOINT \ | |
/etc/init.d/openvpn stop ; \ | |
/bin/chown -R root:root /root/jd/cfg /root/openvpn/ ; \ | |
cd /etc/openvpn ; cp --symbolic-link /root/openvpn/* . ; cd /root ; \ | |
/etc/init.d/openvpn start ; \ | |
java -Djava.awt.headless=true -jar /root/jd/JDownloader.jar -norestart | |
## volumes | |
## - /root/Downloads | |
## - /root/jd/cfg/ | |
## - /root/openvpn/ | |
##command | |
## docker run -d --name jd-openvpn-00 --sysctl net.ipv6.conf.all.disable_ipv6=0 --cap-add=NET_ADMIN --device /dev/net/tun -v /root/jd-openvpn/jd-configs/jd-openvpn-00/:/root/jd/cfg/ -v /root/jd-openvpn/jd-downloads/jd-openvpn-00/:/root/Downloads -v /root/jd-openvpn/openvpn-configs/jd-openvpn-00/:/root/openvpn/ --restart unless-stopped jd-openvpn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment