2025-01-21 17:15:14 UTC
221 MB
1.17
MYSQL_MAJOR8.0
MYSQL_SHELL_VERSION8.0.41-1.el9
MYSQL_VERSION8.0.41-1.el9
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:2c0a233485c3a7b6cab556a9a9c2916ca9a3afc8c46097ddfbe0af4fe120a50c - 21.17% (46.8 MB)
[#001] sha256:fb027c65a85cfe71e10cb49319c0786a090eb22468ca3422c214c88de3ae3c20 - 0.0% (884 Bytes)
[#002] sha256:d87e05573c29e58583900bad982c70dfd740f18f2940e2d90a04ddf0f150de9b - 0.42% (960 KB)
[#003] sha256:7d202bd608a9277c6e7d5b8a3c64721189ca1b2111f7d4d1a397d3721377a045 - 2.98% (6.58 MB)
[#004] sha256:930324cdd290e662f38af3357cd4ee1074f2de3ff93a94612b89e13c0280c6bd - 0.0% (2.55 KB)
[#005] sha256:441e29354b231ddcabe659aa742344c62a732df1686c5e94e10ca6251f46dac3 - 0.0% (333 Bytes)
[#006] sha256:4f0710d03b24e6b1296bc15ee3a02c41eeab0d4b813162d8fbcb94185b5fa1be - 21.4% (47.3 MB)
[#007] sha256:ead7d3dd9cc0be4808627c6606ef6da57141cdf4bbe5d5323416f6cb5590ef69 - 0.0% (316 Bytes)
[#008] sha256:55d2712d2c86d5b7e63b7f526c57de19ccb857baeae7367735e0fe53a32287be - 54.03% (119 MB)
[#009] sha256:4aaa23a8b4131bf3de8d4b0589ba4573af124414a3d60c6879390bbadb421a4e - 0.0% (5.2 KB)
[#010] sha256:84ba6b75f842bbe65101567089f251f71d006273613902c3094e269f486e55af - 0.0% (122 Bytes)
ADD oraclelinux-9-slim-amd64-rootfs.tar.xz / # buildkit
2024-11-21 19:42:52 UTC (buildkit.dockerfile.v0)CMD ["/bin/bash"]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; groupadd --system --gid 999 mysql; useradd --system --uid 999 --gid 999 --home-dir /var/lib/mysql --no-create-home mysql # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; arch="$(uname -m)"; case "$arch" in aarch64) gosuArch='arm64' ;; x86_64) gosuArch='amd64' ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; curl -fL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch.asc"; curl -fL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; microdnf install -y bzip2 gzip openssl xz zstd findutils ; microdnf clean all # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; key='BCA4 3417 C3B4 85DD 128E C6D4 B7B3 B788 A8D3 785C'; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql; rm -rf "$GNUPGHOME" # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_MAJOR=8.0
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_VERSION=8.0.41-1.el9
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eu; { echo '[mysql8.0-server-minimal]'; echo 'name=MySQL 8.0 Server Minimal'; echo 'enabled=1'; echo 'baseurl=https://repo.mysql.com/yum/mysql-8.0-community/docker/el/9/$basearch/'; echo 'gpgcheck=1'; echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql'; echo 'module_hotfixes=true'; } | tee /etc/yum.repos.d/mysql-community-minimal.repo # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; microdnf install -y "mysql-community-server-minimal-$MYSQL_VERSION"; microdnf clean all; grep -F 'socket=/var/lib/mysql/mysql.sock' /etc/my.cnf; sed -i 's!^socket=.*!socket=/var/run/mysqld/mysqld.sock!' /etc/my.cnf; grep -F 'socket=/var/run/mysqld/mysqld.sock' /etc/my.cnf; { echo '[client]'; echo 'socket=/var/run/mysqld/mysqld.sock'; } >> /etc/my.cnf; ! grep -F '!includedir' /etc/my.cnf; { echo; echo '!includedir /etc/mysql/conf.d/'; } >> /etc/my.cnf; mkdir -p /etc/mysql/conf.d; mkdir -p /var/lib/mysql /var/run/mysqld; chown mysql:mysql /var/lib/mysql /var/run/mysqld; chmod 1777 /var/lib/mysql /var/run/mysqld; mkdir /docker-entrypoint-initdb.d; mysqld --version; mysql --version # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eu; { echo '[mysql-tools-community]'; echo 'name=MySQL Tools Community'; echo 'baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/9/$basearch/'; echo 'enabled=1'; echo 'gpgcheck=1'; echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql'; echo 'module_hotfixes=true'; } | tee /etc/yum.repos.d/mysql-community-tools.repo # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_SHELL_VERSION=8.0.41-1.el9
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; microdnf install -y "mysql-shell-$MYSQL_SHELL_VERSION"; microdnf clean all; mysqlsh --version # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/mysql]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)EXPOSE map[3306/tcp:{} 33060/tcp:{}]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)CMD ["mysqld"]
2025-01-21 17:15:14 UTC
217 MB
1.17
MYSQL_MAJOR8.0
MYSQL_SHELL_VERSION8.0.41-1.el9
MYSQL_VERSION8.0.41-1.el9
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:f7fa64c7935f6bb5df09447a656c51d0f8f2a9f6c57838b88508dce34d5ec36a - 20.95% (45.5 MB)
[#001] sha256:81ebfd74dcb5b7f093b013a8111d1903f13c79ed5c92ad2c956cf0e32e97e75f - 0.0% (883 Bytes)
[#002] sha256:d08c5512fe2f397e73fe08b22d175b1f9302bde2d289dbc819bef7dc74f5a9cd - 0.4% (892 KB)
[#003] sha256:0fe89fd72816f51b76b2e7f6d53bbf3459ebed39c6964c869c28aebf4e00d71c - 2.86% (6.2 MB)
[#004] sha256:fc3cf76a534ab5e054d760607b236a2cf856dcd864c7b43d29cc180c11944573 - 0.0% (2.55 KB)
[#005] sha256:8c24aa3b123bacac36dcf8f14a60708d4ec5f744c830e8981999c3fab8117a5f - 0.0% (333 Bytes)
[#006] sha256:273d19dcb787b4972e851c07c946866022ceea18cdfa3fb21dd7567b15d1c8c8 - 21.32% (46.3 MB)
[#007] sha256:144b85b3162cf9ed9aab6edc569c613b54d67f76318d0c7cf4ca57fc6dfa8f8e - 0.0% (315 Bytes)
[#008] sha256:f3762fc5ce9433533c1556aaf535df15e892bcfcced25166efc58e7becab5672 - 54.47% (118 MB)
[#009] sha256:68b8456bdb9b8d33569c90be330b20d5b305f38625a7127c562c7596547170c9 - 0.0% (5.21 KB)
[#010] sha256:1baf69f72eed065662764cad825444de6c2df1c5d1d849d7641daf10687cfc3c - 0.0% (121 Bytes)
ADD oraclelinux-9-slim-arm64v8-rootfs.tar.xz / # buildkit
2024-11-21 19:43:03 UTC (buildkit.dockerfile.v0)CMD ["/bin/bash"]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; groupadd --system --gid 999 mysql; useradd --system --uid 999 --gid 999 --home-dir /var/lib/mysql --no-create-home mysql # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; arch="$(uname -m)"; case "$arch" in aarch64) gosuArch='arm64' ;; x86_64) gosuArch='amd64' ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; curl -fL -o /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch.asc"; curl -fL -o /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$gosuArch"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; microdnf install -y bzip2 gzip openssl xz zstd findutils ; microdnf clean all # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; key='BCA4 3417 C3B4 85DD 128E C6D4 B7B3 B788 A8D3 785C'; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql; rm -rf "$GNUPGHOME" # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_MAJOR=8.0
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_VERSION=8.0.41-1.el9
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eu; { echo '[mysql8.0-server-minimal]'; echo 'name=MySQL 8.0 Server Minimal'; echo 'enabled=1'; echo 'baseurl=https://repo.mysql.com/yum/mysql-8.0-community/docker/el/9/$basearch/'; echo 'gpgcheck=1'; echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql'; echo 'module_hotfixes=true'; } | tee /etc/yum.repos.d/mysql-community-minimal.repo # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; microdnf install -y "mysql-community-server-minimal-$MYSQL_VERSION"; microdnf clean all; grep -F 'socket=/var/lib/mysql/mysql.sock' /etc/my.cnf; sed -i 's!^socket=.*!socket=/var/run/mysqld/mysqld.sock!' /etc/my.cnf; grep -F 'socket=/var/run/mysqld/mysqld.sock' /etc/my.cnf; { echo '[client]'; echo 'socket=/var/run/mysqld/mysqld.sock'; } >> /etc/my.cnf; ! grep -F '!includedir' /etc/my.cnf; { echo; echo '!includedir /etc/mysql/conf.d/'; } >> /etc/my.cnf; mkdir -p /etc/mysql/conf.d; mkdir -p /var/lib/mysql /var/run/mysqld; chown mysql:mysql /var/lib/mysql /var/run/mysqld; chmod 1777 /var/lib/mysql /var/run/mysqld; mkdir /docker-entrypoint-initdb.d; mysqld --version; mysql --version # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eu; { echo '[mysql-tools-community]'; echo 'name=MySQL Tools Community'; echo 'baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/9/$basearch/'; echo 'enabled=1'; echo 'gpgcheck=1'; echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql'; echo 'module_hotfixes=true'; } | tee /etc/yum.repos.d/mysql-community-tools.repo # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENV MYSQL_SHELL_VERSION=8.0.41-1.el9
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; microdnf install -y "mysql-shell-$MYSQL_SHELL_VERSION"; microdnf clean all; mysqlsh --version # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/mysql]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat # buildkit
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)EXPOSE map[3306/tcp:{} 33060/tcp:{}]
2025-01-21 17:15:14 UTC (buildkit.dockerfile.v0)CMD ["mysqld"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.