From c1aef6f1aaa3fc96a659963350a55de483a4316e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Wed, 10 Mar 2021 11:49:28 +0100 Subject: [PATCH] Fix Dockerfile and create run script --- build/Dockerfile | 2 +- run.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 run.sh diff --git a/build/Dockerfile b/build/Dockerfile index 1343d19..33df99f 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -18,7 +18,7 @@ RUN apk add --no-cache ca-certificates wget \ && make \ && make install \ # add vpn-slice with dependencies (dig) https://github.com/dlenski/vpn-slice - && apk add --no-cache python3 bind-tools && pip3 install --upgrade pip \ + && apk add --no-cache python3 py3-pip bind-tools && pip3 install --upgrade pip \ && pip3 install https://github.com/dlenski/vpn-slice/archive/master.zip \ # always add the docker DNS server && grep -qxF 'nameserver 127.0.0.11' /etc/resolv.conf || echo 'nameserver 127.0.0.11' >> /etc/resolv.conf \ diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..93a51fd --- /dev/null +++ b/run.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env sh + +CONTAINER_TAG=openconnect_vpn + +docker build -t "$CONTAINER_TAG" build/ + +docker run \ + -it \ + --privileged \ + --cap-add NET_ADMIN \ + -e OPENCONNECT_URL= \ + -e OPENCONNECT_USER= \ + -p 9000:8888 \ + -p 9001:8889 \ + "$CONTAINER_TAG"