forked from mehdiBezahaf/intent-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.Dockerfile
60 lines (50 loc) · 1.26 KB
/
tester.Dockerfile
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
FROM ghcr.io/scc365/mnexec:latest as mnexec
FROM ghcr.io/scc365/mnof:latest as openflow
FROM debian:bullseye-slim
RUN sed -i -e 's/ main/ main contrib non-free/g' /etc/apt/sources.list && \
apt-get update -q && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yq \
socat \
curl \
iptables \
tshark \
dynamips \
libpcap0.8 \
arping \
git \
hping3 \
iperf3 \
iproute2 \
iputils-ping \
net-tools \
openvswitch-common \
openvswitch-switch \
openvswitch-testcontroller \
python3 \
python3-bottle \
python3-pip \
python3-setuptools \
telnet \
python3-libvirt \
virtinst \
libvirt-clients \
dnsmasq \
traceroute && \
rm -rf /var/lib/apt/lists/*
COPY --from=openflow /usr/local/bin/ /usr/local/bin/
COPY --from=mnexec /output/mnexec /usr/bin/mnexec
RUN ls
ARG MTV_REPO=https://github.com/ng-cdi/mtv
ARG MTV_VERSION=a75ddd29f27c6bbb8a0e6080348d7fa15155c089
WORKDIR /src/mtv
RUN git clone ${MTV_REPO} .
RUN git reset --hard ${MTV_VERSION}
RUN pip3 install docker
RUN pip3 install .
WORKDIR /
RUN pip3 install pbr==5.8.1
RUN pip3 install eventlet==0.30.2
RUN pip3 install ryu==4.34
LABEL org.opencontainers.image.source https://github.com/ng-cdi/intent-deploy
ENTRYPOINT [ ]
CMD [ "bash", "/mnt/startup.sh" ]