Created
August 5, 2015 15:54
-
-
Save lukego/850a037c7d9ecdf594af to your computer and use it in GitHub Desktop.
Docker and SnabbBot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER Luke Gorrie | |
# Install the latest versions of all the packages that we depend on | |
RUN apt-get update | |
RUN apt-get install -y build-essential gcc pkg-config glib-2.0 libglib2.0-dev libsdl1.2-dev libaio-dev libcap-dev libattr1-dev libpixman-1-dev libncurses5 libncurses5-dev git telnet tmux numactl wget | |
# Download and compile Snabb Switch | |
RUN git clone https://github.com/SnabbCo/snabbswitch && cd snabbswitch && make | |
# EDITME: Hardware dependent parameters | |
ENV PCI0=0000:01:00.0 PCI1=0000:01:00.1 | |
# Run the test suite with the right hardware | |
CMD mkdir /hugetlbfs && \ | |
mount -t hugetlbfs none /hugetlbfs && \ | |
cd snabbswitch/src && \ | |
SNABB_TEST_INTEL10G_PCIDEVA=${PCI0} SNABB_TEST_INTEL10G_PCIDEVB=${PCI1} \ | |
TESTPCI=${PCI0} TELNET_PORT0=5000 TELNET_PORT1=5001 \ | |
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo sysctl -w vm.nr_hugepages=10240 | |
$ sudo docker run --privileged -t -i lukego/snabbci | |
DIR testlog | |
TEST program.snabbnfv.nfvconfig | |
TEST program.snabbnfv.neutron2snabb.neutron2snabb | |
TEST program.snabbnfv.neutron2snabb.neutron2snabb_schema | |
TEST apps.intel.intel_app | |
TEST apps.packet_filter.pcap_filter | |
TEST apps.socket.raw | |
TEST apps.vpn.vpws | |
TEST apps.keyed_ipv6_tunnel.tunnel | |
TEST apps.rate_limiter.rate_limiter | |
TEST apps.vhost.vhost_user | |
SKIPPED testlog/apps.vhost.vhost_user | |
TEST core.memory | |
TEST core.link | |
TEST core.shm | |
TEST core.timer | |
TEST core.app | |
SKIPPED testlog/core.app | |
TEST core.lib | |
TEST core.counter | |
TEST lib.hardware.pci | |
TEST lib.checksum | |
TEST lib.protocol.ipv4 | |
TEST lib.protocol.ipv6 | |
TEST lib.bloom_filter | |
TEST lib.hash.murmur | |
TEST lib.ipc.shmem.shmem | |
TEST program/packetblaster/selftest.sh | |
TEST program/snabbnfv/selftest.sh | |
TEST program/snabbnfv/neutron2snabb/selftest.sh | |
TEST selftest.sh | |
TEST apps/solarflare/selftest.sh | |
SKIPPED testlog/apps.solarflare.selftest.sh | |
TEST lib/watchdog/selftest.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment