From f291bc9211cdc6bab12f1334efebe1ce878df405 Mon Sep 17 00:00:00 2001 From: YohanPipereau Date: Tue, 16 Apr 2019 12:55:58 +0200 Subject: Fix docker runtime and Makefile -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 --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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 -- cgit 1.2.3-korg