mirror of
https://github.com/optim-enterprises-bv/openstack-helm-images.git
synced 2025-12-30 10:20:55 +00:00
Merge "Add ubuntu bionic based ovs image"
This commit is contained in:
@@ -1,68 +0,0 @@
|
||||
FROM k8s.gcr.io/debian-iptables-amd64:v10
|
||||
LABEL maintainer="pete.birley@att.com"
|
||||
|
||||
ARG OVS_VERSION=2.10.1
|
||||
ARG DPDK_VERSION=17.11.5
|
||||
|
||||
RUN set -ex ;\
|
||||
export DEBIAN_FRONTEND=noninteractive ;\
|
||||
apt-get update ;\
|
||||
apt-get upgrade -y ;\
|
||||
apt-get install --no-install-recommends -y \
|
||||
bash ;\
|
||||
apt-get install --no-install-recommends -y \
|
||||
build-essential \
|
||||
curl \
|
||||
libatomic1 \
|
||||
libssl1.1 \
|
||||
openssl \
|
||||
uuid-runtime \
|
||||
graphviz \
|
||||
autoconf \
|
||||
automake \
|
||||
bzip2 \
|
||||
debhelper \
|
||||
dh-autoreconf \
|
||||
libssl-dev \
|
||||
libtool \
|
||||
python-all \
|
||||
python-six \
|
||||
python-twisted-conch \
|
||||
python-zopeinterface \
|
||||
libnuma-dev \
|
||||
linux-headers-amd64 ;\
|
||||
TMP_DIR=$(mktemp -d) ;\
|
||||
curl -sSL http://fast.dpdk.org/rel/dpdk-${DPDK_VERSION}.tar.xz | tar xJ -C ${TMP_DIR} --strip-components=1 ;\
|
||||
export DPDK_DIR=${TMP_DIR} ;\
|
||||
cd ${DPDK_DIR} ;\
|
||||
export DPDK_TARGET=x86_64-native-linuxapp-gcc ;\
|
||||
export DPDK_BUILD=${DPDK_DIR}/${DPDK_TARGET} ;\
|
||||
export RTE_KERNELDIR=/usr/src/$(ls -1 /usr/src/ | grep amd64) ;\
|
||||
make install T=${DPDK_TARGET} DESTDIR=install ;\
|
||||
TMP_DIR=$(mktemp -d) ;\
|
||||
curl -sSL http://openvswitch.org/releases/openvswitch-${OVS_VERSION}.tar.gz | tar xz -C ${TMP_DIR} --strip-components=1 ;\
|
||||
cd ${TMP_DIR} ;\
|
||||
./boot.sh ;\
|
||||
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-dpdk=$DPDK_BUILD ;\
|
||||
make ;\
|
||||
make install ;\
|
||||
cd / ;\
|
||||
rm -rf ${DPDK_DIR} ;\
|
||||
rm -rf ${TMP_DIR} ;\
|
||||
apt-get purge --auto-remove -y \
|
||||
build-essential \
|
||||
curl \
|
||||
graphviz \
|
||||
autoconf \
|
||||
automake \
|
||||
bzip2 \
|
||||
debhelper \
|
||||
dh-autoreconf \
|
||||
libssl-dev \
|
||||
libtool \
|
||||
python-all \
|
||||
python-six \
|
||||
python-twisted-conch \
|
||||
python-zopeinterface ;\
|
||||
clean-install \
|
||||
iproute2 ;\
|
||||
8
openvswitch/Dockerfile.ubuntu_bionic
Normal file
8
openvswitch/Dockerfile.ubuntu_bionic
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM docker.io/ubuntu:bionic
|
||||
LABEL maintainer="cheng1.li@intel.com"
|
||||
|
||||
RUN set -ex; \
|
||||
apt-get update; \
|
||||
apt-get install -y openvswitch-switch; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
9
openvswitch/Dockerfile.ubuntu_bionic-dpdk
Normal file
9
openvswitch/Dockerfile.ubuntu_bionic-dpdk
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM docker.io/ubuntu:bionic
|
||||
LABEL maintainer="cheng1.li@intel.com"
|
||||
|
||||
RUN set -ex;\
|
||||
apt-get update; \
|
||||
apt-get install -y openvswitch-switch-dpdk; \
|
||||
update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -45,9 +45,14 @@
|
||||
- latest-debian
|
||||
- context: openvswitch
|
||||
repository: openstackhelm/openvswitch
|
||||
dockerfile: Dockerfile.debian-dpdk
|
||||
dockerfile: Dockerfile.ubuntu_bionic
|
||||
tags:
|
||||
- latest-debian-dpdk
|
||||
- latest-ubuntu_bionic
|
||||
- context: openvswitch
|
||||
repository: openstackhelm/openvswitch
|
||||
dockerfile: Dockerfile.ubuntu_bionic-dpdk
|
||||
tags:
|
||||
- latest-ubuntu_bionic-dpdk
|
||||
files: &openvswitch_files
|
||||
- openvswitch/.*
|
||||
- zuul.d/openvswitch.yaml
|
||||
|
||||
Reference in New Issue
Block a user