diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -2,6 +2,7 @@ OBFS4_ENDPOINT ?= OBFS4_CERT ?= TAG ?= 0.1 OBFSVPN_IMAGE_NAME ?= leap/obfsvpn-test-server +OBFSVPN_CLIENT_IMAGE_NAME ?= leap/obfsvpn-test-client certs: curl -k https://black.riseup.net/ca.crt > /tmp/ca.crt @@ -52,3 +53,16 @@ obfsvpn-server-container: docker build -t ${OBFSVPN_IMAGE_NAME}:${TAG} -f images/obfsvpn/Dockerfile \ . --no-cache +obfsvpn-client-container: + docker build -t ${OBFSVPN_CLIENT_IMAGE_NAME}:${TAG} \ + -f images/obfsvpn-client/Dockerfile \ + . --no-cache + +integration: obfsvpn-server-container obfsvpn-client-container + docker network create test-net + docker run -d --rm --privileged -p 4430:4430/tcp \ + -v obfsvpn_data:/opt/Dockovpn_data:Z -e OBFS4_HOST=0.0.0.0 \ + --name obfsvpn-server --net test-net ${OBFSVPN_IMAGE_NAME}:${TAG} + docker run --rm --privileged -v obfsvpn_data:/vpn:Z --net test-net \ + --name obfsvpn-client ${OBFSVPN_CLIENT_IMAGE_NAME}:${TAG} + |