Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-ocserv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docker-ocserv
Commits
440dbaff
Commit
440dbaff
authored
Aug 31, 2017
by
Tommy Lau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to version 0.11.8 and Alpine 3.6
parent
246ebc71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Dockerfile
Dockerfile
+11
-6
No files found.
Dockerfile
View file @
440dbaff
FROM
alpine:3.
4
FROM
alpine:3.
6
MAINTAINER
Tommy Lau <tommy@gen-new.com>
MAINTAINER
Tommy Lau <tommy@gen-new.com>
ENV
OC_VERSION=0.11.
4
ENV
OC_VERSION=0.11.
8
RUN
buildDeps
=
"
\
RUN
buildDeps
=
"
\
curl
\
curl
\
...
@@ -21,8 +21,7 @@ RUN buildDeps=" \
...
@@ -21,8 +21,7 @@ RUN buildDeps=" \
xz
\
xz
\
"
;
\
"
;
\
set
-x
\
set
-x
\
&&
apk add
--update
gnutls gnutls-utils iptables libev libintl libnl3 libseccomp linux-pam lz4 openssl readline
sed
\
&&
apk add
--update
--virtual
.build-deps
$buildDeps
\
&&
apk add
$buildDeps
\
&&
curl
-SL
"ftp://ftp.infradead.org/pub/ocserv/ocserv-
$OC_VERSION
.tar.xz"
-o
ocserv.tar.xz
\
&&
curl
-SL
"ftp://ftp.infradead.org/pub/ocserv/ocserv-
$OC_VERSION
.tar.xz"
-o
ocserv.tar.xz
\
&&
curl
-SL
"ftp://ftp.infradead.org/pub/ocserv/ocserv-
$OC_VERSION
.tar.xz.sig"
-o
ocserv.tar.xz.sig
\
&&
curl
-SL
"ftp://ftp.infradead.org/pub/ocserv/ocserv-
$OC_VERSION
.tar.xz.sig"
-o
ocserv.tar.xz.sig
\
&&
gpg
--keyserver
pgp.mit.edu
--recv-key
7F343FA7
\
&&
gpg
--keyserver
pgp.mit.edu
--recv-key
7F343FA7
\
...
@@ -39,7 +38,14 @@ RUN buildDeps=" \
...
@@ -39,7 +38,14 @@ RUN buildDeps=" \
&&
cp
/usr/src/ocserv/doc/sample.config /etc/ocserv/ocserv.conf
\
&&
cp
/usr/src/ocserv/doc/sample.config /etc/ocserv/ocserv.conf
\
&&
cd
/
\
&&
cd
/
\
&&
rm
-fr
/usr/src/ocserv
\
&&
rm
-fr
/usr/src/ocserv
\
&&
apk del
$buildDeps
\
&&
runDeps
=
"
$(
\
scanelf
--needed
--nobanner
/usr/local/sbin/ocserv
\
|
awk
'{ gsub(/,/, "\nso:", $2); print "so:" $2 }'
\
| xargs
-r
apk info
--installed
\
|
sort
-u
\
)
"
\
&&
apk add
--virtual
.run-deps
$runDeps
\
&&
apk del .build-deps
\
&&
rm
-rf
/var/cache/apk/
*
&&
rm
-rf
/var/cache/apk/
*
# Setup config
# Setup config
...
@@ -68,4 +74,3 @@ ENTRYPOINT ["/entrypoint.sh"]
...
@@ -68,4 +74,3 @@ ENTRYPOINT ["/entrypoint.sh"]
EXPOSE
443
EXPOSE
443
CMD
["ocserv", "-c", "/etc/ocserv/ocserv.conf", "-f"]
CMD
["ocserv", "-c", "/etc/ocserv/ocserv.conf", "-f"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment