| LABEL maintainer="Red Hat, Inc." |
| LABEL vendor="Red Hat, Inc." |
| LABEL url="https://catalog.redhat.com/en/search?searchType=containers" |
| LABEL com.redhat.component="ubi9-minimal-container" name="ubi9/ubi-minimal" version="9.8" cpe="cpe:/a:redhat:enterprise_linux:9::appstream" distribution-scope="public" |
| LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" |
| LABEL summary="Provides the latest release of the minimal Red Hat Universal Base Image 9." |
| LABEL description="The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly." |
| LABEL io.k8s.description="The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly." |
| LABEL io.k8s.display-name="Red Hat Universal Base Image 9 Minimal" |
| LABEL io.openshift.expose-services="" |
| LABEL io.openshift.tags="minimal rhel9" |
| ENV container oci |
| COPY dir:14bfe291e51cfd3471e9b85d5e9d491fe06b3ecf4d74ad9ed060eeed665412ea in / |
| COPY file:1376702515d596f414e3aa494e0daa6d408a6d2475c4aeca96bf9392f5287f69 in /etc/yum.repos.d/. |
| CMD ["/bin/bash"] |
| COPY dir:275fafe01e910923b4cfa2c2282c3eb2ea9158af5a6dc42bc6197cbdbe3c4f3f in /usr/share/buildinfo/ |
| COPY dir:275fafe01e910923b4cfa2c2282c3eb2ea9158af5a6dc42bc6197cbdbe3c4f3f in /root/buildinfo/ |
| LABEL "org.opencontainers.image.created"="2026-09-22T10:53:29Z" "org.opencontainers.image.revision"="c4ab05a33fa224d36e7e3e9795cadaf3e8d13746" "build-date"="2026-09-22T10:53:29Z" "architecture"="x86_64" "vcs-ref"="c4ab05a33fa224d36e7e3e9795cadaf3e8d13746" "vcs-type"="git" "release"="1790074235"org.opencontainers.image.created=2026-09-22T10:53:29Z,org.opencontainers.image.revision=c4ab05a33fa224d36e7e3e9795cadaf3e8d13746 |
| LABEL name=Percona Server for MongoDB release=8.0 vendor=Percona summary=Percona Server for MongoDB is our free and open-source drop-in replacement for MongoDB Community Edition description=Percona Server for MongoDB is our free and open-source drop-in replacement for MongoDB Community Edition. It offers all the features and benefits of MongoDB Community Edition, plus additional enterprise-grade functionality. maintainer=Percona Development <info@percona.com> |
| LABEL org.opencontainers.image.authors=info@percona.com |
| RUN /bin/sh -c set -ex; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 4D1BB29D63D98E422B2113B19334A25F8507EFA5 99DB70FAE1D7CE227FB6488205B555B38483C65D 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1; gpg --batch --export --armor 4D1BB29D63D98E422B2113B19334A25F8507EFA5 > ${GNUPGHOME}/PERCONA-PACKAGING-KEY; gpg --batch --export --armor 99DB70FAE1D7CE227FB6488205B555B38483C65D > ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; gpg --batch --export --armor 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1 > ${GNUPGHOME}/RPM-GPG-KEY-EPEL-9; rpmkeys --import ${GNUPGHOME}/PERCONA-PACKAGING-KEY ${GNUPGHOME}/RPM-GPG-KEY-centosofficial ${GNUPGHOME}/RPM-GPG-KEY-EPEL-9; curl -Lf -o /tmp/percona-release.rpm https://repo.percona.com/yum/percona-release-latest.noarch.rpm; rpmkeys --checksig /tmp/percona-release.rpm; microdnf install -y findutils; rpm -i /tmp/percona-release.rpm; rm -rf "$GNUPGHOME" /tmp/percona-release.rpm; rpm --import /etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY # buildkit |
| ENV PSMDB_VERSION=8.0.32-14 |
| ENV OS_VER=el9 |
| ENV FULL_PERCONA_VERSION=8.0.32-14.el9 |
| ENV K8S_TOOLS_VERSION=0.5.0 |
| ENV PSMDB_REPO=release |
| ENV IMAGE_TYPE=release |
| ENV GLIBC_TUNABLES=glibc.pthread.rseq=0 |
| ARG PERCONA_TELEMETRY_DISABLE=1 |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c set -ex; percona-release enable psmdb-80 ${PSMDB_REPO}; percona-release enable telemetry ${PSMDB_REPO}; microdnf -y update libgcrypt; microdnf -y update libcap; microdnf -y install percona-server-mongodb-mongos-${FULL_PERCONA_VERSION} percona-server-mongodb-tools-${FULL_PERCONA_VERSION} percona-mongodb-mongosh numactl numactl-libs procps-ng jq tar oniguruma cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs policycoreutils; curl -Lf -o /tmp/Percona-Server-MongoDB-server.rpm http://repo.percona.com/psmdb-80/yum/${PSMDB_REPO}/9/RPMS/x86_64/percona-server-mongodb-server-${FULL_PERCONA_VERSION}.x86_64.rpm; rpmkeys --checksig /tmp/Percona-Server-MongoDB-server.rpm; rpm -iv /tmp/Percona-Server-MongoDB-server.rpm --nodeps; rm -rf /tmp/Percona-Server-MongoDB-server.rpm; microdnf clean all; rm -rf /var/cache/dnf /var/cache/yum /data/db && mkdir -p /data/db; chown -R 1001:0 /data/db # buildkit |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c useradd -u 1001 -r -g 0 -m -s /sbin/nologin -c "Default Application User" mongodb; chmod g+rwx /var/log/mongo; chown :0 /var/log/mongo # buildkit |
| COPY LICENSE /licenses/LICENSE.Dockerfile # buildkit |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c cp /usr/share/doc/percona-server-mongodb-server/LICENSE-Community.txt /licenses/LICENSE.Percona-Server-for-MongoDB # buildkit |
| ENV GOSU_VERSION=1.11 |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c set -eux; curl -Lf -o /usr/bin/gosu https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64; curl -Lf -o /usr/bin/gosu.asc https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64.asc; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/bin/gosu.asc /usr/bin/gosu; rm -rf "$GNUPGHOME" /usr/bin/gosu.asc; chmod +x /usr/bin/gosu; curl -f -o /licenses/LICENSE.gosu https://raw.githubusercontent.com/tianon/gosu/${GOSU_VERSION}/LICENSE # buildkit |
| VOLUME [/data/db] |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c set -ex; curl -fSL https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js -o /js-yaml.js; echo "45dc3dd03dc07a06705a2c2989b8c7f709013f04bd5386e3279d4e447f07ebd7 /js-yaml.js" | sha256sum -c - # buildkit |
| ADD https://raw.githubusercontent.com/Percona-Lab/telemetry-agent/phase-0/call-home.sh /call-home.sh # buildkit |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c chmod a+rx call-home.sh # buildkit |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c mkdir -p /usr/local/percona # buildkit |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c chown 1001:1001 /usr/local/percona # buildkit |
| ENV CALL_HOME_OPTIONAL_PARAMS= -s el9 |
| COPY ps-entry.sh /entrypoint.sh # buildkit |
| COPY telemetry-agent-supervisor.sh /usr/bin/ # buildkit |
| RUN |1 PERCONA_TELEMETRY_DISABLE=1 /bin/sh -c set -ex; chown mongodb /usr/bin/telemetry-agent-supervisor.sh; chown mongodb /usr/bin/percona-telemetry-agent; chown mongodb /usr/local/percona/telemetry/history; chown mongodb:percona-telemetry /usr/local/percona/telemetry/psmdb; chown mongodb:percona-telemetry /usr/local/percona/telemetry/psmdbs; chmod ug+rwx /usr/bin/telemetry-agent-supervisor.sh; chmod -R go+w /var/log/percona # buildkit |
| ENV PERCONA_TELEMETRY_CHECK_INTERVAL=86400 |
| ENV PERCONA_TELEMETRY_HISTORY_KEEP_INTERVAL=604800 |
| ENV PERCONA_TELEMETRY_RESEND_INTERVAL=60 |
| ENV PERCONA_TELEMETRY_URL=https://check.percona.com/v1/telemetry/GenericReport |
| ENTRYPOINT ["/entrypoint.sh"] |
| EXPOSE [27017/tcp] |
| USER 1001 |
| CMD ["mongod"] |