Skip to content
Snippets Groups Projects
Commit 28771540 authored by micah's avatar micah :speech_balloon:
Browse files

Switch to s6 from chaperone for container

parent bbe82d29
No related branches found
No related tags found
No related merge requests found
Pipeline #79166 passed
...@@ -2,6 +2,6 @@ deploy/* ...@@ -2,6 +2,6 @@ deploy/*
.mypy_cache .mypy_cache
*.swp *.swp
*.swo *.swo
vpnweb ./vpnweb
public/* public/*
test/integration/sipcli/sipcli test/integration/sipcli/sipcli
FROM debian:buster AS build FROM debian:bullseye AS build
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ RUN apt-get -q update \
build-essential pkg-config golang-go git ca-certificates openvpn \ && env DEBIAN_FRONTEND=noninteractive apt-get install -qy --no-install-recommends \
build-essential \
pkg-config \
golang-go \
git \
ca-certificates \
openvpn \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* && 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 ADD . /src
ENV GOPATH=/go RUN cd /src && go build -o vpnweb && strip vpnweb
WORKDIR $GOPATH
#RUN go get -u 0xacab.org/leap/vpnweb
COPY . /vpnweb FROM registry.git.autistici.org/ai3/docker/s6-base
RUN cd /vpnweb && go build
RUN strip /vpnweb/vpnweb
FROM registry.git.autistici.org/ai3/docker/chaperone-base COPY --from=build /src/vpnweb /usr/local/bin/vpnweb
COPY docker/conf /etc/
COPY --from=build /vpnweb/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'",
exit_kills: false
}
#!/usr/bin/execlineb -S0
s6-svscanctl -t /var/run/s6/services
#!/bin/sh
exec /usr/local/bin/vpnweb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment