aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorYohanPipereau <ypiperea@cisco.com>2019-04-16 12:55:58 +0200
committerHongjun Ni <hongjun.ni@intel.com>2019-04-18 06:45:45 +0000
commitf291bc9211cdc6bab12f1334efebe1ce878df405 (patch)
tree18fca519628a9fa249d1752593d9fceccc53a96b /Dockerfile
parentaf67922d18631a33fca11a66a527407948051e18 (diff)
Fix docker runtime and Makefilev19.08-rc0
-Remove make test used in build-scvpp and add a test-scvpp instruction -Remove useless build scripts for docker build -Use sysrepo docker image to build sweetcomb docker image -Change makefile clean instruction to avoid errors -Do not put scripts in build-root directory but in sweetcomb root dir -Remove sysrepo compiled in Debug mode causing error looking for symbols Change-Id: Ie1d77f5224ad545da29c0f450403dbd47ca7c563 Signed-off-by: YohanPipereau <ypiperea@cisco.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..255d7e4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+FROM sysrepo/sysrepo-netopeer2:v0.7.7
+
+# Layer1: Prepare sweetcomb environement by installing sysrepo, netopeer2 & vpp
+# Layer2: Install sweetcomb
+
+
+#Clean sysrepo previous build because they forgot to do it
+RUN rm -rf /opt/dev/*
+
+#Install VPP
+RUN apt-get update && apt-get install -y \
+ #build utils
+ sudo curl \
+ #test utils
+ inetutils-ping \
+ && curl -s https://packagecloud.io/install/repositories/fdio/1904/script.deb.sh | sudo bash \
+ && apt-get -y --force-yes install vpp libvppinfra* vpp-plugin-* vpp-dev
+
+# Install sweetcomb
+COPY . /root/src/sweetcomb
+WORKDIR /root/src/sweetcomb
+
+RUN make install-dep && make build-scvpp && make build-plugins