A R Karthick | e3bde96 | 2016-09-27 15:06:35 -0700 | [diff] [blame^] | 1 | FROM xosproject/xos-synchronizer-openstack |
| 2 | |
| 3 | RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \ |
| 4 | openvpn |
| 5 | |
| 6 | # for OpenVPN |
| 7 | RUN mkdir -p /opt/openvpn |
| 8 | RUN chmod 777 /opt/openvpn |
| 9 | RUN git clone https://github.com/OpenVPN/easy-rsa.git /opt/openvpn |
| 10 | RUN git -C /opt/openvpn pull origin master |
| 11 | RUN echo 'set_var EASYRSA "/opt/openvpn/easyrsa3"' | tee /opt/openvpn/vars |
| 12 | RUN echo 'set_var EASYRSA_BATCH "true"' | tee -a /opt/openvpn/vars |