-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 995 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 995 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
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests openvswitch-switch curl iproute2 iputils-ping net-tools tcpdump x11-xserver-utils xterm iperf socat telnet tmux tini jq
RUN apt-get -y --no-install-recommends install git-core ca-certificates patch
WORKDIR /usr/src
RUN git clone https://github.com/mininet/mininet \
&& cd mininet \
&& git checkout 2.3.1b4 \
&& sed -e 's/sudo //g' \
-e 's/DEBIAN_FRONTEND=noninteractive //g' \
-e 's/\(apt-get -y -q install\)/\1 --no-install-recommends --no-install-suggests/g' \
-i ./util/install.sh \
&& rm -f /usr/lib/python3.11/EXTERNALLY-MANAGED \
&& ./util/install.sh -f \
&& PYTHON=python3 ./util/install.sh -n \
&& cd .. && rm -rf mininet openflow \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY docker-entrypoint.sh /docker-entrypoint.sh
EXPOSE 6633 6653 6640
ENTRYPOINT ["/usr/bin/tini", "--", "/docker-entrypoint.sh"]