Add Dockerfiles for run/build.
build-root/docker/build/ contains Dockerfiles for building vpp build-root/docker/run. contains Dockerfiles for creating Docker containers for runnining vpp. xenial, bionic, and centos7 are supported Change-Id: I90dd96ed9e01da14eead0395e597219717eead88 Signed-off-by: Ed Warnicke <hagbard@gmail.com>
This commit is contained in:
parent
052c2dc7e1
commit
148cc01a56
14
extras/docker/build/Dockerfile.bionic
Normal file
14
extras/docker/build/Dockerfile.bionic
Normal file
@ -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"]
|
11
extras/docker/build/Dockerfile.centos7
Normal file
11
extras/docker/build/Dockerfile.centos7
Normal file
@ -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"]
|
14
extras/docker/build/Dockerfile.xenial
Normal file
14
extras/docker/build/Dockerfile.xenial
Normal file
@ -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"]
|
12
extras/docker/run/Dockerfile.bionic
Normal file
12
extras/docker/run/Dockerfile.bionic
Normal file
@ -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"]
|
||||
|
5
extras/docker/run/Dockerfile.centos7
Normal file
5
extras/docker/run/Dockerfile.centos7
Normal file
@ -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"]
|
12
extras/docker/run/Dockerfile.xenial
Normal file
12
extras/docker/run/Dockerfile.xenial
Normal file
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user