vitess/vttablet (0.0.1-v20.0.3)
Published 2024-11-28 13:48:04 +03:00 by i.fedoseev
Installation
docker pull git.bit5.ru/backend/vitess/vttablet:0.0.1-v20.0.3
sha256:8dab521c96a451da8ef0abb6df7af28256f2aa974912ba8f88bc19b1c83e07a2
Image Layers
ADD file:09a779e3744503ad74fe46c0abd0efdd183badfeac67506e804257f79c4fc9ee in / |
CMD ["/bin/bash"] |
LABEL org.opencontainers.image.authors=info@percona.com |
ENV PS_VERSION=8.0.32-24.1 |
ENV MYSQL_SHELL_VERSION=8.0.32-1 |
ENV OS_VER=el9 |
ENV FULL_PERCONA_VERSION=8.0.32-24.1.el9 |
ENV FULL_MYSQL_SHELL_VERSION=8.0.32-1.el9 |
ENV PS_REPO=testing |
RUN /bin/sh -c set -ex; groupdel input; userdel systemd-coredump; groupadd -g 1001 mysql; useradd -u 1001 -r -g 1001 -s /sbin/nologin -m -c "Default Application User" mysql # buildkit |
RUN /bin/sh -c set -ex; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A 99DB70FAE1D7CE227FB6488205B555B38483C65D; gpg --batch --export --armor 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A > ${GNUPGHOME}/RPM-GPG-KEY-Percona; gpg --batch --export --armor 99DB70FAE1D7CE227FB6488205B555B38483C65D > ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; rpmkeys --import ${GNUPGHOME}/RPM-GPG-KEY-Percona ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; curl -Lf -o /tmp/percona-release.rpm https://repo.percona.com/yum/percona-release-latest.noarch.rpm; rpmkeys --checksig /tmp/percona-release.rpm; rpm -i /tmp/percona-release.rpm; rm -rf "$GNUPGHOME" /tmp/percona-release.rpm; rpm --import /etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY; percona-release disable all; percona-release enable ps-80 ${PS_REPO}; percona-release enable mysql-shell ${PS_REPO} # buildkit |
RUN /bin/sh -c set -ex; dnf -y update; dnf -y install crypto-policies-scripts; dnf -y install epel-release; rpm -e --nodeps tzdata; fips-mode-setup --enable; dnf -y install hostname tzdata jemalloc which cracklib-dicts tar policycoreutils; dnf -y install percona-server-server-${FULL_PERCONA_VERSION} percona-server-devel-${FULL_PERCONA_VERSION} percona-server-rocksdb-${FULL_PERCONA_VERSION} percona-icu-data-files-${FULL_PERCONA_VERSION} percona-mysql-shell-${FULL_MYSQL_SHELL_VERSION}; dnf clean all; rm -rf /var/cache/dnf /var/cache/yum /var/lib/mysql # buildkit |
RUN /bin/sh -c set -ex; /usr/bin/install -m 0775 -o mysql -g root -d /var/lib/mysql /var/run/mysqld /docker-entrypoint-initdb.d; find /etc/my.cnf /etc/my.cnf.d -name '*.cnf' -print0 | xargs -0 grep -lZE '^(bind-address|log|user)' | xargs -rt -0 sed -Ei 's/^(bind-address|log|user)/#&/'; echo '!includedir /etc/my.cnf.d' >> /etc/my.cnf; printf '[mysqld]\nskip-host-cache\nskip-name-resolve\n' > /etc/my.cnf.d/docker.cnf; /usr/bin/install -m 0664 -o mysql -g root /dev/null /etc/sysconfig/mysql; echo "LD_PRELOAD=/usr/lib64/libjemalloc.so.1" >> /etc/sysconfig/mysql; echo "THP_SETTING=never" >> /etc/sysconfig/mysql; chown -R mysql:root /etc/my.cnf /etc/my.cnf.d; chmod -R ug+rwX /etc/my.cnf /etc/my.cnf.d # buildkit |
VOLUME [/var/lib/mysql /var/log/mysql] |
COPY ps-entry.sh /docker-entrypoint.sh # buildkit |
ENTRYPOINT ["/docker-entrypoint.sh"] |
USER mysql |
EXPOSE map[3306/tcp:{} 33060/tcp:{}] |
CMD ["mysqld"] |
ARG VT_VERSION=20.0.3 |
ARG MYSQL_VERSION=8.0.32 |
ENV VTROOT=/vt |
ENV VTDATAROOT=/vt/data |
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/vt/bin |
USER root |
RUN |2 VT_VERSION=20.0.3 MYSQL_VERSION=8.0.32 /bin/sh -c useradd -MU vitess && mkdir -p ${VTROOT} ${VTDATAROOT} && chown -R vitess:vitess ${VTROOT} ${VTDATAROOT} # buildkit |
COPY --chown=vitess:vitess /vt/bin/mysqlctl /vt/bin/mysqlctld /vt/bin/vttablet /vt/bin/vtctldclient /vt/bin/ # buildkit |
COPY --chown=vitess:vitess ./start_tablet.sh /vt/scripts/ # buildkit |
USER vitess |
CMD ["/bin/sh" "-c" "${VTROOT}/scripts/start_tablet.sh"] |
LABEL description=Contains mysqlctl, mysqlctld, vttablet, vtctldclient binaries mysql.version=8.0.32 vitess.version=20.0.3 |
Labels
Key | Value |
---|---|
description | Contains mysqlctl, mysqlctld, vttablet, vtctldclient binaries |
mysql.version | 8.0.32 |
org.opencontainers.image.authors | info@percona.com |
vitess.version | 20.0.3 |
Details
2024-11-28 13:48:04 +03:00
Versions (5)
View all
Container
0
OCI / Docker
linux/amd64
info@percona.com
509 MiB
0.0.1-v20.0.3
2024-11-28
0.0.1-v19.0.7
2024-11-28
18.0.5-0.0.1
2024-07-14
19.0.4-0.0.1
2024-07-14
17.0.2-0.0.2
2024-01-11