Skip to content

Commit

Permalink
Merge pull request #1129 from uselagoon/testing/mysql_tini
Browse files Browse the repository at this point in the history
Replace upstream tini with krallin/tini in MySQL image
  • Loading branch information
tobybellwood authored Oct 8, 2024
2 parents 391b699 + 1452dab commit 2963227
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions images/mysql/8.0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ RUN microdnf install -y epel-release \
gettext \
net-tools \
pwgen \
tini \
wget; \
rm -rf /var/lib/mysql/* /etc/mysql/ /etc/my.cnf*; \
curl -sSL https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl -o mysqltuner.pl

RUN architecture=$(case $(uname -m) in x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) \
&& curl -sL https://github.com/krallin/tini/releases/download/v0.19.0/tini-${architecture} -o /sbin/tini && chmod a+x /sbin/tini

COPY entrypoints/ /lagoon/entrypoints/
COPY mysql-backup.sh /lagoon/
COPY my.cnf /etc/mysql/my.cnf
Expand All @@ -73,5 +75,5 @@ ENV USER_NAME=mysql
WORKDIR /var/lib/mysql
EXPOSE 3306

ENTRYPOINT ["/usr/bin/tini", "--", "/lagoon/entrypoints.bash"]
ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.bash"]
CMD ["mysqld"]
6 changes: 4 additions & 2 deletions images/mysql/8.4.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ RUN microdnf install -y epel-release \
gettext \
net-tools \
pwgen \
tini \
wget; \
rm -rf /var/lib/mysql/* /etc/mysql/ /etc/my.cnf*; \
curl -sSL https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl -o mysqltuner.pl

RUN architecture=$(case $(uname -m) in x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) \
&& curl -sL https://github.com/krallin/tini/releases/download/v0.19.0/tini-${architecture} -o /sbin/tini && chmod a+x /sbin/tini

COPY entrypoints/ /lagoon/entrypoints/
COPY mysql-backup.sh /lagoon/
COPY my.cnf /etc/mysql/my.cnf
Expand All @@ -72,5 +74,5 @@ ENV USER_NAME=mysql
WORKDIR /var/lib/mysql
EXPOSE 3306

ENTRYPOINT ["/usr/bin/tini", "--", "/lagoon/entrypoints.bash"]
ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.bash"]
CMD ["mysqld"]

0 comments on commit 2963227

Please sign in to comment.