Add ubuntu bionic mariadb file

This change adds a new mariadb Dockerfile for ubuntu bionic, a
future change will remove the xenial one.

Change-Id: Id728b13f99702ebced10486d8e15c3eeb3705c2b
This commit is contained in:
Gage Hugo 2021-03-24 14:04:29 -05:00
parent f4cc60b8b1
commit 55a41e9b29
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,24 @@
# mariadb:10.5.3-bionic
ARG FROM=docker.io/mariadb@sha256:bd5b3470601aa4a28132ec60a8b1c33516d09a1391864fe1dbf82a4030397fd1
FROM ${FROM}
RUN set -ex ;\
apt-get update ;\
apt-get install -y --no-install-recommends \
python3-pip ;\
pip3 --no-cache-dir install --upgrade pip ;\
hash -r ;\
pip3 --no-cache-dir install --upgrade setuptools ;\
pip3 --no-cache-dir install --upgrade \
configparser \
iso8601 \
kubernetes \
pykube-ng ;\
apt-get clean -y ;\
rm -rf \
/var/cache/debconf/* \
/var/lib/apt/lists/* \
/var/log/* \
/tmp/* \
/var/tmp/* ;\
usermod -s /bin/false mysql

View File

@ -5,8 +5,8 @@ SCRIPT_DIR=`dirname ${SCRIPT}`
cd ${SCRIPT_DIR}/..
IMAGE="mariadb"
VERSION=${VERSION:-latest}
DISTRO=${DISTRO:-ubuntu_xenial}
VERSION=${VERSION:-10.5.3-bionic}
DISTRO=${DISTRO:-ubuntu_bionic}
REGISTRY_URI=${REGISTRY_URI:-"openstackhelm/"}
EXTRA_TAG_INFO=${EXTRA_TAG_INFO:-""}
docker build -f ${IMAGE}/Dockerfile.${DISTRO} --network=host -t ${REGISTRY_URI}${IMAGE}:${VERSION}-${DISTRO}${EXTRA_TAG_INFO} ${extra_build_args} ${IMAGE}