summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile')
-rwxr-xr-xdocker/Dockerfile30
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