summaryrefslogtreecommitdiffstats
path: root/examples/docker/Dockerfile
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-04-30 09:03:13 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-05-02 09:55:56 +0000
commit30b088af1c187d7d3abd65030089c2a56f5cf95b (patch)
treeee427c54a6885d644c69a300407445fefff24628 /examples/docker/Dockerfile
parent4b8bef208fc37b09008e3333db9d262d56b94192 (diff)
Move docker files to examples directory
Change-Id: Ib2eb3dbae76a1e9b5d98ce9e0d5eea9adba280cf Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit e4c58493ce5265ea0d1e17d160c339401c406186)
Diffstat (limited to 'examples/docker/Dockerfile')
-rwxr-xr-xexamples/docker/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/docker/Dockerfile b/examples/docker/Dockerfile
new file mode 100755
index 000000000..2decc50c2
--- /dev/null
+++ b/examples/docker/Dockerfile
@@ -0,0 +1,26 @@
+FROM ubuntu:16.04
+
+WORKDIR /hc2vpp
+
+ADD . /hc2vpp
+
+RUN apt-get update && apt-get install -y \
+ # Utils
+ iproute2 iputils-ping net-tools vim-tiny jshon telnet \
+ # VPP package dependencies
+ libnuma1 libssl1.0.0 libmbedcrypto0 libmbedtls10 libmbedx509-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/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