forked from contiv/netplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (17 loc) · 1001 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Docker v2plugin container with OVS / netplugin / netmaster
FROM alpine:3.5
LABEL maintainer "Cisco Contiv (https://contiv.github.io)"
RUN mkdir -p /run/docker/plugins /etc/openvswitch /var/run/contiv/log \
&& echo 'http://dl-cdn.alpinelinux.org/alpine/v3.4/main' >> /etc/apk/repositories \
&& apk --no-cache add openvswitch=2.5.0-r0 iptables ca-certificates openssl curl \
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/andyshinn/alpine-pkg-glibc/master/sgerrand.rsa.pub \
&& wget https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.23-r1/glibc-2.23-r1.apk \
&& apk --no-cache add glibc-2.23-r1.apk
# copy in binaries and scripts
ARG TAR_FILE
ADD ${TAR_FILE} /
COPY startcontiv.sh /
# this container is never run, it is exported for docker to run as a plugin,
# the startcontiv.sh script and the netplugin binaries are copied into the
# plugin's rootfs after export, this avoids copying into and out of container
ENTRYPOINT ["/startcontiv.sh"]