From f8b6b8faa0ab09c82d439fee946cb67db0510aa8 Mon Sep 17 00:00:00 2001 From: Romulo Leite Date: Wed, 14 Dec 2022 15:30:45 -0300 Subject: [PATCH] Port stx-mariadb base image to stx-debian This change enables building the stx-mariadb Docker image within the Debian build framework. It is now based on stx-debian and following the new convention for StarlingX images. Test Plan: PASS - Build stx-mariadb debian image PASS - Manually upload mariadb built image to a Standard system, use helm-override to change the garbd container image and reapply stx-openstack. PASS - Check if the garbd pod starts successfully PASS - Ensure that galera-arbitrator-3 is installed Story: 2010072 Task: 46975 Signed-off-by: Romulo Leite Change-Id: I1d5dbaa5b58dd2cb68e2dfcbe85d2943184f00ff --- database/mariadb/debian/docker/Dockerfile | 6 ++++++ database/mariadb/debian/stx-mariadb.stable_docker_image | 2 ++ debian_stable_docker_images.inc | 1 + 3 files changed, 9 insertions(+) create mode 100644 database/mariadb/debian/docker/Dockerfile create mode 100644 database/mariadb/debian/stx-mariadb.stable_docker_image diff --git a/database/mariadb/debian/docker/Dockerfile b/database/mariadb/debian/docker/Dockerfile new file mode 100644 index 000000000..29c213bee --- /dev/null +++ b/database/mariadb/debian/docker/Dockerfile @@ -0,0 +1,6 @@ +FROM openstackhelm/mariadb:10.2.18 + +RUN rm /etc/apt/sources.list.d/mariadb.list && apt-get update && apt-get install -y galera-arbitrator-3 + +CMD ["/usr/bin/garbd"] + diff --git a/database/mariadb/debian/stx-mariadb.stable_docker_image b/database/mariadb/debian/stx-mariadb.stable_docker_image new file mode 100644 index 000000000..c15415153 --- /dev/null +++ b/database/mariadb/debian/stx-mariadb.stable_docker_image @@ -0,0 +1,2 @@ +BUILDER=docker +LABEL=stx-mariadb diff --git a/debian_stable_docker_images.inc b/debian_stable_docker_images.inc index 1d061b9dd..b755cdfb1 100644 --- a/debian_stable_docker_images.inc +++ b/debian_stable_docker_images.inc @@ -1,2 +1,3 @@ kubernetes/n3000 virt/libvirt +database/mariadb