summaryrefslogtreecommitdiffstats
path: root/src/plugins/srv6-mobile/extra/Dockerfile.j2
diff options
context:
space:
mode:
authorTetsuya Murakami <tetsuya.mrk@gmail.com>2019-11-06 11:05:51 -0800
committerOle Trøan <otroan@employees.org>2019-11-19 07:02:40 +0000
commit1b81e6ef66cbce15ba1b05904732f92251d531cd (patch)
tree114135a6f83405d4883bcb37f1c362051944831a /src/plugins/srv6-mobile/extra/Dockerfile.j2
parent360b523b52a91bd0d1d7de1247141367c484d70f (diff)
srv6-mobile
Type: feature Plug-in for IPv6 Segment Routing Mobile This funcion was developed by Signed-off-by: Satoru Matsuchima <satoru.matsushima@gmail.com> Signed-off-by: Filip Varga <filipvarga89@gmail.com> Signed-off-by: Tetsuya Murakami <tetsuya.mrk@gmail.com> Signed-off-by: Tetsuya Murakami <tetsuya.mrk@gmail.com> Change-Id: Ie995adc73d8f8d444339aab71619c3599e69f12d Signed-off-by: Tetsuya Murakami <tetsuya.mrk@gmail.com>
Diffstat (limited to 'src/plugins/srv6-mobile/extra/Dockerfile.j2')
-rw-r--r--src/plugins/srv6-mobile/extra/Dockerfile.j248
1 files changed, 48 insertions, 0 deletions
diff --git a/src/plugins/srv6-mobile/extra/Dockerfile.j2 b/src/plugins/srv6-mobile/extra/Dockerfile.j2
new file mode 100644
index 00000000000..ac58fa36b64
--- /dev/null
+++ b/src/plugins/srv6-mobile/extra/Dockerfile.j2
@@ -0,0 +1,48 @@
+
+FROM ubuntu:18.04
+
+RUN set -eux; \
+ apt-get update; \
+ apt-get install -y --no-install-recommends \
+ inetutils-traceroute \
+ ca-certificates \
+ build-essential \
+ git gdb sudo \
+ iputils-ping \
+ net-tools \
+ iproute2 \
+ tcpdump \
+ python3-cffi \
+ asciidoc \
+ xmlto \
+ netcat; \
+ rm -rf /var/lib/apt/lists/*; \
+ mv /usr/sbin/tcpdump /usr/bin/tcpdump
+
+RUN set -eux; \
+ mkdir -p {{vpp_path}}
+
+COPY . / {{vpp_path}}/
+
+WORKDIR {{vpp_path}}
+
+RUN set -eux; \
+ make wipe; \
+ export UNATTENDED=y; \
+ echo "y" | make install-dep; \
+ rm -rf /var/lib/apt/lists/* ; \
+ make build; \
+ make pkg-deb; \
+ rm -rf .ccache; \
+ find . -type f -name '*.o' -delete ; \
+ cd {{vpp_path}}/build-root; \
+ rm vpp-api-python_*.deb; \
+ tar czf vpp-package.tgz *.deb; \
+ mv vpp-package.tgz {{vpp_path}}/; \
+ dpkg -i *.deb ; \
+ cp {{vpp_path}}/startup.conf /etc/startup.conf
+
+WORKDIR /
+
+CMD vpp -c /etc/startup.conf
+