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

add openvpn exporter

parent bdff803d
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ ENV GOPATH=/go ...@@ -8,6 +8,8 @@ ENV GOPATH=/go
WORKDIR $GOPATH WORKDIR $GOPATH
RUN go get -u github.com/OperatorFoundation/shapeshifter-dispatcher/shapeshifter-dispatcher RUN go get -u github.com/OperatorFoundation/shapeshifter-dispatcher/shapeshifter-dispatcher
RUN strip $GOPATH/bin/shapeshifter-dispatcher RUN strip $GOPATH/bin/shapeshifter-dispatcher
RUN go get -u github.com/kumina/openvpn_exporter
RUN strip $GOPATH/bin/openvpn_exporter
FROM registry.git.autistici.org/ai3/docker/chaperone-base FROM registry.git.autistici.org/ai3/docker/chaperone-base
...@@ -16,6 +18,7 @@ FROM registry.git.autistici.org/ai3/docker/chaperone-base ...@@ -16,6 +18,7 @@ FROM registry.git.autistici.org/ai3/docker/chaperone-base
COPY --from=build /go/bin/shapeshifter-dispatcher /usr/local/bin/shapeshifter-dispatcher COPY --from=build /go/bin/shapeshifter-dispatcher /usr/local/bin/shapeshifter-dispatcher
COPY --from=build /usr/sbin/openvpn /usr/sbin/openvpn COPY --from=build /usr/sbin/openvpn /usr/sbin/openvpn
COPY --from=build /got/bin/openvpn_exporter /usr/local/bin/openvpn_exporter
COPY chaperone.d/ /etc/chaperone.d COPY chaperone.d/ /etc/chaperone.d
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openvpn libcap2-bin netcat-openbsd iptables\ openvpn libcap2-bin netcat-openbsd iptables\
......
openvpn-exporter.service: {
command: "/usr/local/bin/openvpn_exporter -openvpn.status_paths /tmp/openvpn-status-tcp,/tmp/openvpn-status-udp",
exit_kills: false
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment