openvpn.sh: Split in to smaller scripts

* Split soon to be massive wrapper into smaller managable scripts.
* Re-organized Dockerfile to exploit cache when rebuilding
This commit is contained in:
Kyle Manna
2014-06-04 11:13:59 -07:00
parent 035ff64200
commit 1869cd85d0
7 changed files with 169 additions and 156 deletions

View File

@ -11,9 +11,6 @@ RUN git clone https://github.com/OpenVPN/easy-rsa.git /usr/local/share/easy-rsa
RUN cd /usr/local/share/easy-rsa && git checkout -b tested 89f369c5bbd13fbf0da2ea6361632c244e8af532
RUN ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin
ADD ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/*
# Needed by scripts
ENV OPENVPN /etc/openvpn
ENV EASYRSA /usr/local/share/easy-rsa/easyrsa3
@ -24,4 +21,7 @@ VOLUME ["/etc/openvpn"]
EXPOSE 1194/udp
ENTRYPOINT ["openvpn.sh"]
CMD ["ovpn_run"]
ADD ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/*