Commit 4015be99 authored by micah's avatar micah

Merge branch 'chaperone' into 'master'

Add a Dockerfile and gitlab-ci

See merge request !3
parents 7211d6a8 bb8d96ba
Pipeline #33571 passed with stages
in 5 minutes and 53 seconds
---
include:
- 'https://0xacab.org/leap/container-platform/glue/raw/master/.gitlab-ci.yml'
FROM debian:buster AS build
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential pkg-config golang-go git ca-certificates openvpn \
&& rm -rf /var/lib/apt/lists/*
# don't need to do bash tricks to keep the layers small, as this is a multi-stage build
ENV GOPATH=/go
WORKDIR $GOPATH
RUN go get -u 0xacab.org/leap/vpnweb
RUN strip $GOPATH/bin/vpnweb
FROM registry.git.autistici.org/ai3/docker/chaperone-base
COPY --from=build /go/bin/vpnweb /usr/local/bin/vpnweb
COPY chaperone.d/ /etc/chaperone.d
ENTRYPOINT ["/usr/local/bin/chaperone"]
vpnweb-server.service: {
command: "/bin/sh -c 'exec /usr/local/bin/vpnweb -caCrt ${CLIENT_CA.CRT:-/etc/leap/ca/client_ca.crt} -caKey ${CLIENT_CA.KEY:-/etc/leap/ca/client_ca.key} -notls }'",
exit_kills: false
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment