Skip to content

Update OpenConnect server to 1.3.0 #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions ocserv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
FROM alpine
MAINTAINER kev <[email protected]>

ENV OCSERV_VERSION 0.11.8
ENV OCSERV_URL ftp://ftp.infradead.org/pub/ocserv/ocserv-$OCSERV_VERSION.tar.xz
ENV OCSERV_VERSION 1.3.0
ENV OCSERV_URL https://www.infradead.org/ocserv/download/ocserv-$OCSERV_VERSION.tar.xz

RUN buildDeps=" \
curl \
Expand All @@ -28,8 +28,8 @@ RUN buildDeps=" \
&& apk add --update --virtual .build-deps $buildDeps \
&& curl -SL $OCSERV_URL -o ocserv.tar.xz \
&& curl -SL $OCSERV_URL.sig -o ocserv.tar.xz.sig \
&& gpg --keyserver pgp.mit.edu --recv-key 7F343FA7 \
&& gpg --keyserver pgp.mit.edu --recv-key 96865171 \
&& gpg --keyserver hkps://keyserver.ubuntu.com --recv-key 7F343FA7 \
&& gpg --keyserver hkps://keyserver.ubuntu.com --recv-key 96865171 \
&& gpg --verify ocserv.tar.xz.sig \
&& mkdir -p /usr/src/ocserv \
&& tar -xf ocserv.tar.xz -C /usr/src/ocserv --strip-components=1 \
Expand All @@ -44,11 +44,16 @@ RUN buildDeps=" \
&& rm -rf /usr/src/ocserv \
&& runDeps="$( \
scanelf --needed --nobanner /usr/local/sbin/ocserv \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| xargs -r apk info --installed \
| sort -u \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| xargs -r apk info --installed \
| sort -u \
)" \
&& apk add --virtual .run-deps $runDeps gnutls-utils iptables \
&& apk add --virtual .run-deps $runDeps \
readline \
libnl3 \
libseccomp \
lz4-libs \
gnutls-utils iptables \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*

Expand Down Expand Up @@ -81,13 +86,13 @@ COPY docker-entrypoint.sh /entrypoint.sh
VOLUME /etc/ocserv
WORKDIR /etc/ocserv

ENV VPN_DOMAIN=vpn.easypi.pro \
VPN_NETWORK=10.20.30.0 \
VPN_NETMASK=255.255.255.0 \
LAN_NETWORK=192.168.0.0 \
LAN_NETMASK=255.255.0.0 \
VPN_USERNAME=username \
VPN_PASSWORD=password \
ENV VPN_DOMAIN=vpn.easypi.pro \
VPN_NETWORK=10.20.30.0 \
VPN_NETMASK=255.255.255.0 \
LAN_NETWORK=192.168.0.0 \
LAN_NETMASK=255.255.0.0 \
VPN_USERNAME=username \
VPN_PASSWORD=password \
TERM=xterm

EXPOSE 443/tcp 443/udp
Expand Down