aboutsummaryrefslogtreecommitdiffstats
path: root/extras/rpm/opensuse/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'extras/rpm/opensuse/Dockerfile')
-rw-r--r--extras/rpm/opensuse/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/extras/rpm/opensuse/Dockerfile b/extras/rpm/opensuse/Dockerfile
new file mode 100644
index 00000000000..032c5d139ba
--- /dev/null
+++ b/extras/rpm/opensuse/Dockerfile
@@ -0,0 +1,15 @@
+# Run from top of vpp repo with command:
+# docker build -f extras/rpm/opensuse/Dockerfile .
+
+ARG SUSE_VERSION=15.3
+
+FROM opensuse/leap:${SUSE_VERSION} as vppbuild
+COPY . /vpp
+WORKDIR /vpp
+RUN zypper install -y make sudo
+COPY . .
+RUN UNATTENDED=y make install-dep
+RUN ln -s /usr/bin/cmake /usr/bin/cmake3
+RUN UNATTENDED=y make install-ext-deps
+RUN make pkg-rpm
+CMD ["/bin/bash"] \ No newline at end of file