File Dockerfile of Package mariadb
# SPDX-License-Identifier: MIT
#!BuildTag: suse/mariadb:%%mariadb_version%%
#!BuildTag: suse/mariadb:latest
#!BuildVersion: 15.4
FROM suse/sle15:15.4
MAINTAINER SUSE LLC (https://www.suse.com/)
# Define labels according to https://en.opensuse.org/Building_derived_containers
LABEL org.opencontainers.image.title="SLE mariadb Container Image for metal3"
LABEL org.opencontainers.image.description="mariadb based on the SLE Base Container Image for metal3."
LABEL org.opencontainers.image.url="https://www.suse.com/products/server/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opencontainers.image.version="%%mariadb_version%%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="techpreview"
LABEL com.suse.eula="sle-bci"
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle"
LABEL com.suse.image-type="application"
LABEL com.suse.release-stage="released"
# endlabelprefix
RUN sed -i -e 's%^# rpm.install.excludedocs = no.*%rpm.install.excludedocs = yes%g' /etc/zypp/zypp.conf
# python3.9
RUN set -euo pipefail; zypper -n in --no-recommends python39-devel python39 python39-pip git curl; zypper -n clean; rm -rf /var/log/*
RUN set -euo pipefail; ln -s /usr/bin/python3.9 /usr/local/bin/python3; \
ln -s /usr/bin/pydoc3.9 /usr/local/bin/pydoc
RUN set -euo pipefail; zypper -n in --no-recommends sles-release gawk vim hostname mariadb mariadb-client mariadb-tools timezone util-linux pwgen procps crudini libinotifytools0; zypper -n clean;
COPY configure-nonroot.sh runmariadb /bin/
RUN set -euo pipefail; chmod +x /bin/runmariadb; chmod +x /bin/configure-nonroot.sh
RUN /bin/configure-nonroot.sh && rm -f /bin/configure-nonroot.sh
ENTRYPOINT /bin/runmariadb