summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extras/docker/build/Dockerfile.bionic14
-rw-r--r--extras/docker/build/Dockerfile.centos711
-rw-r--r--extras/docker/build/Dockerfile.xenial14
-rw-r--r--extras/docker/run/Dockerfile.bionic12
-rw-r--r--extras/docker/run/Dockerfile.centos75
-rw-r--r--extras/docker/run/Dockerfile.xenial12
6 files changed, 68 insertions, 0 deletions
diff --git a/extras/docker/build/Dockerfile.bionic b/extras/docker/build/Dockerfile.bionic
new file mode 100644
index 00000000000..61d57c26c7d
--- /dev/null
+++ b/extras/docker/build/Dockerfile.bionic
@@ -0,0 +1,14 @@
+# Run from top of vpp repo with command:
+# docker build -f extras/docker/build/Dockerfile.bionic .
+FROM ubuntu:bionic
+ARG REPO=master
+COPY . /vpp
+WORKDIR /vpp
+RUN apt-get update
+RUN apt-get -y install make sudo git curl
+RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh | bash
+RUN apt-get update
+RUN apt-get -y install vpp-dpdk-dev
+RUN UNATTENDED=y make install-dep
+RUN make pkg-deb
+CMD ["/bin/bash"] \ No newline at end of file
diff --git a/extras/docker/build/Dockerfile.centos7 b/extras/docker/build/Dockerfile.centos7
new file mode 100644
index 00000000000..b466feb99ec
--- /dev/null
+++ b/extras/docker/build/Dockerfile.centos7
@@ -0,0 +1,11 @@
+# Run from top of vpp repo with command:
+# docker build -f extras/docker/build/Dockerfile.centos7 .
+FROM centos:7.3.1611
+ARG REPO=master
+COPY . /vpp
+WORKDIR /vpp
+RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.rpm.sh | bash
+RUN yum install -y vpp-dpdk-devel make sudo
+RUN UNATTENDED=y make install-dep
+RUN make pkg-rpm
+CMD ["/bin/bash"] \ No newline at end of file
diff --git a/extras/docker/build/Dockerfile.xenial b/extras/docker/build/Dockerfile.xenial
new file mode 100644
index 00000000000..0a00246a97f
--- /dev/null
+++ b/extras/docker/build/Dockerfile.xenial
@@ -0,0 +1,14 @@
+# Run from top of vpp repo with command:
+# docker build -f extras/docker/build/Dockerfile.xenial .
+FROM ubuntu:xenial
+ARG REPO=master
+COPY . /vpp
+WORKDIR /vpp
+RUN apt-get update
+RUN apt-get -y install make sudo git curl
+RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh | bash
+RUN apt-get update
+RUN apt-get -y install vpp-dpdk-dev
+RUN UNATTENDED=y make install-dep
+RUN make pkg-deb
+CMD ["/bin/bash"] \ No newline at end of file
diff --git a/extras/docker/run/Dockerfile.bionic b/extras/docker/run/Dockerfile.bionic
new file mode 100644
index 00000000000..f7a8603ca8a
--- /dev/null
+++ b/extras/docker/run/Dockerfile.bionic
@@ -0,0 +1,12 @@
+FROM ubuntu:bionic
+ARG DEBIAN_FRONTEND=noninteractive
+ARG REPO=release
+RUN apt-get update
+RUN apt-get -y install curl
+RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh | bash
+RUN apt-get update
+RUN apt-get -y install vpp vpp-plugins
+RUN apt-get -y purge curl
+RUN apt-get -y clean
+CMD ["/usr/bin/vpp","-c","/etc/vpp/startup.conf"]
+
diff --git a/extras/docker/run/Dockerfile.centos7 b/extras/docker/run/Dockerfile.centos7
new file mode 100644
index 00000000000..8c27abd6b19
--- /dev/null
+++ b/extras/docker/run/Dockerfile.centos7
@@ -0,0 +1,5 @@
+FROM centos:7.3.1611
+ARG REPO=release
+RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.rpm.sh | bash
+RUN yum -y install vpp vpp-plugins
+CMD ["/usr/bin/vpp","-c","/etc/vpp/startup.conf"] \ No newline at end of file
diff --git a/extras/docker/run/Dockerfile.xenial b/extras/docker/run/Dockerfile.xenial
new file mode 100644
index 00000000000..ba1a2ae03c6
--- /dev/null
+++ b/extras/docker/run/Dockerfile.xenial
@@ -0,0 +1,12 @@
+FROM ubuntu:xenial
+ARG DEBIAN_FRONTEND=noninteractive
+ARG REPO=release
+RUN apt-get update
+RUN apt-get -y install curl
+RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh | bash
+RUN apt-get update
+RUN apt-get -y install vpp vpp-plugins
+RUN apt-get -y purge curl
+RUN apt-get -y clean
+CMD ["/usr/bin/vpp","-c","/etc/vpp/startup.conf"]
+