aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Dockerfile
diff options
context:
space:
mode:
authorPavel Kotucek <pavel.kotucek@pantheon.tech>2019-04-29 15:58:24 +0200
committerHongjun Ni <hongjun.ni@intel.com>2019-05-15 00:40:40 +0000
commit6f6ea23e7114520fe25245effd4120294841f3a2 (patch)
tree7de83ff92c0dc9df0cf39e397ea28c7997b9c215 /scripts/Dockerfile
parent28bb25aee9898b50468233e896aab018e68bf787 (diff)
Docker build improvements
Added small changes to create dev docker image. Fixed checkstyle. Change-Id: I0ea1a0bad114578903073526fa12b84702072e3a Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
Diffstat (limited to 'scripts/Dockerfile')
-rw-r--r--scripts/Dockerfile30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/Dockerfile b/scripts/Dockerfile
new file mode 100644
index 0000000..b07382c
--- /dev/null
+++ b/scripts/Dockerfile
@@ -0,0 +1,30 @@
+FROM ubuntu:18.04
+
+# Layer0: Prepare sweetcomb environement by installing sysrepo, netopeer2 & vpp
+# Layer1: Install vpp
+# Layer2: Install sweetcomb
+
+#Layer 0
+RUN mkdir -p /opt/dev && apt-get update &&\
+ apt-get install -y build-essential sudo
+COPY . /opt/dev
+WORKDIR /opt/dev
+RUN make install-dep && make install-dep-extra
+RUN rm -rf /opt/dev/*
+
+#Layer1
+RUN apt-get install -y \
+ sudo curl \
+ 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
+
+RUN apt-get update; \
+ apt-get install -y clang-format python3-pip; \
+ pip3 install pexpect pyroute2 psutil;
+
+#Layer2
+COPY . /root/src/sweetcomb
+WORKDIR /root/src/sweetcomb
+
+RUN make install-dep && make build-scvpp && make build-plugins \ No newline at end of file