-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
22 lines (18 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Image name: faucet/test-host
# Note that mininet is extremeley persnickity about the underlying versions, since small changes in
# command output will break the mininet parsing. E.g., different verions of 'ping' will have slightly
# different output that cause the tests to fail (on debian). Or, on alpine the '/bin/sh' program
# would output excess control-characters that confused mininet yet again.
#
# This host is built on top of ubuntu which is the same as the base-test image so should be most stable.
#
FROM debian:bookworm
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y net-tools iproute2 iputils-ping \
# Add a marker in so that the unit tests can tell this is a container.
&& echo faucet-test-host > /root/test_marker.txt \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Cmd to run when activated
CMD echo "hello faucet"