Skip to content

Commit

Permalink
ubi: join steps + licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed May 20, 2024
1 parent e35a672 commit 9981dc2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile-ubi.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ COPY MariaDB.repo /etc/yum.repos.d/

# missing pwgen, pv (epel),
# procps - missing dependency of galera sst script
# liburing-2.5-1 (10.6+) - requested https://issues.redhat.com/browse/RHEL-36705
# libboost_program_options.so.1.66.0 only used by garb - should fix upstream
RUN gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys FF8AD1344597106ECE813B918A3872BF3228467C && \
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
Expand All @@ -35,18 +34,16 @@ RUN gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys FF8AD1344597106E
done ; \
dnf 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 && \
dnf clean all

RUN rm -rf /var/lib/mysql; \
rm -rf /var/lib/mysql; \
mkdir -p /var/lib/mysql /var/run/mysqld /etc/mysql/conf.d/ /etc/mysql/mariadb.conf.d/; \
chown -R mysql:mysql /var/lib/mysql /var/run/mysqld; \
chmod 777 /var/run/mysqld
chmod 777 /var/run/mysqld ; \
mkdir /licenses && ln -s /usr/share/doc/MariaDB-server-%%MARIADB_VERSION_BASIC%%/COPYING /licenses/GPL-2

COPY docker.cnf /etc/my.cnf.d/

VOLUME /var/lib/mysql


RUN mkdir /docker-entrypoint-initdb.d

COPY healthcheck.sh /usr/local/bin/healthcheck.sh
Expand Down

0 comments on commit 9981dc2

Please sign in to comment.