-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
90 lines (85 loc) · 2.3 KB
/
Dockerfile
File metadata and controls
90 lines (85 loc) · 2.3 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
## Image name: faucet/test-base
## Base image for FAUCET tests.
FROM debian:bookworm
ENV OVSV="v3.7.0"
ENV MININETV="2.3.1b4"
ENV AG="apt-get -y --no-install-recommends -o=Dpkg::Use-Pty=0"
ENV DEBIAN_FRONTEND=noninteractive
ENV BUILD_DIR="/var/tmp/build"
ENV BUILD_DEPS="devscripts software-properties-common"
ENV PATH="/venv/bin:$PATH"
COPY bin/setup.sh /
COPY bin/setupproxy.sh /
COPY bin/dind.sh /
COPY etc/init.d/docker /docker.init.d
RUN mkdir -p ${BUILD_DIR} \
&& mv /setup.sh /setupproxy.sh /dind.sh /docker.init.d "${BUILD_DIR}" \
&& ${BUILD_DIR}/setupproxy.sh \
&& sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources \
&& ${AG} update \
&& ${AG} upgrade \
&& ${AG} install \
apt-transport-https \
bc \
ca-certificates \
curl \
dnsmasq \
dsniff \
ebtables \
equivs \
freeradius \
fping \
git \
gnupg \
iperf \
iperf3 \
iputils-ping \
iproute2 \
isc-dhcp-client \
kmod \
ladvd \
libnuma1 \
locales \
locales-all \
libpython3-dev \
librsvg2-bin \
libunbound-dev \
libxdp1 \
libyaml-dev \
lsb-release \
lsof \
ndisc6 \
net-tools \
netcat-openbsd \
nmap \
parallel \
patch \
psmisc \
python3-pip \
python3-venv \
sudo \
tcpdump \
traceroute \
tshark \
wget \
wpasupplicant \
${BUILD_DEPS} \
# Configure preferred commands
&& update-alternatives --set traceroute6 /usr/bin/traceroute6.db \
# Create venv
&& python3 -m venv /venv \
# Install Open vSwitch/Mininet
&& mk-build-deps openvswitch -i -r -t "${AG}" \
&& ${BUILD_DIR}/setup.sh \
# Install docker in docker...
&& ${BUILD_DIR}/dind.sh \
# Cleanup
&& ${AG} purge openvswitch-build-deps ${BUILD_DEPS} \
&& ${AG} autoremove --purge \
&& ${AG} clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf "${BUILD_DIR}"
RUN ovsdb-tool --help
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8