Skip to content

Commit

Permalink
add 10.6-ubi, 10.11-ubi
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed May 20, 2024
1 parent 9981dc2 commit b76a621
Show file tree
Hide file tree
Showing 11 changed files with 1,451 additions and 75 deletions.
55 changes: 55 additions & 0 deletions 10.11-ubi/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM redhat/ubi9

# systemd-coredump has the uid 999, input has group 999, that we want to use for compatibility with the ubuntu image.
RUN groupdel input && \
userdel systemd-coredump && \
groupadd --gid 999 -r mysql && \
useradd -r -g mysql mysql --home-dir /var/lib/mysql --uid 999

ARG TARGETARCH
ENV GOSU_VERSION 1.17
RUN curl --location --output /usr/local/bin/gosu https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$TARGETARCH && \
curl --location --output /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$TARGETARCH.asc"; \
GNUPGHOME="$(mktemp -d)"; \
export GNUPGHOME; \
gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \
chmod a+x /usr/local/bin/gosu; \
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; \
gosu --version; \
gosu nobody true

COPY MariaDB.repo /etc/yum.repos.d/

# missing pwgen, pv (epel),
# procps - missing dependency of galera sst script
# 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 && \
dnf update -y && \
dnf install -y procps-ng zstd xz jemalloc pwgen tzdata && \
for pkg in boost-program-options-1.75.0-8; do \
rpm -ivh https://repo.almalinux.org/almalinux/9/AppStream/$(arch)/os/Packages/${pkg}.el9.$(arch).rpm ; \
done ; \
dnf 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 && \
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 ; \
mkdir /licenses && ln -s /usr/share/doc/MariaDB-server-10.11.8/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
COPY /docker-entrypoint.sh /usr/local/bin/

ENTRYPOINT ["docker-entrypoint.sh"]

EXPOSE 3306
CMD ["mariadbd"]
6 changes: 6 additions & 0 deletions 10.11-ubi/MariaDB.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[mariadb]
name = MariaDB
#baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch
baseurl = https://archive.mariadb.org/mariadb-10.11/yum/rhel/$releasever/$basearch
gpgkey=https://archive.mariadb.org/PublicKey
gpgcheck=1
Loading

0 comments on commit b76a621

Please sign in to comment.