Skip to content

Commit

Permalink
Compatibility with UBI 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 authored and grooverdan committed May 28, 2024
1 parent 028f031 commit 93144db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions 10.11-ubi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ RUN curl https://pagure.io/fedora-web/websites/raw/master/f/sites/getfedora.org/
microdnf update -y && \
microdnf reinstall -y tzdata && \
microdnf install -y procps-ng zstd xz jemalloc pwgen pv && \
mkdir -p /etc/mysql/conf.d /etc/mysql/mariadb.conf.d/ /var/lib/mysql/mysql /run/mariadb && \
mkdir -p /etc/mysql/conf.d /etc/mysql/mariadb.conf.d/ /var/lib/mysql/mysql /run/mariadb /usr/lib64/galera && \
microdnf install -y MariaDB-backup-10.11.8 MariaDB-server-10.11.8 && \
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib/libgalera_smm.so && \
# compatibility with Ubuntu images
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib/libgalera_smm.so && \
# compatibility with UBI 8
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib64/galera/libgalera_smm.so && \
microdnf clean all && \
rmdir /var/lib/mysql/mysql && \
chown -R mysql:mysql /var/lib/mysql /run/mariadb && \
Expand Down
7 changes: 5 additions & 2 deletions 10.6-ubi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ RUN curl https://pagure.io/fedora-web/websites/raw/master/f/sites/getfedora.org/
microdnf update -y && \
microdnf reinstall -y tzdata && \
microdnf install -y procps-ng zstd xz jemalloc pwgen pv && \
mkdir -p /etc/mysql/conf.d /etc/mysql/mariadb.conf.d/ /var/lib/mysql/mysql /run/mariadb && \
mkdir -p /etc/mysql/conf.d /etc/mysql/mariadb.conf.d/ /var/lib/mysql/mysql /run/mariadb /usr/lib64/galera && \
microdnf install -y MariaDB-backup-10.6.18 MariaDB-server-10.6.18 && \
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib/libgalera_smm.so && \
# compatibility with Ubuntu images
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib/libgalera_smm.so && \
# compatibility with UBI 8
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib64/galera/libgalera_smm.so && \
microdnf clean all && \
rmdir /var/lib/mysql/mysql && \
chown -R mysql:mysql /var/lib/mysql /run/mariadb && \
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile-ubi.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ RUN curl https://pagure.io/fedora-web/websites/raw/master/f/sites/getfedora.org/
microdnf update -y && \
microdnf reinstall -y tzdata && \
microdnf install -y procps-ng zstd xz jemalloc pwgen pv && \
mkdir -p /etc/mysql/conf.d /etc/mysql/mariadb.conf.d/ /var/lib/mysql/mysql /run/mariadb && \
mkdir -p /etc/mysql/conf.d /etc/mysql/mariadb.conf.d/ /var/lib/mysql/mysql /run/mariadb /usr/lib64/galera && \
microdnf install -y MariaDB-backup-%%MARIADB_VERSION_BASIC%% MariaDB-server-%%MARIADB_VERSION_BASIC%% && \
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib/libgalera_smm.so && \
# compatibility with Ubuntu images
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib/libgalera_smm.so && \
# compatibility with UBI 8
ln -s /usr/lib64/galera-4/libgalera_smm.so /usr/lib64/galera/libgalera_smm.so && \
microdnf clean all && \
rmdir /var/lib/mysql/mysql && \
chown -R mysql:mysql /var/lib/mysql /run/mariadb && \
Expand Down

0 comments on commit 93144db

Please sign in to comment.