Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openvpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
Container Platform
openvpn
Commits
4b9cd158
Verified
Commit
4b9cd158
authored
Jan 31, 2020
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
add openvpn exporter
parent
bdff803d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+3
-0
3 additions, 0 deletions
Dockerfile
chaperone.d/openvpn_exporter.conf
+4
-0
4 additions, 0 deletions
chaperone.d/openvpn_exporter.conf
with
7 additions
and
0 deletions
Dockerfile
+
3
−
0
View file @
4b9cd158
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
chaperone.d/openvpn_exporter.conf
0 → 100644
+
4
−
0
View file @
4b9cd158
openvpn
-
exporter
.
service
: {
command
:
"/usr/local/bin/openvpn_exporter -openvpn.status_paths /tmp/openvpn-status-tcp,/tmp/openvpn-status-udp"
,
exit_kills
:
false
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment