Skip to content

Commit 1cde310

Browse files
committed
First commit
0 parents  commit 1cde310

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Image name: faucet/test-host
2+
3+
# Note that mininet is extremeley persnickity about the underlying versions, since small changes in
4+
# command output will break the mininet parsing. E.g., different verions of 'ping' will have slightly
5+
# different output that cause the tests to fail (on debian). Or, on alpine the '/bin/sh' program
6+
# would output excess control-characters that confused mininet yet again.
7+
#
8+
# This host is built on top of ubuntu which is the same as the base-test image so should be most stable.
9+
#
10+
11+
FROM ubuntu:latest
12+
13+
RUN apt-get update && apt-get install -y net-tools iproute2 iputils-ping
14+
15+
# Add a marker in so that the unit tests can tell this is a container.
16+
RUN echo faucet-test-host > /root/test_marker.txt
17+
18+
# Cmd to run when activated
19+
CMD echo hello faucet

README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Faucet Test Host Docker Image
2+
=============================
3+
4+
This is the test host image used for the `faucet project <https://faucet.nz>`_ testsuite.
5+
6+
Pull from Docker Hub
7+
--------------------
8+
9+
Built images are available on Docker Hub so that you don't need to build your own.
10+
11+
Images are available for the following architectures:
12+
13+
* `amd64 <https://hub.docker.com/r/faucet/test-host/>`_

hooks/pre_build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# We need qemu-user-static for arm/pi builds
4+
docker run --rm --privileged multiarch/qemu-user-static:register --reset

0 commit comments

Comments
 (0)