Skip to content

Commit

Permalink
phusion baseimage way
Browse files Browse the repository at this point in the history
  • Loading branch information
jcap committed Sep 3, 2015
1 parent 2fe119e commit 3540974
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ VOLUME ["/etc/openvpn"]
EXPOSE 1194/udp

WORKDIR /etc/openvpn
CMD ["ovpn_run"]

ADD ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/*

CMD ["/sbin/my_init"]
5 changes: 4 additions & 1 deletion gantry
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ init-vpn)
docker run --volumes-from ${OVPN_DATA} --rm -it ${OVPN_IMAGE} /sbin/my_init -- ovpn_initpki
;;
start-vpn)
docker run --name openvpn --volumes-from ${OVPN_DATA} -d -p 1194:1194/udp --cap-add=NET_ADMIN -e DEBUG=${OVPN_DEBUG} ${OVPN_IMAGE}
docker run --name openvpn --volumes-from ${OVPN_DATA} -d -p 1194:1194/udp --cap-add=NET_ADMIN -e DEBUG=${OVPN_DEBUG} ${OVPN_IMAGE} /sbin/my_init -- ovpn_run
;;
stop-vpn)
docker stop openvpn
;;
gen-client)
docker run --volumes-from $OVPN_DATA --rm -it jcap/openvpn /sbin/my_init -- easyrsa build-client-full $2 nopass
Expand Down

0 comments on commit 3540974

Please sign in to comment.