diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-11-24 14:24:53 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-11-27 07:22:42 +0100 |
commit | fc838c481e6f588906f6282ee1891b4b98ab1779 (patch) | |
tree | c6f4e6854c500692ad08d85f6b9c259d2e8736df /docker/Dockerfile | |
parent | 8f481756073847efaa6f54c6482b3850b3cd7535 (diff) |
Various scripts for creating and connecting hc2vpp docker containers
Change-Id: I755a23ba279a84600edfa2ddef89c2fe645c7945
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'docker/Dockerfile')
-rwxr-xr-x | docker/Dockerfile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100755 index 000000000..89be700a8 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,30 @@ +FROM ubuntu:16.04 + +WORKDIR /hc2vpp + +ADD . /hc2vpp + +RUN apt-get update && apt-get install -y \ + `# Networking utils` \ + iproute2 iputils-ping net-tools \ + `# VPP package dependencies` \ + libnuma1 libssl1.0.0 \ + `# Honeycomb package dependencies` \ + openjdk-8-jre-headless \ +\ +`# Install packages` \ +\ +&& dpkg -i packages/vpp-lib_*.deb \ +&& dpkg -i packages/vpp_*.deb \ +&& dpkg -i packages/vpp-plugins_*.deb \ +&& dpkg -i packages/vpp-api-java*.deb \ +&& dpkg -i packages/honeycomb_*.deb \ +\ +`# Disable DPDK for PCI devices` \ +\ +&& echo "dpdk {\n no-pci\n}" >> /etc/vpp/startup.conf \ +\ +`# Reduce image size` \ +\ +&& rm -rf /var/lib/apt/lists/* `# clear apt cache` \ +&& rm -rf packages |