From 9c14e562e2f47ac4a51dd51220f634d293c5e094 Mon Sep 17 00:00:00 2001 From: Rafael Cardoso Pereira Date: Fri, 23 Dec 2022 14:33:27 -0500 Subject: [PATCH] Create and build stx-ovs using Debian base image. Make the openvswitch docker image stx-debian based, following the new convention for StarlingX docker images. Test Plan: PASS - Build stx-ovs debian image PASS - Manually upload stx-ovs built image to a Standard system, use helm-override to change the openvswitch_db_server and openvswitch_vswitchd, container images and reapply stx-openstack. PASS - Check if the openstack pods start successfully Story: 2010072 Task: 46976 Signed-off-by: Rafael Cardoso Pereira Change-Id: Ic43a47698881a51f0fe70c50365f27b94999228e --- debian_stable_docker_images.inc | 1 + .../openvswitch/debian/docker/Dockerfile | 20 +++++++++++++++++++ .../debian/stx-ovs.stable_docker_image | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 networking/openvswitch/debian/docker/Dockerfile create mode 100644 networking/openvswitch/debian/stx-ovs.stable_docker_image diff --git a/debian_stable_docker_images.inc b/debian_stable_docker_images.inc index b755cdfb1..7f18e9487 100644 --- a/debian_stable_docker_images.inc +++ b/debian_stable_docker_images.inc @@ -1,3 +1,4 @@ kubernetes/n3000 virt/libvirt database/mariadb +networking/openvswitch diff --git a/networking/openvswitch/debian/docker/Dockerfile b/networking/openvswitch/debian/docker/Dockerfile new file mode 100644 index 000000000..04d06c7f1 --- /dev/null +++ b/networking/openvswitch/debian/docker/Dockerfile @@ -0,0 +1,20 @@ +# Expected build arguments: +# BASE: specify base layer +# +ARG BASE + +FROM ${BASE} + +ENV OVS_VERSION=2.15.0 + +RUN apt-get -y update \ + && apt-get -y install \ + openvswitch-common \ + openvswitch-dbg \ + openvswitch-dev \ + openvswitch-ipsec \ + openvswitch-pki \ + openvswitch-switch-dpdk \ + openvswitch-switch \ + openvswitch-testcontroller \ + openvswitch-vtep \ No newline at end of file diff --git a/networking/openvswitch/debian/stx-ovs.stable_docker_image b/networking/openvswitch/debian/stx-ovs.stable_docker_image new file mode 100644 index 000000000..c5892097f --- /dev/null +++ b/networking/openvswitch/debian/stx-ovs.stable_docker_image @@ -0,0 +1,2 @@ +BUILDER=docker +LABEL=stx-ovs