From b9671632ea5aa0bca7602fcf3d8abc15b4c64a2b Mon Sep 17 00:00:00 2001 From: mms-build-account Date: Mon, 11 Nov 2024 05:56:47 -0500 Subject: [PATCH] Kubernetes Enterprise Operator Release 1.29.0 (#297) * Updated * Updated * fix version argument * fix version argument --------- Co-authored-by: Yavor Georgiev --- .../107.0.1.8507-1/ubi/Dockerfile | 2 +- .../107.0.1.8507-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.10.8627-1/ubi/Dockerfile | 2 +- .../107.0.10.8627-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.11.8645-1/ubi/Dockerfile | 2 +- .../107.0.11.8645-1_1.27.0/ubi/Dockerfile | 19 ++- .../107.0.11.8645-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.2.8531-1/ubi/Dockerfile | 2 +- .../107.0.2.8531-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.3.8550-1/ubi/Dockerfile | 2 +- .../107.0.3.8550-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.4.8567-1/ubi/Dockerfile | 2 +- .../107.0.4.8567-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.6.8587-1/ubi/Dockerfile | 2 +- .../107.0.6.8587-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.7.8596-1/ubi/Dockerfile | 2 +- .../107.0.7.8596-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.8.8615-1/ubi/Dockerfile | 2 +- .../107.0.8.8615-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../107.0.9.8621-1/ubi/Dockerfile | 2 +- .../107.0.9.8621-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../108.0.0.8694-1/ubi/Dockerfile | 2 +- .../108.0.0.8694-1_1.27.0/ubi/Dockerfile | 19 ++- .../108.0.0.8694-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../108.0.1.8718-1/ubi/Dockerfile | 60 +++++++ .../108.0.1.8718-1_1.27.0/ubi/Dockerfile | 64 +++++++ .../108.0.1.8718-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../12.0.29.7785-1/ubi/Dockerfile | 2 +- .../12.0.29.7785-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../12.0.30.7791-1/ubi/Dockerfile | 2 +- .../12.0.30.7791-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../12.0.31.7825-1/ubi/Dockerfile | 2 +- .../12.0.31.7825-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../12.0.32.7857-1/ubi/Dockerfile | 2 +- .../12.0.32.7857-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../12.0.33.7866-1/ubi/Dockerfile | 2 +- .../12.0.33.7866-1_1.27.0/ubi/Dockerfile | 19 ++- .../12.0.33.7866-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../13.25.0.9175-1/ubi/Dockerfile | 60 +++++++ .../13.25.0.9175-1_1.27.0/ubi/Dockerfile | 64 +++++++ .../13.25.0.9175-1_1.28.0/ubi/Dockerfile | 64 +++++++ .../1.29.0/ubi/Dockerfile | 87 ++++++++++ .../1.29.0/ubi/Dockerfile | 35 ++++ .../1.29.0/ubi/Dockerfile | 34 ++++ .../1.29.0/ubi/Dockerfile | 26 +++ .../1.29.0/ubi/Dockerfile | 39 +++++ .../8.0.1/ubi/Dockerfile | 84 ++++++++++ mongodb-enterprise-multi-cluster.yaml | 10 +- mongodb-enterprise-openshift.yaml | 158 ++++++++---------- mongodb-enterprise.yaml | 10 +- .../ops-manager/ops-manager-remote-mode.yaml | 12 +- support/mdb_operator_diagnostic_data.sh | 5 +- 52 files changed, 1852 insertions(+), 137 deletions(-) create mode 100644 dockerfiles/mongodb-agent/107.0.1.8507-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.10.8627-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.11.8645-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.2.8531-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.3.8550-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.4.8567-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.6.8587-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.7.8596-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.8.8615-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.9.8621-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.0.8694-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.1.8718-1/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.1.8718-1_1.27.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.1.8718-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.29.7785-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.30.7791-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.31.7825-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.32.7857-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.33.7866-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/13.25.0.9175-1/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/13.25.0.9175-1_1.27.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/13.25.0.9175-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-database/1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-init-appdb/1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-init-database/1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-init-ops-manager/1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-operator/1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-ops-manager/8.0.1/ubi/Dockerfile diff --git a/dockerfiles/mongodb-agent/107.0.1.8507-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.1.8507-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.1.8507-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.1.8507-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.1.8507-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.1.8507-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..fce0af3 --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.1.8507-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 diff --git a/dockerfiles/mongodb-agent/107.0.10.8627-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.10.8627-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.10.8627-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.10.8627-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.10.8627-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.10.8627-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..fce0af3 --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.10.8627-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 diff --git a/dockerfiles/mongodb-agent/107.0.11.8645-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.11.8645-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.11.8645-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.11.8645-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.11.8645-1_1.27.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.27.0/ubi/Dockerfile index c89002a..a76994e 100644 --- a/dockerfiles/mongodb-agent/107.0.11.8645-1_1.27.0/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.27.0/ubi/Dockerfile @@ -1,12 +1,12 @@ ARG imagebase FROM ${imagebase} as base -FROM registry.access.redhat.com/ubi8/ubi-minimal +FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ @@ -18,17 +18,24 @@ COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh -COPY --from=base /data/LICENSE /LICENSE +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper # Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ -RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ - cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs # Dependencies for the Agent RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ net-snmp \ net-snmp-agent-libs -RUN microdnf install -y --disableplugin=subscription-manager curl \ +RUN microdnf install -y --disableplugin=subscription-manager \ hostname tar gzip procps jq \ && microdnf upgrade -y \ && rm -rf /var/lib/apt/lists/* diff --git a/dockerfiles/mongodb-agent/107.0.11.8645-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.2.8531-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.2.8531-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.2.8531-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.2.8531-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.2.8531-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.2.8531-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.2.8531-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.3.8550-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.3.8550-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.3.8550-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.3.8550-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.3.8550-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.3.8550-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.3.8550-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.4.8567-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.4.8567-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.4.8567-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.4.8567-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.4.8567-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.4.8567-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.4.8567-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.6.8587-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.6.8587-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.6.8587-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.6.8587-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.6.8587-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.6.8587-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.6.8587-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.7.8596-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.7.8596-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.7.8596-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.7.8596-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.7.8596-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.7.8596-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.7.8596-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.8.8615-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.8.8615-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.8.8615-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.8.8615-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.8.8615-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.8.8615-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.8.8615-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.9.8621-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.9.8621-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/107.0.9.8621-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/107.0.9.8621-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/107.0.9.8621-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.9.8621-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.9.8621-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/108.0.0.8694-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.0.8694-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/108.0.0.8694-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/108.0.0.8694-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/108.0.0.8694-1_1.27.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.27.0/ubi/Dockerfile index c89002a..a76994e 100644 --- a/dockerfiles/mongodb-agent/108.0.0.8694-1_1.27.0/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.27.0/ubi/Dockerfile @@ -1,12 +1,12 @@ ARG imagebase FROM ${imagebase} as base -FROM registry.access.redhat.com/ubi8/ubi-minimal +FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ @@ -18,17 +18,24 @@ COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh -COPY --from=base /data/LICENSE /LICENSE +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper # Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ -RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ - cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs # Dependencies for the Agent RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ net-snmp \ net-snmp-agent-libs -RUN microdnf install -y --disableplugin=subscription-manager curl \ +RUN microdnf install -y --disableplugin=subscription-manager \ hostname tar gzip procps jq \ && microdnf upgrade -y \ && rm -rf /var/lib/apt/lists/* diff --git a/dockerfiles/mongodb-agent/108.0.0.8694-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/108.0.1.8718-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.1.8718-1/ubi/Dockerfile new file mode 100644 index 0000000..b9f3f0b --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.1.8718-1/ubi/Dockerfile @@ -0,0 +1,60 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p /agent \ + && mkdir -p /var/lib/mongodb-mms-automation \ + && mkdir -p /var/log/mongodb-mms-automation/ \ + && chmod -R +wr /var/log/mongodb-mms-automation/ \ + # ensure that the agent user can write the logs in OpenShift + && touch /var/log/mongodb-mms-automation/readiness.log \ + && chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log + + +COPY --from=base /data/mongodb-agent.tar.gz /agent +COPY --from=base /data/mongodb-tools.tgz /agent +COPY --from=base /data/LICENSE /licenses/LICENSE + +RUN tar xfz /agent/mongodb-agent.tar.gz \ + && mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \ + && chmod +x /agent/mongodb-agent \ + && mkdir -p /var/lib/automation/config \ + && chmod -R +r /var/lib/automation/config \ + && rm /agent/mongodb-agent.tar.gz \ + && rm -r mongodb-mms-automation-agent-* + +RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz + +USER 2000 +CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"] \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/108.0.1.8718-1_1.27.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.27.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.27.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/108.0.1.8718-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/12.0.29.7785-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.29.7785-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/12.0.29.7785-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/12.0.29.7785-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/12.0.29.7785-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.29.7785-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.29.7785-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/12.0.30.7791-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.30.7791-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/12.0.30.7791-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/12.0.30.7791-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/12.0.30.7791-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.30.7791-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.30.7791-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/12.0.31.7825-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.31.7825-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/12.0.31.7825-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/12.0.31.7825-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/12.0.31.7825-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.31.7825-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.31.7825-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/12.0.32.7857-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.32.7857-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/12.0.32.7857-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/12.0.32.7857-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/12.0.32.7857-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.32.7857-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..7b71d3b --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.32.7857-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${agent_version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/12.0.33.7866-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.33.7866-1/ubi/Dockerfile index 9a1459f..b9f3f0b 100644 --- a/dockerfiles/mongodb-agent/12.0.33.7866-1/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/12.0.33.7866-1/ubi/Dockerfile @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ diff --git a/dockerfiles/mongodb-agent/12.0.33.7866-1_1.27.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.27.0/ubi/Dockerfile index c89002a..a76994e 100644 --- a/dockerfiles/mongodb-agent/12.0.33.7866-1_1.27.0/ubi/Dockerfile +++ b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.27.0/ubi/Dockerfile @@ -1,12 +1,12 @@ ARG imagebase FROM ${imagebase} as base -FROM registry.access.redhat.com/ubi8/ubi-minimal +FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${agent_version}" \ + version="${version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ @@ -18,17 +18,24 @@ COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh -COPY --from=base /data/LICENSE /LICENSE +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper # Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ -RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ - cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl openldap openssl xz-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs # Dependencies for the Agent RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ net-snmp \ net-snmp-agent-libs -RUN microdnf install -y --disableplugin=subscription-manager curl \ +RUN microdnf install -y --disableplugin=subscription-manager \ hostname tar gzip procps jq \ && microdnf upgrade -y \ && rm -rf /var/lib/apt/lists/* diff --git a/dockerfiles/mongodb-agent/12.0.33.7866-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/13.25.0.9175-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/13.25.0.9175-1/ubi/Dockerfile new file mode 100644 index 0000000..b9f3f0b --- /dev/null +++ b/dockerfiles/mongodb-agent/13.25.0.9175-1/ubi/Dockerfile @@ -0,0 +1,60 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p /agent \ + && mkdir -p /var/lib/mongodb-mms-automation \ + && mkdir -p /var/log/mongodb-mms-automation/ \ + && chmod -R +wr /var/log/mongodb-mms-automation/ \ + # ensure that the agent user can write the logs in OpenShift + && touch /var/log/mongodb-mms-automation/readiness.log \ + && chmod ugo+rw /var/log/mongodb-mms-automation/readiness.log + + +COPY --from=base /data/mongodb-agent.tar.gz /agent +COPY --from=base /data/mongodb-tools.tgz /agent +COPY --from=base /data/LICENSE /licenses/LICENSE + +RUN tar xfz /agent/mongodb-agent.tar.gz \ + && mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent \ + && chmod +x /agent/mongodb-agent \ + && mkdir -p /var/lib/automation/config \ + && chmod -R +r /var/lib/automation/config \ + && rm /agent/mongodb-agent.tar.gz \ + && rm -r mongodb-mms-automation-agent-* + +RUN tar xfz /agent/mongodb-tools.tgz --directory /var/lib/mongodb-mms-automation/ && rm /agent/mongodb-tools.tgz + +USER 2000 +CMD ["/agent/mongodb-agent", "-cluster=/var/lib/automation/config/automation-config.json"] \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/13.25.0.9175-1_1.27.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/13.25.0.9175-1_1.27.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/13.25.0.9175-1_1.27.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/13.25.0.9175-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/13.25.0.9175-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/13.25.0.9175-1_1.28.0/ubi/Dockerfile @@ -0,0 +1,64 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +ARG version + +LABEL name="MongoDB Agent" \ + version="${version}" \ + summary="MongoDB Agent" \ + description="MongoDB Agent" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/probe.sh /opt/scripts/probe.sh +COPY --from=base /data/readinessprobe /opt/scripts/readinessprobe +COPY --from=base /data/version-upgrade-hook /opt/scripts/version-upgrade-hook +COPY --from=base /data/agent-launcher-lib.sh /opt/scripts/agent-launcher-lib.sh +COPY --from=base /data/agent-launcher.sh /opt/scripts/agent-launcher.sh +COPY --from=base /data/LICENSE /licenses/LICENSE + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs openldap openssl xz-libs +# Dependencies for the Agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 \ + net-snmp \ + net-snmp-agent-libs +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname tar gzip procps jq \ + && microdnf upgrade -y \ + && rm -rf /var/lib/apt/lists/* + + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz +COPY --from=base /data/mongodb_agent_ubi.tgz /agent/mongodb_agent.tgz + +RUN tar xfz /tools/mongodb_tools.tgz +RUN mv mongodb-database-tools-*/bin/* /tools +RUN chmod +x /tools/* +RUN rm /tools/mongodb_tools.tgz +RUN rm -rf /mongodb-database-tools-* + +RUN tar xfz /agent/mongodb_agent.tgz +RUN mv mongodb-mms-automation-agent-*/mongodb-mms-automation-agent /agent/mongodb-agent +RUN chmod +x /agent/mongodb-agent +RUN rm /agent/mongodb_agent.tgz +RUN rm -rf mongodb-mms-automation-agent-* + +RUN mkdir -p /var/lib/automation/config +RUN chmod -R +r /var/lib/automation/config + +USER 2000 + +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-enterprise-database/1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-database/1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..eb2decc --- /dev/null +++ b/dockerfiles/mongodb-enterprise-database/1.29.0/ubi/Dockerfile @@ -0,0 +1,87 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi8/ubi-minimal + + + +LABEL name="MongoDB Enterprise Database" \ + version="1.29.0" \ + summary="MongoDB Enterprise Database Image" \ + description="MongoDB Enterprise Database Image" \ + vendor="MongoDB" \ + release="1" \ + maintainer="support@mongodb.com" + + + + + +ENV MMS_HOME /mongodb-automation +ENV MMS_LOG_DIR /var/log/mongodb-mms-automation + + + +RUN microdnf update -y && rm -rf /var/cache/yum + +# these are the packages needed for the agent +RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper +RUN microdnf install -y --disableplugin=subscription-manager \ + hostname \ + procps + + +# these are the packages needed for MongoDB +# (https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/ "RHEL/CentOS 8" tab) +RUN microdnf install -y --disableplugin=subscription-manager \ + cyrus-sasl \ + cyrus-sasl-gssapi \ + cyrus-sasl-plain \ + krb5-libs \ + libcurl \ + lm_sensors-libs \ + net-snmp \ + net-snmp-agent-libs \ + openldap \ + openssl \ + jq \ + tar \ + xz-libs \ + findutils + + + +RUN ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2 + + +# Set the required perms +RUN mkdir -p "${MMS_LOG_DIR}" \ + && chmod 0775 "${MMS_LOG_DIR}" \ + && mkdir -p /var/lib/mongodb-mms-automation \ + && chmod 0775 /var/lib/mongodb-mms-automation \ + && mkdir -p /data \ + && chmod 0775 /data \ + && mkdir -p /journal \ + && chmod 0775 /journal \ + && mkdir -p "${MMS_HOME}" \ + && chmod -R 0775 "${MMS_HOME}" + + + + +# USER needs to be set for this image to pass RedHat verification. Some customers have these requirements as well +# It does not matter what number it is, as long as it is set to something. +# However, OpenShift will run the container as a random user, +# and the number in this configuration is not relevant. +USER 2000 + + +# The docker image doesn't have any scripts so by default does nothing +# The script will be copied in runtime from init containers and the operator is expected +# to override the COMMAND +ENTRYPOINT ["sleep infinity"] + + +COPY --from=base /data/licenses/mongodb-enterprise-database /licenses/mongodb-enterprise-database + + diff --git a/dockerfiles/mongodb-enterprise-init-appdb/1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-init-appdb/1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..0495673 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-init-appdb/1.29.0/ubi/Dockerfile @@ -0,0 +1,35 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi8/ubi-minimal + +ARG version +LABEL name="MongoDB Enterprise Init AppDB" \ + version="mongodb-enterprise-init-appdb-${version}" \ + summary="MongoDB Enterprise AppDB Init Image" \ + description="Startup Scripts for MongoDB Enterprise Application Database for Ops Manager" \ + release="1" \ + vendor="MongoDB" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/readinessprobe /probes/readinessprobe +COPY --from=base /data/probe.sh /probes/probe.sh +COPY --from=base /data/scripts/ /scripts/ +COPY --from=base /data/licenses /licenses/ +COPY --from=base /data/version-upgrade-hook /probes/version-upgrade-hook + + +RUN microdnf -y update --nodocs \ + && microdnf -y install --nodocs tar gzip \ + && microdnf clean all + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz + + +RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \ + && rm /tools/mongodb_tools.tgz + +USER 2000 +ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ] + + diff --git a/dockerfiles/mongodb-enterprise-init-database/1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-init-database/1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..8fefdcc --- /dev/null +++ b/dockerfiles/mongodb-enterprise-init-database/1.29.0/ubi/Dockerfile @@ -0,0 +1,34 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi8/ubi-minimal + +ARG version +LABEL name="MongoDB Enterprise Init Database" \ + version="mongodb-enterprise-init-database-${version}" \ + summary="MongoDB Enterprise Database Init Image" \ + description="Startup Scripts for MongoDB Enterprise Database" \ + release="1" \ + vendor="MongoDB" \ + maintainer="support@mongodb.com" + +COPY --from=base /data/readinessprobe /probes/readinessprobe +COPY --from=base /data/probe.sh /probes/probe.sh +COPY --from=base /data/scripts/ /scripts/ +COPY --from=base /data/licenses /licenses/ + + +RUN microdnf -y update --nodocs \ + && microdnf -y install --nodocs tar gzip \ + && microdnf clean all + +COPY --from=base /data/mongodb_tools_ubi.tgz /tools/mongodb_tools.tgz + + +RUN tar xfz /tools/mongodb_tools.tgz --directory /tools \ + && rm /tools/mongodb_tools.tgz + +USER 2000 +ENTRYPOINT [ "/bin/cp", "-f", "-r", "/scripts/agent-launcher.sh", "/scripts/agent-launcher-lib.sh", "/probes/readinessprobe", "/probes/probe.sh", "/tools", "/opt/scripts/" ] + + diff --git a/dockerfiles/mongodb-enterprise-init-ops-manager/1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-init-ops-manager/1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..c6de7b4 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-init-ops-manager/1.29.0/ubi/Dockerfile @@ -0,0 +1,26 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +LABEL name="MongoDB Enterprise Ops Manager Init" \ + maintainer="support@mongodb.com" \ + vendor="MongoDB" \ + version="mongodb-enterprise-init-ops-manager-1.29.0" \ + release="1" \ + summary="MongoDB Enterprise Ops Manager Init Image" \ + description="Startup Scripts for MongoDB Enterprise Ops Manager" + + +COPY --from=base /data/scripts /scripts +COPY --from=base /data/licenses /licenses + + +RUN microdnf -y update --nodocs \ + && microdnf clean all + + +USER 2000 +ENTRYPOINT [ "/bin/cp", "-f", "/scripts/docker-entry-point.sh", "/scripts/backup-daemon-liveness-probe.sh", "/scripts/mmsconfiguration", "/scripts/backup-daemon-readiness-probe", "/opt/scripts/" ] + + diff --git a/dockerfiles/mongodb-enterprise-operator/1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-operator/1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..b218ee1 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-operator/1.29.0/ubi/Dockerfile @@ -0,0 +1,39 @@ +# +# Base Template Dockerfile for Operator Image. +# + +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + + +LABEL name="MongoDB Enterprise Operator" \ + maintainer="support@mongodb.com" \ + vendor="MongoDB" \ + version="1.29.0" \ + release="1" \ + summary="MongoDB Enterprise Operator Image" \ + description="MongoDB Enterprise Operator Image" + + +# Building an UBI-based image: https://red.ht/3n6b9y0 +RUN microdnf update \ + --disableplugin=subscription-manager \ + --disablerepo=* --enablerepo=ubi-9-appstream-rpms --enablerepo=ubi-9-baseos-rpms -y \ + && rm -rf /var/cache/yum + + + + +COPY --from=base /data/mongodb-enterprise-operator /usr/local/bin/mongodb-enterprise-operator +COPY --from=base /data/om_version_mapping.json /usr/local/om_version_mapping.json +COPY --from=base /data/licenses /licenses/ + +USER 2000 + + + +ENTRYPOINT exec /usr/local/bin/mongodb-enterprise-operator + + diff --git a/dockerfiles/mongodb-enterprise-ops-manager/8.0.1/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-ops-manager/8.0.1/ubi/Dockerfile new file mode 100644 index 0000000..293c2c1 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-ops-manager/8.0.1/ubi/Dockerfile @@ -0,0 +1,84 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + + +LABEL name="MongoDB Enterprise Ops Manager" \ + maintainer="support@mongodb.com" \ + vendor="MongoDB" \ + version="8.0.1" \ + release="1" \ + summary="MongoDB Enterprise Ops Manager Image" \ + description="MongoDB Enterprise Ops Manager" + + +ENV MMS_HOME /mongodb-ops-manager +ENV MMS_PROP_FILE ${MMS_HOME}/conf/conf-mms.properties +ENV MMS_CONF_FILE ${MMS_HOME}/conf/mms.conf +ENV MMS_LOG_DIR ${MMS_HOME}/logs +ENV MMS_TMP_DIR ${MMS_HOME}/tmp + +EXPOSE 8080 + +# OpsManager docker image needs to have the MongoDB dependencies because the +# backup daemon is running its database locally + + +# Replace libcurl-minimal and curl-minimal with the full versions +# https://bugzilla.redhat.com/show_bug.cgi?id=1994521 +RUN microdnf install -y libssh libpsl libbrotli \ + && microdnf download curl libcurl \ + && rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \ + && microdnf remove -y libcurl-minimal curl-minimal + +RUN microdnf install --disableplugin=subscription-manager -y \ + cyrus-sasl \ + cyrus-sasl-gssapi \ + cyrus-sasl-plain \ + krb5-libs \ + libpcap \ + lm_sensors-libs \ + net-snmp \ + net-snmp-agent-libs \ + openldap \ + openssl \ + tar \ + rpm-libs \ + net-tools \ + procps-ng \ + ncurses + + +COPY --from=base /data/licenses /licenses/ + +COPY --from=base /data/scripts /opt/scripts + + + +RUN curl --fail -L -o ops_manager.tar.gz https://downloads.mongodb.com/on-prem-mms/tar/mongodb-mms-8.0.1.500.20241030T1559Z.tar.gz \ + && tar -xzf ops_manager.tar.gz \ + && rm ops_manager.tar.gz \ + && mv mongodb-mms* "${MMS_HOME}" + + +# permissions +RUN chmod -R 0777 "${MMS_LOG_DIR}" \ + && chmod -R 0777 "${MMS_TMP_DIR}" \ + && chmod -R 0775 "${MMS_HOME}/conf" \ + && chmod -R 0775 "${MMS_HOME}/jdk" \ + && mkdir "${MMS_HOME}/mongodb-releases/" \ + && chmod -R 0775 "${MMS_HOME}/mongodb-releases" \ + && chmod -R 0777 "${MMS_CONF_FILE}" \ + && chmod -R 0777 "${MMS_PROP_FILE}" + +# The "${MMS_HOME}/conf" will be populated by the docker-entry-point.sh. +# For now we need to move into the templates directory. +RUN cp -r "${MMS_HOME}/conf" "${MMS_HOME}/conf-template" + +USER 2000 + +# operator to change the entrypoint to: /mongodb-ops-manager/bin/mongodb-mms start_mms (or a wrapper around this) +ENTRYPOINT [ "sleep infinity" ] + + diff --git a/mongodb-enterprise-multi-cluster.yaml b/mongodb-enterprise-multi-cluster.yaml index 7e9b620..2a618ab 100644 --- a/mongodb-enterprise-multi-cluster.yaml +++ b/mongodb-enterprise-multi-cluster.yaml @@ -227,7 +227,7 @@ spec: runAsUser: 2000 containers: - name: mongodb-enterprise-operator-multi-cluster - image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.28.0" + image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.29.0" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -269,21 +269,21 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-database-ubi - name: INIT_DATABASE_VERSION - value: 1.28.0 + value: 1.29.0 - name: DATABASE_VERSION - value: 1.28.0 + value: 1.29.0 # Ops Manager - name: OPS_MANAGER_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi - name: INIT_OPS_MANAGER_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi - name: INIT_OPS_MANAGER_VERSION - value: 1.28.0 + value: 1.29.0 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi - name: INIT_APPDB_VERSION - value: 1.28.0 + value: 1.29.0 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE diff --git a/mongodb-enterprise-openshift.yaml b/mongodb-enterprise-openshift.yaml index ee92d0d..8108df9 100644 --- a/mongodb-enterprise-openshift.yaml +++ b/mongodb-enterprise-openshift.yaml @@ -224,7 +224,7 @@ spec: serviceAccountName: mongodb-enterprise-operator containers: - name: mongodb-enterprise-operator - image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.28.0" + image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.29.0" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -264,21 +264,21 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-database-ubi - name: INIT_DATABASE_VERSION - value: 1.28.0 + value: 1.29.0 - name: DATABASE_VERSION - value: 1.28.0 + value: 1.29.0 # Ops Manager - name: OPS_MANAGER_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi - name: INIT_OPS_MANAGER_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi - name: INIT_OPS_MANAGER_VERSION - value: 1.28.0 + value: 1.29.0 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi - name: INIT_APPDB_VERSION - value: 1.28.0 + value: 1.29.0 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE @@ -295,192 +295,162 @@ spec: value: 'true' - name: MDB_MAX_CONCURRENT_RECONCILES value: "1" - - name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_28_0 - value: "quay.io/mongodb/mongodb-enterprise-database-ubi:1.28.0" - - name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_28_0 - value: "quay.io/mongodb/mongodb-enterprise-init-database-ubi:1.28.0" - - name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_28_0 - value: "quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi:1.28.0" - - name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_28_0 - value: "quay.io/mongodb/mongodb-enterprise-init-appdb-ubi:1.28.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_0_8465_1 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.0.8465-1" + - name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_29_0 + value: "quay.io/mongodb/mongodb-enterprise-database-ubi:1.29.0" + - name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_29_0 + value: "quay.io/mongodb/mongodb-enterprise-init-database-ubi:1.29.0" + - name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_29_0 + value: "quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi:1.29.0" + - name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_29_0 + value: "quay.io/mongodb/mongodb-enterprise-init-appdb-ubi:1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_0_8502_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.0.8502-1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_1_8507_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_1_8507_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_1_8507_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_1_8507_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_1_8507_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_1_8507_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_10_8627_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.10.8627-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_10_8627_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.10.8627-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_10_8627_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.10.8627-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_10_8627_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.10.8627-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_10_8627_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.10.8627-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_10_8627_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.10.8627-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_11_8645_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_2_8531_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.2.8531-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_2_8531_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.2.8531-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_2_8531_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.2.8531-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_2_8531_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.2.8531-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_2_8531_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.2.8531-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_2_8531_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.2.8531-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_3_8550_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.3.8550-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_3_8550_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.3.8550-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_3_8550_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.3.8550-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_3_8550_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.3.8550-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_3_8550_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.3.8550-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_3_8550_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.3.8550-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_4_8567_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.4.8567-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_4_8567_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.4.8567-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_4_8567_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.4.8567-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_4_8567_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.4.8567-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_4_8567_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.4.8567-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_4_8567_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.4.8567-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_6_8587_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.6.8587-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_6_8587_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.6.8587-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_6_8587_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.6.8587-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_6_8587_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.6.8587-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_6_8587_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.6.8587-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_6_8587_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.6.8587-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_7_8596_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_7_8596_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_7_8596_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_7_8596_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_7_8596_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_7_8596_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_8_8615_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.8.8615-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_8_8615_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.8.8615-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_8_8615_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.8.8615-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_8_8615_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.8.8615-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_8_8615_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.8.8615-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_8_8615_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.8.8615-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_9_8621_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.9.8621-1" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_9_8621_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.9.8621-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_107_0_9_8621_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.9.8621-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_9_8621_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.9.8621-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_9_8621_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.9.8621-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_9_8621_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.9.8621-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_0_8694_1 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.0.8694-1" - - name: RELATED_IMAGE_AGENT_IMAGE_108_0_0_8694_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:108.0.0.8694-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_108_0_0_8694_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:108.0.0.8694-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_0_8694_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.0.8694-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_0_8694_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.0.8694-1_1.28.0" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_28_7763_1 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.28.7763-1" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_0_8694_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.0.8694-1_1.29.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_1_8718_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.1.8718-1" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_1_8718_1_1_27_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.1.8718-1_1.27.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_1_8718_1_1_28_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.1.8718-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_1_8718_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.1.8718-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_29_7785_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_29_7785_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_29_7785_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_29_7785_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_29_7785_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_29_7785_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.29.7785-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_30_7791_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.30.7791-1" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_30_7791_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.30.7791-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_30_7791_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.30.7791-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_30_7791_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.30.7791-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_30_7791_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.30.7791-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_30_7791_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.30.7791-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_31_7825_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.31.7825-1" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_31_7825_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.31.7825-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_31_7825_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.31.7825-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_31_7825_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.31.7825-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_31_7825_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.31.7825-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_31_7825_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.31.7825-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_32_7857_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.32.7857-1" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_32_7857_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.32.7857-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_32_7857_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.32.7857-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_32_7857_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.32.7857-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_32_7857_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.32.7857-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_32_7857_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.32.7857-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.26.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1_1_27_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.27.0" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1_1_28_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.29.0" - name: RELATED_IMAGE_AGENT_IMAGE_13_10_0_8620_1 value: "quay.io/mongodb/mongodb-agent-ubi:13.10.0.8620-1" - - name: RELATED_IMAGE_AGENT_IMAGE_13_22_0_9099_1 - value: "quay.io/mongodb/mongodb-agent-ubi:13.22.0.9099-1" - - name: RELATED_IMAGE_AGENT_IMAGE_13_22_0_9099_1_1_25_0 - value: "quay.io/mongodb/mongodb-agent-ubi:13.22.0.9099-1_1.25.0" - - name: RELATED_IMAGE_AGENT_IMAGE_13_22_0_9099_1_1_26_0 - value: "quay.io/mongodb/mongodb-agent-ubi:13.22.0.9099-1_1.26.0" - - name: RELATED_IMAGE_AGENT_IMAGE_13_22_0_9099_1_1_27_0 - value: "quay.io/mongodb/mongodb-agent-ubi:13.22.0.9099-1_1.27.0" - - name: RELATED_IMAGE_AGENT_IMAGE_13_22_0_9099_1_1_28_0 - value: "quay.io/mongodb/mongodb-agent-ubi:13.22.0.9099-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_25_0_9175_1 + value: "quay.io/mongodb/mongodb-agent-ubi:13.25.0.9175-1" + - name: RELATED_IMAGE_AGENT_IMAGE_13_25_0_9175_1_1_27_0 + value: "quay.io/mongodb/mongodb-agent-ubi:13.25.0.9175-1_1.27.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_25_0_9175_1_1_28_0 + value: "quay.io/mongodb/mongodb-agent-ubi:13.25.0.9175-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_25_0_9175_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:13.25.0.9175-1_1.29.0" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_0 value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:6.0.0" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_1 @@ -557,6 +527,8 @@ spec: value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:7.0.11" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_8_0_0 value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:8.0.0" + - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_8_0_1 + value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:8.0.1" # since the official server images end with a different suffix we can re-use the same $mongodbImageEnv - name: RELATED_IMAGE_MONGODB_IMAGE_4_4_0_ubi8 value: "quay.io/mongodb/mongodb-enterprise-server:4.4.0-ubi8" @@ -652,6 +624,10 @@ spec: value: "quay.io/mongodb/mongodb-enterprise-server:6.0.4-ubi8" - name: RELATED_IMAGE_MONGODB_IMAGE_6_0_5_ubi8 value: "quay.io/mongodb/mongodb-enterprise-server:6.0.5-ubi8" + - name: RELATED_IMAGE_MONGODB_IMAGE_8_0_0_ubi8 + value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi8" + - name: RELATED_IMAGE_MONGODB_IMAGE_8_0_0_ubi9 + value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi9" # mongodbLegacyAppDb will be deleted in 1.23 release - name: RELATED_IMAGE_MONGODB_IMAGE_4_2_11_ent value: "quay.io/mongodb/mongodb-enterprise-appdb-database-ubi:4.2.11-ent" diff --git a/mongodb-enterprise.yaml b/mongodb-enterprise.yaml index 5fce81d..ee2bf8a 100644 --- a/mongodb-enterprise.yaml +++ b/mongodb-enterprise.yaml @@ -227,7 +227,7 @@ spec: runAsUser: 2000 containers: - name: mongodb-enterprise-operator - image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.28.0" + image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.29.0" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -265,21 +265,21 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-database-ubi - name: INIT_DATABASE_VERSION - value: 1.28.0 + value: 1.29.0 - name: DATABASE_VERSION - value: 1.28.0 + value: 1.29.0 # Ops Manager - name: OPS_MANAGER_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-ops-manager-ubi - name: INIT_OPS_MANAGER_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi - name: INIT_OPS_MANAGER_VERSION - value: 1.28.0 + value: 1.29.0 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi - name: INIT_APPDB_VERSION - value: 1.28.0 + value: 1.29.0 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE diff --git a/samples/ops-manager/ops-manager-remote-mode.yaml b/samples/ops-manager/ops-manager-remote-mode.yaml index 134216d..80c5fa2 100644 --- a/samples/ops-manager/ops-manager-remote-mode.yaml +++ b/samples/ops-manager/ops-manager-remote-mode.yaml @@ -96,7 +96,17 @@ spec: volumeMounts: - name: mongodb-versions mountPath: /mongodb-ops-manager/mongodb-releases/linux - + - name: setting-up-rhel-mongodb-8-0-0 + image: curlimages/curl:latest + command: + - curl + - -L + - https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel8-8.0.0.tgz + - -o + - /mongodb-ops-manager/mongodb-releases/mongodb-linux-x86_64-rhel8-8.0.0.tgz + volumeMounts: + - name: mongodb-versions + mountPath: /mongodb-ops-manager/mongodb-releases restartPolicy: Always securityContext: {} terminationGracePeriodSeconds: 30 diff --git a/support/mdb_operator_diagnostic_data.sh b/support/mdb_operator_diagnostic_data.sh index 30e3c19..8bf3302 100644 --- a/support/mdb_operator_diagnostic_data.sh +++ b/support/mdb_operator_diagnostic_data.sh @@ -104,7 +104,10 @@ dump_all() { mdb_container_name="mongodb-enterprise-database" for pod in ${pods_in_namespace}; do - kubectl -n "${namespace}" logs "${pod}" -c ${mdb_container_name} --tail 2000 >"${log_dir}/${pod}.log" + if ! kubectl -n "${namespace}" get pod "${pod}" --no-headers -o custom-columns=":spec.containers[*].name" | grep -E "^${mdb_container_name}$" > /dev/null; then + continue + fi + kubectl -n "${namespace}" logs "${pod}" -c "${mdb_container_name}" --tail 2000 >"${log_dir}/${pod}.log" kubectl -n "${namespace}" get event --field-selector "involvedObject.name=${pod}" >"${log_dir}/${pod}_events.log" done