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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
Container Platform
openvpn
Commits
b917c805
Unverified
Commit
b917c805
authored
3 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
Openvpn needs to be installed in the final stage
parent
eb010629
No related branches found
No related tags found
No related merge requests found
Pipeline
#61362
canceled
3 years ago
Stage: build
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+4
-5
4 additions, 5 deletions
Dockerfile
with
4 additions
and
5 deletions
Dockerfile
+
4
−
5
View file @
b917c805
...
@@ -2,7 +2,7 @@ FROM debian:buster-backports AS build
...
@@ -2,7 +2,7 @@ FROM debian:buster-backports AS build
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
\
build-essential pkg-config git ca-certificates
\
build-essential pkg-config git ca-certificates
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
-t
buster-backports golang-go
openvpn
\
-t
buster-backports golang-go
\
&&
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
# don't need to do bash tricks to keep the layers small, as this is a multi-stage build
...
@@ -14,16 +14,15 @@ RUN go get -u github.com/kumina/openvpn_exporter
...
@@ -14,16 +14,15 @@ RUN go get -u github.com/kumina/openvpn_exporter
RUN
strip
$GOPATH
/bin/openvpn_exporter
RUN
strip
$GOPATH
/bin/openvpn_exporter
FROM
registry.git.autistici.org/ai3/docker/chaperone-base:buster
FROM
registry.git.autistici.org/ai3/docker/chaperone-base:buster
COPY
--from=build /shapeshifter-dispatcher/shapeshifter-dispatcher /usr/local/bin/shapeshifter-dispatcher
COPY
--from=build /shapeshifter-dispatcher/shapeshifter-dispatcher /usr/local/bin/shapeshifter-dispatcher
COPY
--from=build /usr/sbin/openvpn /usr/sbin/openvpn
COPY
--from=build /go/bin/openvpn_exporter /usr/local/bin/openvpn_exporter
COPY
--from=build /go/bin/openvpn_exporter /usr/local/bin/openvpn_exporter
COPY
chaperone.d/ /etc/chaperone.d
COPY
chaperone.d/ /etc/chaperone.d
RUN
echo
"deb http://download.opensuse.org/repositories/home:/CZ-NIC:/knot-resolver-latest/Debian_9.0/ /"
>
/etc/apt/sources.list.d/knot.list
RUN
echo
"deb http://download.opensuse.org/repositories/home:/CZ-NIC:/knot-resolver-latest/Debian_9.0/ /"
>
/etc/apt/sources.list.d/knot.list
COPY
cznic-obs.gpg /etc/apt/trusted.gpg.d
COPY
cznic-obs.gpg /etc/apt/trusted.gpg.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
\
libcap2-bin netcat-openbsd iptables iproute2 knot-resolver
\
libcap2-bin netcat-openbsd iptables iproute2 knot-resolver knot-resolver-module-http
\
knot-resolver-module-http
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--no-install-recommends
\
-t
buster-backports openvpn
\
&&
rm
-rf
/var/lib/apt/lists/
*
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
setcap cap_net_admin,cap_net_bind_service+ep /usr/sbin/openvpn
RUN
setcap cap_net_admin,cap_net_bind_service+ep /usr/sbin/openvpn
RUN
setcap cap_net_admin+ep /bin/ip
RUN
setcap cap_net_admin+ep /bin/ip
...
...
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