Skip to content

Commit

Permalink
Add Dockerfile.c10s to version 10.11
Browse files Browse the repository at this point in the history
Update README's so it contains also CentOS Stream 10

Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Aug 6, 2024
1 parent 3557cf7 commit f12181d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
20 changes: 11 additions & 9 deletions 10.11/Dockerfile.c10s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/sclorg/s2i-core-c9s:c9s
FROM quay.io/sclorg/s2i-core-c10s:c10s

# MariaDB image for OpenShift.
#
Expand All @@ -13,6 +13,9 @@ FROM quay.io/sclorg/s2i-core-c9s:c9s
ENV MYSQL_VERSION=10.11 \
APP_DATA=/opt/app-root/src \
HOME=/var/lib/mysql \
NAME=mariadb \
VERSION=10.11 \
ARCH=x86_64 \
SUMMARY="MariaDB 10.11 SQL database server" \
DESCRIPTION="MariaDB is a multi-user, multi-threaded SQL database server. The container \
image provides a containerized packaging of the MariaDB mysqld daemon and client application. \
Expand All @@ -22,26 +25,25 @@ MariaDB databases on behalf of the clients."
LABEL summary="$SUMMARY" \
description="$DESCRIPTION" \
io.k8s.description="$DESCRIPTION" \
io.k8s.display-name="MariaDB 10.11" \
io.k8s.display-name="MariaDB $VERSION" \
io.openshift.expose-services="3306:mysql" \
io.openshift.tags="database,mysql,mariadb,mariadb1011,mariadb-1011" \
com.redhat.component="mariadb-1011-container" \
name="sclorg/mariadb-1011-c9s" \
com.redhat.component="$NAME-1011-container" \
name="sclorg/$NAME-1011-c10s" \
version="1" \
usage="podman run -d -e MYSQL_USER=user -e MYSQL_PASSWORD=pass -e MYSQL_DATABASE=db -p 3306:3306 quay.io/sclorg/mariadb-1011-c9s" \
usage="podman run -d -e MYSQL_USER=user -e MYSQL_PASSWORD=pass -e MYSQL_DATABASE=db -p 3306:3306 quay.io/sclorg/$NAME-1011-c10s" \
maintainer="SoftwareCollections.org <[email protected]>"

EXPOSE 3306

# This image must forever use UID 27 for mysql user so our volumes are
# safe in the future. This should *never* change, the last test is there
# to make sure of that.
RUN yum -y module enable mariadb:$MYSQL_VERSION && \
INSTALL_PKGS="policycoreutils rsync tar gettext hostname bind-utils groff-base mariadb-server" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
RUN INSTALL_PKGS="policycoreutils rsync tar gettext hostname bind-utils groff-base mariadb-server" && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
/usr/libexec/mysqld -V | grep -qe "$MYSQL_VERSION\." && echo "Found VERSION $MYSQL_VERSION" && \
yum -y clean all --enablerepo='*' && \
dnf -y clean all --enablerepo='*' && \
mkdir -p /var/lib/mysql/data && chown -R mysql.0 /var/lib/mysql && \
test "$(id mysql)" = "uid=27(mysql) gid=27(mysql) groups=27(mysql)"

Expand Down
1 change: 1 addition & 0 deletions 10.11/root/usr/share/container-scripts/mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,4 +363,5 @@ https://github.com/sclorg/mariadb-container.
In that repository, the Dockerfile for RHEL8 is called Dockerfile.rhel8,
the Dockerfile for RHEL9 is called Dockerfile.rhel9,
the Dockerfile for CentOS Stream 9 is called Dockerfile.c9s,
the Dockerfile for CentOS Stream 10 is called Dockerfile.c10s,
and the Dockerfile for Fedora is called Dockerfile.fedora.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MariaDB SQL Database Server Docker Image
Images available on Quay are:
* CentOS Stream 9 [mariadb-105](https://quay.io/repository/sclorg/mariadb-105-c9s)
* CentOS Stream 9 [mariadb-1011](https://quay.io/repository/sclorg/mariadb-1011-c9s)
* CentOS Stream 10 [mariadb-1011](https://quay.io/repository/sclorg/mariadb-1011-c10s)
* Fedora [mariadb-103](https://quay.io/repository/fedora/mariadb-103)
* Fedora [mariadb-105](https://quay.io/repository/fedora/mariadb-105)
* Fedora [mariadb-1011](https://quay.io/repository/fedora/mariadb-1011)
Expand Down Expand Up @@ -38,6 +39,7 @@ RHEL versions currently supported are:

CentOS versions currently supported are:
* CentOS Stream 9
* CentOS Stream 10


Installation
Expand Down

0 comments on commit f12181d

Please sign in to comment.