-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (28 loc) · 756 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (28 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:18.04
# Install networking utils / other dependancies
RUN apt-get update \
&& apt-get install -y \
docker.io \
netcat-openbsd \
curl \
jq \
lsof \
net-tools \
udhcpc \
isc-dhcp-client \
dhcpcd5 \
arping \
ndisc6 \
fping \
sipcalc \
bc \
&& apt-get clean
# Install pipework
COPY pipework /sbin/pipework
# workaround for dhclient error due to ubuntu apparmor profile - http://unix.stackexchange.com/a/155995
# dhclient: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
RUN mv /sbin/dhclient /usr/sbin/dhclient
# Our pipework wrapper script
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["--help"]