From 698ef4ffc2a8f50263a24243357f65cfa6d26e13 Mon Sep 17 00:00:00 2001 From: mms-build-account Date: Fri, 20 Dec 2024 03:33:38 -0500 Subject: [PATCH] Kubernetes Enterprise Operator Release 1.30.0 (#299) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated * Updated * Update pod_template_shards_1.yaml * Update Dockerfile * Bump multicluster tool back to golang:1.23 --------- Co-authored-by: Łukasz Sierant Co-authored-by: Maciej Karaś --- .evergreen.yml | 2 +- crds.yaml | 36 ++--- .../107.0.1.8507-1_1.28.0/ubi/Dockerfile | 4 +- .../107.0.1.8507-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.1.8507-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.10.8627-1_1.28.0/ubi/Dockerfile | 4 +- .../107.0.10.8627-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.10.8627-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.11.8645-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.11.8645-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.12.8669-1/ubi/Dockerfile | 60 ++++++++ .../107.0.12.8669-1_1.28.0/ubi/Dockerfile | 64 ++++++++ .../107.0.12.8669-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.12.8669-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.2.8531-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.2.8531-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.3.8550-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.3.8550-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.4.8567-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.4.8567-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.6.8587-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.6.8587-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.7.8596-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.7.8596-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.8.8615-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.8.8615-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../107.0.9.8621-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../107.0.9.8621-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../108.0.0.8694-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../108.0.0.8694-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../108.0.1.8718-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../108.0.1.8718-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../108.0.2.8729-1/ubi/Dockerfile | 60 ++++++++ .../108.0.2.8729-1_1.28.0/ubi/Dockerfile | 64 ++++++++ .../108.0.2.8729-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../108.0.2.8729-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../12.0.30.7791-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../12.0.30.7791-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../12.0.31.7825-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../12.0.31.7825-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../12.0.32.7857-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../12.0.32.7857-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../12.0.33.7866-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../12.0.33.7866-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../13.27.0.9284-1/ubi/Dockerfile | 60 ++++++++ .../13.27.0.9284-1_1.28.0/ubi/Dockerfile | 64 ++++++++ .../13.27.0.9284-1_1.29.0/ubi/Dockerfile | 64 ++++++++ .../13.27.0.9284-1_1.30.0/ubi/Dockerfile | 64 ++++++++ .../1.30.0/ubi/Dockerfile | 87 +++++++++++ .../1.30.0/ubi/Dockerfile | 35 +++++ .../1.30.0/ubi/Dockerfile | 34 +++++ .../1.30.0/ubi/Dockerfile | 26 ++++ .../1.30.0/ubi/Dockerfile | 39 +++++ .../7.0.12/ubi/Dockerfile | 84 +++++++++++ .../8.0.2/ubi/Dockerfile | 84 +++++++++++ mongodb-enterprise-multi-cluster.yaml | 12 +- mongodb-enterprise-openshift.yaml | 140 +++++++++--------- mongodb-enterprise.yaml | 12 +- .../example-sharded-cluster-deployment.yaml | 85 +++++++++++ .../pod_template_config_servers.yaml | 79 ++++++++++ .../pod_template_shards_0.yaml | 75 ++++++++++ .../pod_template_shards_1.yaml | 104 +++++++++++++ .../shardSpecificPodSpec_migration.yaml | 80 ++++++++++ samples/single-sharded-overrides.yaml | 31 ++++ tools/multicluster/Dockerfile | 2 +- tools/multicluster/go.mod | 12 +- tools/multicluster/go.sum | 28 ++-- tools/multicluster/licenses.csv | 17 ++- .../pkg/common/kubeclientcontainer.go | 10 +- 69 files changed, 3788 insertions(+), 138 deletions(-) create mode 100644 dockerfiles/mongodb-agent/107.0.1.8507-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.1.8507-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.10.8627-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.10.8627-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.11.8645-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.11.8645-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.12.8669-1/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.12.8669-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.12.8669-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.12.8669-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.2.8531-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.2.8531-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.3.8550-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.3.8550-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.4.8567-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.4.8567-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.6.8587-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.6.8587-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.7.8596-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.7.8596-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.8.8615-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.8.8615-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.9.8621-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/107.0.9.8621-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.0.8694-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.0.8694-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.1.8718-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.1.8718-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.2.8729-1/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.2.8729-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.2.8729-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/108.0.2.8729-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.30.7791-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.30.7791-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.31.7825-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.31.7825-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.32.7857-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.32.7857-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.33.7866-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/12.0.33.7866-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/13.27.0.9284-1/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/13.27.0.9284-1_1.28.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/13.27.0.9284-1_1.29.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-agent/13.27.0.9284-1_1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-database/1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-init-appdb/1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-init-database/1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-init-ops-manager/1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-operator/1.30.0/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-ops-manager/7.0.12/ubi/Dockerfile create mode 100644 dockerfiles/mongodb-enterprise-ops-manager/8.0.2/ubi/Dockerfile create mode 100644 samples/sharded_multicluster/example-sharded-cluster-deployment.yaml create mode 100644 samples/sharded_multicluster/pod_template_config_servers.yaml create mode 100644 samples/sharded_multicluster/pod_template_shards_0.yaml create mode 100644 samples/sharded_multicluster/pod_template_shards_1.yaml create mode 100644 samples/sharded_multicluster/shardSpecificPodSpec_migration.yaml create mode 100644 samples/single-sharded-overrides.yaml diff --git a/.evergreen.yml b/.evergreen.yml index acfa6be..f563861 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -2,7 +2,7 @@ variables: - &go_env XDG_CONFIG_HOME: ${go_base_path}${workdir} GO111MODULE: "on" - GOROOT: "/opt/golang/go1.22" + GOROOT: "/opt/golang/go1.23" functions: "clone": - command: subprocess.exec diff --git a/crds.yaml b/crds.yaml index a94bfe2..6b91f12 100644 --- a/crds.yaml +++ b/crds.yaml @@ -2167,30 +2167,6 @@ spec: name should have a one on one mapping with the service-account created in the central cluster to talk to the workload clusters. type: string - externalAccess: - description: ExternalAccessConfiguration provides external - access configuration for Multi-Cluster. - properties: - externalDomain: - description: An external domain that is used for exposing - MongoDB to the outside world. - type: string - externalService: - description: Provides a way to override the default - (NodePort) Service - properties: - annotations: - additionalProperties: - type: string - description: A map of annotations that shall be - added to the externally available Service. - type: object - spec: - description: A wrapper for the Service spec object. - type: object - x-kubernetes-preserve-unknown-fields: true - type: object - type: object memberConfig: description: MemberConfig allows to specify votes, priorities and tags for each of the mongodb process. @@ -2650,6 +2626,12 @@ spec: additionalProperties: type: integer type: object + shardOverridesInClusters: + additionalProperties: + additionalProperties: + type: integer + type: object + type: object type: object version: type: string @@ -5650,6 +5632,12 @@ spec: additionalProperties: type: integer type: object + shardOverridesInClusters: + additionalProperties: + additionalProperties: + type: integer + type: object + type: object type: object version: type: string 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 index fce0af3..7b71d3b 100644 --- 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 @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${version}" \ + version="${agent_version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ @@ -61,4 +61,4 @@ RUN chmod -R +r /var/lib/automation/config USER 2000 -HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.1.8507-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.1.8507-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.1.8507-1_1.29.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.1.8507-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.1.8507-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.1.8507-1_1.30.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.10.8627-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.10.8627-1_1.28.0/ubi/Dockerfile index fce0af3..7b71d3b 100644 --- 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 @@ -6,7 +6,7 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal ARG version LABEL name="MongoDB Agent" \ - version="${version}" \ + version="${agent_version}" \ summary="MongoDB Agent" \ description="MongoDB Agent" \ vendor="MongoDB" \ @@ -61,4 +61,4 @@ RUN chmod -R +r /var/lib/automation/config USER 2000 -HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 +HEALTHCHECK --timeout=30s CMD ls /opt/scripts/readinessprobe || exit 1 \ No newline at end of file diff --git a/dockerfiles/mongodb-agent/107.0.10.8627-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.10.8627-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.10.8627-1_1.29.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.10.8627-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.10.8627-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.10.8627-1_1.30.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.11.8645-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.29.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.11.8645-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.11.8645-1_1.30.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.12.8669-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.12.8669-1/ubi/Dockerfile new file mode 100644 index 0000000..b9f3f0b --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.12.8669-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/107.0.12.8669-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.12.8669-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.12.8669-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.12.8669-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.12.8669-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.12.8669-1_1.29.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.12.8669-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.12.8669-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.12.8669-1_1.30.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_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.2.8531-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.2.8531-1_1.29.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_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.2.8531-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.2.8531-1_1.30.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.3.8550-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.3.8550-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.3.8550-1_1.29.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.3.8550-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.3.8550-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.3.8550-1_1.30.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.4.8567-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.4.8567-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.4.8567-1_1.29.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.4.8567-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.4.8567-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.4.8567-1_1.30.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.6.8587-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.6.8587-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.6.8587-1_1.29.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.6.8587-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.6.8587-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.6.8587-1_1.30.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.7.8596-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.7.8596-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.7.8596-1_1.29.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.7.8596-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.7.8596-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.7.8596-1_1.30.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.8.8615-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.8.8615-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.8.8615-1_1.29.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.8.8615-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.8.8615-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.8.8615-1_1.30.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.9.8621-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.9.8621-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.9.8621-1_1.29.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.9.8621-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/107.0.9.8621-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/107.0.9.8621-1_1.30.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.0.8694-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.29.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.0.8694-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.0.8694-1_1.30.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.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.29.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.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.1.8718-1_1.30.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.2.8729-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.2.8729-1/ubi/Dockerfile new file mode 100644 index 0000000..b9f3f0b --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.2.8729-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.2.8729-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.2.8729-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.2.8729-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.2.8729-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.2.8729-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.2.8729-1_1.29.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.2.8729-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/108.0.2.8729-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/108.0.2.8729-1_1.30.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.30.7791-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.30.7791-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.30.7791-1_1.29.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.30.7791-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.30.7791-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.30.7791-1_1.30.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.31.7825-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.31.7825-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.31.7825-1_1.29.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.31.7825-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.31.7825-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.31.7825-1_1.30.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.32.7857-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.32.7857-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.32.7857-1_1.29.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.32.7857-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.32.7857-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.32.7857-1_1.30.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.33.7866-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.29.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.33.7866-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/12.0.33.7866-1_1.30.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.27.0.9284-1/ubi/Dockerfile b/dockerfiles/mongodb-agent/13.27.0.9284-1/ubi/Dockerfile new file mode 100644 index 0000000..b9f3f0b --- /dev/null +++ b/dockerfiles/mongodb-agent/13.27.0.9284-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.27.0.9284-1_1.28.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/13.27.0.9284-1_1.28.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/13.27.0.9284-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.27.0.9284-1_1.29.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/13.27.0.9284-1_1.29.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/13.27.0.9284-1_1.29.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.27.0.9284-1_1.30.0/ubi/Dockerfile b/dockerfiles/mongodb-agent/13.27.0.9284-1_1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a76994e --- /dev/null +++ b/dockerfiles/mongodb-agent/13.27.0.9284-1_1.30.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.30.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-database/1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..f0915c6 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-database/1.30.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.30.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.30.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-init-appdb/1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..0495673 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-init-appdb/1.30.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.30.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-init-database/1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..8fefdcc --- /dev/null +++ b/dockerfiles/mongodb-enterprise-init-database/1.30.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.30.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-init-ops-manager/1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..a638bb9 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-init-ops-manager/1.30.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.30.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.30.0/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-operator/1.30.0/ubi/Dockerfile new file mode 100644 index 0000000..39d1d7d --- /dev/null +++ b/dockerfiles/mongodb-enterprise-operator/1.30.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.30.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/7.0.12/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-ops-manager/7.0.12/ubi/Dockerfile new file mode 100644 index 0000000..8774834 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-ops-manager/7.0.12/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="7.0.12" \ + 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-7.0.12.500.20241029T1917Z.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/dockerfiles/mongodb-enterprise-ops-manager/8.0.2/ubi/Dockerfile b/dockerfiles/mongodb-enterprise-ops-manager/8.0.2/ubi/Dockerfile new file mode 100644 index 0000000..dcc5c56 --- /dev/null +++ b/dockerfiles/mongodb-enterprise-ops-manager/8.0.2/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.2" \ + 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.2.500.20241205T1612Z.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 2a618ab..3448d31 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.29.0" + image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.30.0" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -269,25 +269,25 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-database-ubi - name: INIT_DATABASE_VERSION - value: 1.29.0 + value: 1.30.0 - name: DATABASE_VERSION - value: 1.29.0 + value: 1.30.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.29.0 + value: 1.30.0 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi - name: INIT_APPDB_VERSION - value: 1.29.0 + value: 1.30.0 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.0.8502-1" + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1" - name: MDB_AGENT_IMAGE_REPOSITORY value: "quay.io/mongodb/mongodb-agent-ubi" - name: MONGODB_IMAGE diff --git a/mongodb-enterprise-openshift.yaml b/mongodb-enterprise-openshift.yaml index 8108df9..088f71f 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.29.0" + image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.30.0" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -264,25 +264,25 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-database-ubi - name: INIT_DATABASE_VERSION - value: 1.29.0 + value: 1.30.0 - name: DATABASE_VERSION - value: 1.29.0 + value: 1.30.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.29.0 + value: 1.30.0 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi - name: INIT_APPDB_VERSION - value: 1.29.0 + value: 1.30.0 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.0.8502-1" + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1" - name: MDB_AGENT_IMAGE_REPOSITORY value: "quay.io/mongodb/mongodb-agent-ubi" - name: MONGODB_IMAGE @@ -295,162 +295,166 @@ spec: value: 'true' - name: MDB_MAX_CONCURRENT_RECONCILES value: "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_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_30_0 + value: "quay.io/mongodb/mongodb-enterprise-database-ubi:1.30.0" + - name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_30_0 + value: "quay.io/mongodb/mongodb-enterprise-init-database-ubi:1.30.0" + - name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_30_0 + value: "quay.io/mongodb/mongodb-enterprise-init-ops-manager-ubi:1.30.0" + - name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_30_0 + value: "quay.io/mongodb/mongodb-enterprise-init-appdb-ubi:1.30.0" - 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_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_1_8507_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1_1.30.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_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_10_8627_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.10.8627-1_1.30.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_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_11_8645_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.11.8645-1_1.30.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1_1_28_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1_1.29.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_12_8669_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.12.8669-1_1.30.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_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_2_8531_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.2.8531-1_1.30.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_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_3_8550_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.3.8550-1_1.30.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_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_4_8567_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.4.8567-1_1.30.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_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_6_8587_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.6.8587-1_1.30.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_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_7_8596_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.7.8596-1_1.30.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_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_8_8615_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.8.8615-1_1.30.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_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_107_0_9_8621_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.9.8621-1_1.30.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_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_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_0_8694_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.0.8694-1_1.30.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_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_108_0_1_8718_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.1.8718-1_1.30.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_2_8729_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_2_8729_1_1_28_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_2_8729_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1_1.29.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_2_8729_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1_1.30.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_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_30_7791_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.30.7791-1_1.30.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_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_31_7825_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.31.7825-1_1.30.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_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_32_7857_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.32.7857-1_1.30.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_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_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_AGENT_IMAGE_12_0_33_7866_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.30.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_27_0_9284_1 + value: "quay.io/mongodb/mongodb-agent-ubi:13.27.0.9284-1" + - name: RELATED_IMAGE_AGENT_IMAGE_13_27_0_9284_1_1_28_0 + value: "quay.io/mongodb/mongodb-agent-ubi:13.27.0.9284-1_1.28.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_27_0_9284_1_1_29_0 + value: "quay.io/mongodb/mongodb-agent-ubi:13.27.0.9284-1_1.29.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_27_0_9284_1_1_30_0 + value: "quay.io/mongodb/mongodb-agent-ubi:13.27.0.9284-1_1.30.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 @@ -525,10 +529,14 @@ spec: value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:7.0.10" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_7_0_11 value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:7.0.11" + - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_7_0_12 + value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:7.0.12" - 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" + - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_8_0_2 + value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:8.0.2" # 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" diff --git a/mongodb-enterprise.yaml b/mongodb-enterprise.yaml index ee2bf8a..6684206 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.29.0" + image: "quay.io/mongodb/mongodb-enterprise-operator-ubi:1.30.0" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -265,25 +265,25 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-database-ubi - name: INIT_DATABASE_VERSION - value: 1.29.0 + value: 1.30.0 - name: DATABASE_VERSION - value: 1.29.0 + value: 1.30.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.29.0 + value: 1.30.0 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-enterprise-init-appdb-ubi - name: INIT_APPDB_VERSION - value: 1.29.0 + value: 1.30.0 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE - value: "quay.io/mongodb/mongodb-agent-ubi:107.0.0.8502-1" + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.2.8729-1" - name: MDB_AGENT_IMAGE_REPOSITORY value: "quay.io/mongodb/mongodb-agent-ubi" - name: MONGODB_IMAGE diff --git a/samples/sharded_multicluster/example-sharded-cluster-deployment.yaml b/samples/sharded_multicluster/example-sharded-cluster-deployment.yaml new file mode 100644 index 0000000..fb2541c --- /dev/null +++ b/samples/sharded_multicluster/example-sharded-cluster-deployment.yaml @@ -0,0 +1,85 @@ +apiVersion: mongodb.com/v1 +kind: MongoDB +metadata: + name: sc +spec: + topology: MultiCluster + type: ShardedCluster + # this deployment will have 3 shards + shardCount: 3 + # you cannot specify mongodsPerShardCount, configServerCount and mongosCount in MultiCluster topology + version: 8.0.3 + opsManager: + configMapRef: + name: my-project + credentials: my-credentials + persistent: true + + shardPodSpec: # applies to all shards on all clusters + persistence: + single: + storage: 10G # all pods for all shards on all clusters will use that storage size in their PersistentVolumeClaim unless overridden in spec.shard.clusterSpecList or spec.shardOverrides. + + configSrvPodSpec: # applies to all config server nodes in all clusters + persistence: + multiple: + data: + storage: 2G + journal: + storage: 1G + logs: + storage: 1G + + shard: # consider this section as a default configuration for ALL shards + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 1 # each shard will have only one mongod process deployed in this cluster + memberConfig: + - votes: 1 + priority: "20" # we increase the priority to have primary in this cluster + - clusterName: kind-e2e-cluster-2 + members: 1 # one member in this cluster, no votes and priority defined means it'll get the default values votes=1, priority="1" + - clusterName: kind-e2e-cluster-3 + members: 1 # one member in this cluster + + shardOverrides: # here you specify customizations for specific shards + - shardNames: # here you specify to which shard names the following configuration will apply + - sc-0 + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + # all fields here are optional + members: 2 # shard "sc-0" will have two members instead of one, which was defined as the default for all shards in spec.shard.clusterSpecList[0].members + memberConfig: + - votes: 1 + priority: "1" # shard "sc-0" should not have primary in this cluster like every other shard + - votes: 1 + priority: "1" + - clusterName: kind-e2e-cluster-2 + members: 2 # shard "sc-0" will have two members instead of one + memberConfig: + - votes: 1 + priority: "20" # both processes of shard "sc-0" in this cluster will have the same likelihood to become a primary member + - votes: 1 + priority: "20" + - clusterName: kind-e2e-cluster-3 # We need to specify the list of all clusters on which this shard will be deployed. + # If the clusterName element is omitted here, it will be considered as an override for this shard, so that the operator shouldn't deploy any member to it. + # No fields are mandatory in here, though. In case a field is not set, it's not overridden and the default value is taken from a top level spec.shard settings. + + configSrv: + clusterSpecList: # the same configuration fields are available as in spec.shard.clusterSpecList. + - clusterName: kind-e2e-cluster-1 + members: 1 + - clusterName: kind-e2e-cluster-2 + members: 1 + - clusterName: kind-e2e-cluster-3 + members: 1 + + mongos: + clusterSpecList: # the same configuration fields are available as in spec.shard.clusterSpecList apart from storage and replica-set related fields. + - clusterName: kind-e2e-cluster-1 + members: 1 + - clusterName: kind-e2e-cluster-2 + members: 1 + - clusterName: kind-e2e-cluster-3 + members: 1 + diff --git a/samples/sharded_multicluster/pod_template_config_servers.yaml b/samples/sharded_multicluster/pod_template_config_servers.yaml new file mode 100644 index 0000000..35b7f11 --- /dev/null +++ b/samples/sharded_multicluster/pod_template_config_servers.yaml @@ -0,0 +1,79 @@ +# This file is a minimal example of how to define global custom pod templates and persistence settings +# and how to override them in clusterSpecList for Config Servers +# It is similar to how we define them for shards, except that there is no shardOverrides +# Note that mongos settings work in the same way +apiVersion: mongodb.com/v1 +kind: MongoDB +metadata: + name: pod-template-config-servers + namespace: mongodb-test +spec: + shardCount: 3 + topology: MultiCluster + type: ShardedCluster + version: 8.0.3 + opsManager: + configMapRef: + name: my-project + credentials: my-credentials + persistent: true + + configSrvPodSpec: # applicable to all members in all clusters + persistence: + single: + storage: "5G" + podTemplate: + spec: + containers: + - name: mongodb-enterprise-database + resources: + requests: + cpu: 0.5 + memory: 1.0G + limits: + cpu: 1.0 + memory: 2.0G + configSrv: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + # The below statefulset override is applicable only to pods in kind-e2e-cluster-1 + # Specs will be merged, the "request" field defined above will still be applied to containers in this cluster + # However, limits will be replaced with below values, because clusterSpecList.statefulSet.spec.template has a + # higher priority than configSrvPodSpec.podTemplate + statefulSet: + spec: + template: + spec: + containers: + - name: mongodb-enterprise-database + resources: + limits: + cpu: 1.0 + memory: 2.5G + # In clusterSpecList.podSpec, only persistence field must be used, the podTemplate field is ignored. + podSpec: # In kind-e2e-cluster-1, we replace the persistence settings defined in configSrvPodSpec + persistence: + multiple: + journal: + storage: "6G" + data: + storage: "7G" + logs: + storage: "6G" + - clusterName: kind-e2e-cluster-2 + members: 1 + + mongos: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + - clusterName: kind-e2e-cluster-2 + members: 1 + + shard: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + - clusterName: kind-e2e-cluster-2 + members: 1 diff --git a/samples/sharded_multicluster/pod_template_shards_0.yaml b/samples/sharded_multicluster/pod_template_shards_0.yaml new file mode 100644 index 0000000..e5d287d --- /dev/null +++ b/samples/sharded_multicluster/pod_template_shards_0.yaml @@ -0,0 +1,75 @@ +# This file is a minimal example of how to define global custom pod templates and persistence settings +# and how to override them in clusterSpecList +apiVersion: mongodb.com/v1 +kind: MongoDB +metadata: + name: pod-template-shards-0 + namespace: mongodb-test +spec: + shardCount: 3 + topology: MultiCluster + type: ShardedCluster + version: 8.0.3 + opsManager: + configMapRef: + name: my-project + credentials: my-credentials + persistent: true + mongos: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + - clusterName: kind-e2e-cluster-2 + members: 1 + configSrv: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + - clusterName: kind-e2e-cluster-2 + members: 1 + + shardPodSpec: # applicable to all shards in all clusters + persistence: + single: + storage: "5G" + podTemplate: + spec: + containers: + - name: mongodb-enterprise-database + resources: + requests: + cpu: 0.5 + memory: 1.0G + limits: + cpu: 1.0 + memory: 2.0G + shard: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + # The below statefulset override is applicable only to pods in kind-e2e-cluster-1 + # Specs will be merged, the "request" field defined above will still be applied to containers in this cluster + # However, limits will be replaced with below values, because clusterSpecList.statefulSet.spec.template has a + # higher priority than shardPodSpec.podTemplate + statefulSet: + spec: + template: + spec: + containers: + - name: mongodb-enterprise-database + resources: + limits: + cpu: 1.0 + memory: 2.5G + # In clusterSpecList.podSpec, only persistence field must be used, the podTemplate field is ignored. + podSpec: # In kind-e2e-cluster-1, we replace the persistence settings defined in shardPodSpec + persistence: + multiple: + journal: + storage: "6G" + data: + storage: "7G" + logs: + storage: "6G" + - clusterName: kind-e2e-cluster-2 + members: 1 diff --git a/samples/sharded_multicluster/pod_template_shards_1.yaml b/samples/sharded_multicluster/pod_template_shards_1.yaml new file mode 100644 index 0000000..1d52d27 --- /dev/null +++ b/samples/sharded_multicluster/pod_template_shards_1.yaml @@ -0,0 +1,104 @@ +# This file is a minimal example of how to define custom pod templates and persistence settings +# at the cluster level, and in shard overrides. +apiVersion: mongodb.com/v1 +kind: MongoDB +metadata: + name: pod-template-shards-1 + namespace: mongodb-test +spec: + shardCount: 3 + topology: MultiCluster + type: ShardedCluster + version: 8.0.3 + opsManager: + configMapRef: + name: my-project + credentials: my-credentials + persistent: true + mongos: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + - clusterName: kind-e2e-cluster-2 + members: 1 + configSrv: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + - clusterName: kind-e2e-cluster-2 + members: 1 + + shard: + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + # Statefulset and PodSPec settings below apply to members of all shards in kind-e2e-cluster-1 + statefulSet: + spec: + template: + spec: + containers: + - name: mongodb-enterprise-database + resources: + limits: + cpu: 1.0 + memory: 2.0G + # In clusterSpecList.podSpec, only persistence field must be used, the podTemplate field is ignored. + podSpec: # In kind-e2e-cluster-1, we define custom persistence settings + persistence: + multiple: + journal: + storage: "5G" + data: + storage: "5G" + logs: + storage: "5G" + - clusterName: kind-e2e-cluster-2 + members: 1 + + shardOverrides: + - shardNames: [ "pod-template-shards-1-2" ] # this override will apply to shard of index 2 + # Statefulset settings defined at this level (shardOverrides.statefulSet) apply to members + # of shard 2 in ALL clusters + # This field has higher priority than shard.clusterSpecList.statefulSet, but lower than + # shardOverrides.clusterSpecList.statefulSet + # It has a merge policy, which means that the limits defined above for the mongodb-enterprise-database container + # field still apply to all members in that shard, except if overriden. + statefulSet: + spec: + template: + spec: + containers: + - name: sidecar-shard-2 + image: busybox + command: [ "sleep" ] + args: [ "infinity" ] + clusterSpecList: + - clusterName: kind-e2e-cluster-1 + members: 2 + - clusterName: kind-e2e-cluster-2 + members: 1 + # The below statefulset override is applicable only to members of shard 2, in cluster 1 + # Specs will be merged, the "limits" field defined above will still be applied to containers in this cluster, + # together with the requests field below. + statefulSet: + spec: + template: + spec: + containers: + - name: mongodb-enterprise-database + resources: + requests: # We add a requests field in shard 2, cluster 1 + cpu: 0.5 + memory: 1.0G + + podSpec: + # In shardOverrides.clusterSpecList.podSpec, only persistence field must be used, the podTemplate field is ignored. + persistence: # we assign additional disk resources in shard 2, cluster 1 + multiple: + journal: + storage: "6G" + data: + storage: "6G" + logs: + storage: "6G" diff --git a/samples/sharded_multicluster/shardSpecificPodSpec_migration.yaml b/samples/sharded_multicluster/shardSpecificPodSpec_migration.yaml new file mode 100644 index 0000000..18beaf8 --- /dev/null +++ b/samples/sharded_multicluster/shardSpecificPodSpec_migration.yaml @@ -0,0 +1,80 @@ +# This file is an example of how to migrate from the old deprecated ShardSpecificPodSpec field to the new +# shardOverrides fields, for single cluster deployments. +# The settings specified in shardOverrides are the exact equivalent to the ones in shardSpecificPodSpec, showing how +# to replicate them +apiVersion: mongodb.com/v1 +kind: MongoDB +metadata: + name: shardspecificpodspec-migration + namespace: mongodb-test +spec: + # There are 4 shards in this cluster, but the shardSpecificPodSpec field doesn't need to have on entry per shard, + # it can have less + shardCount: 4 + mongodsPerShardCount: 2 + mongosCount: 1 + configServerCount: 3 + topology: SingleCluster + type: ShardedCluster + version: 8.0.3 + opsManager: + configMapRef: + name: my-project + credentials: my-credentials + persistent: true + + shardPodSpec: + # default persistence configuration for all shards in all clusters + persistence: + single: + storage: "5G" + shardSpecificPodSpec: # deprecated way of overriding shards (array) + - persistence: # shard of index 0 + single: + storage: "6G" + podTemplate: # Specify resources settings to enterprise database container in shard 0 + spec: + containers: + - name: mongodb-enterprise-database + resources: + requests: + cpu: 0.5 + memory: 1G + limits: + cpu: 1.0 + memory: 2.0G + - persistence: # shard of index 1 + single: + storage: "7G" + - persistence: # shard of index 2 + single: + storage: "7G" + + # The below shardOverrides replicate the same shards configuration as the one specified above in shardSpecificPodSpec + shardOverrides: + - shardNames: [ "shardspecificpodspec-migration-0" ] # overriding shard #0 + podSpec: + persistence: + single: + storage: "6G" + statefulSet: + spec: + template: + spec: + containers: + - name: mongodb-enterprise-database + resources: + requests: + cpu: 0.5 + memory: 1G + limits: + cpu: 1.0 + memory: 2.0G + + # The ShardSpecificPodSpec field above has the same configuration for shards 1 and 2. It is possible + # to specify both shard names in the override and not duplicate that configuration + - shardNames: [ "shardspecificpodspec-migration-1", "shardspecificpodspec-migration-2" ] + podSpec: + persistence: + single: + storage: "7G" diff --git a/samples/single-sharded-overrides.yaml b/samples/single-sharded-overrides.yaml new file mode 100644 index 0000000..caea212 --- /dev/null +++ b/samples/single-sharded-overrides.yaml @@ -0,0 +1,31 @@ +apiVersion: mongodb.com/v1 +kind: MongoDB +metadata: + name: sh-single-overrides +spec: + shardCount: 2 + mongodsPerShardCount: 1 + mongosCount: 1 + configServerCount: 1 + version: "7.0.15-ent" + type: ShardedCluster + configSrvPodSpec: + persistence: + single: + storage: 0.5G + shardPodSpec: + persistence: + single: + storage: 1G + shardOverrides: + - shardNames: [sh-single-overrides-0] + members: 3 + - shardNames: [sh-single-overrides-1] + podSpec: + persistence: + single: + storage: 2Gi + opsManager: + configMapRef: + name: my-project + credentials: my-credentials \ No newline at end of file diff --git a/tools/multicluster/Dockerfile b/tools/multicluster/Dockerfile index d177005..07caebe 100644 --- a/tools/multicluster/Dockerfile +++ b/tools/multicluster/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22 as builder +FROM golang:1.23 as builder WORKDIR /go/src ADD . . diff --git a/tools/multicluster/go.mod b/tools/multicluster/go.mod index eaed638..6c6ab07 100644 --- a/tools/multicluster/go.mod +++ b/tools/multicluster/go.mod @@ -1,15 +1,15 @@ module github.com/10gen/ops-manager-kubernetes/multi -go 1.22.0 +go 1.23.0 require ( github.com/ghodss/yaml v1.0.0 github.com/spf13/cobra v1.6.1 github.com/stretchr/testify v1.8.4 golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 - k8s.io/api v0.28.11 - k8s.io/apimachinery v0.28.11 - k8s.io/client-go v0.28.11 + k8s.io/api v0.29.11 + k8s.io/apimachinery v0.29.11 + k8s.io/client-go v0.29.11 k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 ) @@ -30,6 +30,7 @@ require ( github.com/google/go-cmp v0.6.0 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/uuid v1.3.0 // indirect + github.com/gorilla/websocket v1.5.0 // indirect github.com/imdario/mergo v0.3.6 // indirect github.com/inconshreveable/mousetrap v1.0.1 // indirect github.com/josharian/intern v1.0.0 // indirect @@ -39,6 +40,7 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/spf13/pflag v1.0.5 // indirect @@ -53,7 +55,7 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect k8s.io/klog/v2 v2.120.1 // indirect - k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect + k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect sigs.k8s.io/yaml v1.3.0 // indirect diff --git a/tools/multicluster/go.sum b/tools/multicluster/go.sum index d47e723..a327adf 100644 --- a/tools/multicluster/go.sum +++ b/tools/multicluster/go.sum @@ -39,6 +39,8 @@ github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLe github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/imdario/mergo v0.3.6 h1:xTNEAn+kxVO7dTZGu0CegyqKZmoWFI0rF8UxjlB2d28= github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= @@ -67,10 +69,12 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/onsi/ginkgo/v2 v2.9.4 h1:xR7vG4IXt5RWx6FfIjyAtsoMAtnc3C/rFXBBd2AjZwE= -github.com/onsi/ginkgo/v2 v2.9.4/go.mod h1:gCQYp2Q+kSoIj7ykSVb9nskRSsR6PUj4AiLywzIhbKM= -github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE= -github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= +github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= +github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= +github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg= +github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -151,16 +155,16 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.28.11 h1:2qFr3jSpjy/9QirmlRP0LZeomexuwyRlE8CWUn9hPNY= -k8s.io/api v0.28.11/go.mod h1:nQSGyxQ2sbS73i1zEJyaktFvFfD72z/7nU+LqxzNnXk= -k8s.io/apimachinery v0.28.11 h1:Ovrx7IOkKSgFJn8+d5BXOC7POzP4i7kOAVlx46iRQ04= -k8s.io/apimachinery v0.28.11/go.mod h1:zUG757HaKs6Dc3iGtKjzIpBfqTM4yiRsEe3/E7NX15o= -k8s.io/client-go v0.28.11 h1:YHtF6Bg4/DdYHHsx6f5Ti/0giwoo19t3DbBYYmo9xks= -k8s.io/client-go v0.28.11/go.mod h1:yi2BW8PQhFDLGmZ3WbyTJYX5J8YM6n3WUj1fvL7pJ4g= +k8s.io/api v0.29.11 h1:6FwDo33f1WX5Yu0RQTX9YAd3wth8Ik0B4SXQKsoQfbk= +k8s.io/api v0.29.11/go.mod h1:3TDAW1OpFbz/Yx5r0W06b6eiAfHEwtH61VYDzpTU4Ng= +k8s.io/apimachinery v0.29.11 h1:55+6ue9advpA7T0sX2ZJDHCLKuiFfrAAR/39VQN9KEQ= +k8s.io/apimachinery v0.29.11/go.mod h1:i3FJVwhvSp/6n8Fl4K97PJEP8C+MM+aoDq4+ZJBf70Y= +k8s.io/client-go v0.29.11 h1:mBX7Ub0uqpLMwWz3J/AGS/xKOZsjr349qZ1vxVoL1l8= +k8s.io/client-go v0.29.11/go.mod h1:WOEoi/eLg2YEg3/yEd7YK3CNScYkM8AEScQadxUnaTE= k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 h1:LyMgNKD2P8Wn1iAwQU5OhxCKlKJy0sHc+PcDwFB24dQ= -k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9/go.mod h1:wZK2AVp1uHCp4VamDVgBP2COHZjqD1T68Rf0CM3YjSM= +k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/AuzbMm96cd3YHRTU83I780= +k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA= k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 h1:jgGTlFYnhF1PM1Ax/lAlxUPE+KfCIXHaathvJg1C3ak= k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= diff --git a/tools/multicluster/licenses.csv b/tools/multicluster/licenses.csv index 1af6541..adb7a53 100644 --- a/tools/multicluster/licenses.csv +++ b/tools/multicluster/licenses.csv @@ -9,9 +9,9 @@ github.com/go-openapi/swag,v0.22.3,https://github.com/go-openapi/swag/blob/v0.22 github.com/gogo/protobuf,v1.3.2,https://github.com/gogo/protobuf/blob/v1.3.2/LICENSE,BSD-3-Clause github.com/golang/protobuf,v1.5.4,https://github.com/golang/protobuf/blob/v1.5.4/LICENSE,BSD-3-Clause github.com/google/gnostic-models,v0.6.8,https://github.com/google/gnostic-models/blob/v0.6.8/LICENSE,Apache-2.0 -github.com/google/go-cmp/cmp,v0.6.0,https://github.com/google/go-cmp/blob/v0.6.0/LICENSE,BSD-3-Clause github.com/google/gofuzz,v1.2.0,https://github.com/google/gofuzz/blob/v1.2.0/LICENSE,Apache-2.0 github.com/google/uuid,v1.3.0,https://github.com/google/uuid/blob/v1.3.0/LICENSE,BSD-3-Clause +github.com/gorilla/websocket,v1.5.0,https://github.com/gorilla/websocket/blob/v1.5.0/LICENSE,BSD-2-Clause github.com/imdario/mergo,v0.3.6,https://github.com/imdario/mergo/blob/v0.3.6/LICENSE,BSD-3-Clause github.com/josharian/intern,v1.0.0,https://github.com/josharian/intern/blob/v1.0.0/license.md,MIT github.com/json-iterator/go,v1.1.12,https://github.com/json-iterator/go/blob/v1.1.12/LICENSE,MIT @@ -20,20 +20,21 @@ github.com/moby/spdystream,v0.2.0,https://github.com/moby/spdystream/blob/v0.2.0 github.com/modern-go/concurrent,v0.0.0-20180306012644-bacd9c7ef1dd,https://github.com/modern-go/concurrent/blob/bacd9c7ef1dd/LICENSE,Apache-2.0 github.com/modern-go/reflect2,v1.0.2,https://github.com/modern-go/reflect2/blob/v1.0.2/LICENSE,Apache-2.0 github.com/munnerz/goautoneg,v0.0.0-20191010083416-a7dc8b61c822,https://github.com/munnerz/goautoneg/blob/a7dc8b61c822/LICENSE,BSD-3-Clause +github.com/mxk/go-flowrate/flowrate,v0.0.0-20140419014527-cca7078d478f,https://github.com/mxk/go-flowrate/blob/cca7078d478f/LICENSE,BSD-3-Clause github.com/spf13/cobra,v1.6.1,https://github.com/spf13/cobra/blob/v1.6.1/LICENSE.txt,Apache-2.0 github.com/spf13/pflag,v1.0.5,https://github.com/spf13/pflag/blob/v1.0.5/LICENSE,BSD-3-Clause google.golang.org/protobuf,v1.33.0,https://github.com/protocolbuffers/protobuf-go/blob/v1.33.0/LICENSE,BSD-3-Clause gopkg.in/inf.v0,v0.9.1,https://github.com/go-inf/inf/blob/v0.9.1/LICENSE,BSD-3-Clause gopkg.in/yaml.v2,v2.4.0,https://github.com/go-yaml/yaml/blob/v2.4.0/LICENSE,Apache-2.0 gopkg.in/yaml.v3,v3.0.1,https://github.com/go-yaml/yaml/blob/v3.0.1/LICENSE,MIT -k8s.io/api,v0.28.11,https://github.com/kubernetes/api/blob/v0.28.11/LICENSE,Apache-2.0 -k8s.io/apimachinery/pkg,v0.28.11,https://github.com/kubernetes/apimachinery/blob/v0.28.11/LICENSE,Apache-2.0 -k8s.io/apimachinery/third_party/forked/golang,v0.28.11,https://github.com/kubernetes/apimachinery/blob/v0.28.11/third_party/forked/golang/LICENSE,BSD-3-Clause -k8s.io/client-go,v0.28.11,https://github.com/kubernetes/client-go/blob/v0.28.11/LICENSE,Apache-2.0 +k8s.io/api,v0.29.11,https://github.com/kubernetes/api/blob/v0.29.11/LICENSE,Apache-2.0 +k8s.io/apimachinery/pkg,v0.29.11,https://github.com/kubernetes/apimachinery/blob/v0.29.11/LICENSE,Apache-2.0 +k8s.io/apimachinery/third_party/forked/golang,v0.29.11,https://github.com/kubernetes/apimachinery/blob/v0.29.11/third_party/forked/golang/LICENSE,BSD-3-Clause +k8s.io/client-go,v0.29.11,https://github.com/kubernetes/client-go/blob/v0.29.11/LICENSE,Apache-2.0 k8s.io/klog/v2,v2.120.1,https://github.com/kubernetes/klog/blob/v2.120.1/LICENSE,Apache-2.0 -k8s.io/kube-openapi/pkg,v0.0.0-20230717233707-2695361300d9,https://github.com/kubernetes/kube-openapi/blob/2695361300d9/LICENSE,Apache-2.0 -k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json,v0.0.0-20230717233707-2695361300d9,https://github.com/kubernetes/kube-openapi/blob/2695361300d9/pkg/internal/third_party/go-json-experiment/json/LICENSE,BSD-3-Clause -k8s.io/kube-openapi/pkg/validation/spec,v0.0.0-20230717233707-2695361300d9,https://github.com/kubernetes/kube-openapi/blob/2695361300d9/pkg/validation/spec/LICENSE,Apache-2.0 +k8s.io/kube-openapi/pkg,v0.0.0-20231010175941-2dd684a91f00,https://github.com/kubernetes/kube-openapi/blob/2dd684a91f00/LICENSE,Apache-2.0 +k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json,v0.0.0-20231010175941-2dd684a91f00,https://github.com/kubernetes/kube-openapi/blob/2dd684a91f00/pkg/internal/third_party/go-json-experiment/json/LICENSE,BSD-3-Clause +k8s.io/kube-openapi/pkg/validation/spec,v0.0.0-20231010175941-2dd684a91f00,https://github.com/kubernetes/kube-openapi/blob/2dd684a91f00/pkg/validation/spec/LICENSE,Apache-2.0 k8s.io/utils,v0.0.0-20240502163921-fe8a2dddb1d0,https://github.com/kubernetes/utils/blob/fe8a2dddb1d0/LICENSE,Apache-2.0 k8s.io/utils/internal/third_party/forked/golang/net,v0.0.0-20240502163921-fe8a2dddb1d0,https://github.com/kubernetes/utils/blob/fe8a2dddb1d0/internal/third_party/forked/golang/LICENSE,BSD-3-Clause sigs.k8s.io/json,v0.0.0-20221116044647-bc3834ca7abd,https://github.com/kubernetes-sigs/json/blob/bc3834ca7abd/LICENSE,Apache-2.0 diff --git a/tools/multicluster/pkg/common/kubeclientcontainer.go b/tools/multicluster/pkg/common/kubeclientcontainer.go index 61583f3..4547ac3 100644 --- a/tools/multicluster/pkg/common/kubeclientcontainer.go +++ b/tools/multicluster/pkg/common/kubeclientcontainer.go @@ -34,7 +34,7 @@ import ( eventsv1 "k8s.io/client-go/kubernetes/typed/events/v1" eventsv1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1" extensionsv1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" - flowcontrolv1alpha1 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1alpha1" + v1 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1" flowcontrolv1beta1 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta1" flowcontrolv1beta2 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta2" flowcontrolv1beta3 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta3" @@ -75,6 +75,10 @@ type KubeClientContainer struct { restConfig *rest.Config } +func (k *KubeClientContainer) FlowcontrolV1() v1.FlowcontrolV1Interface { + panic("implement me") +} + func (k *KubeClientContainer) CertificatesV1alpha1() certificatesv1alpha1.CertificatesV1alpha1Interface { // TODO implement me panic("implement me") @@ -210,10 +214,6 @@ func (k *KubeClientContainer) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1 return k.staticClient.ExtensionsV1beta1() } -func (k *KubeClientContainer) FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface { - return k.staticClient.FlowcontrolV1alpha1() -} - func (k *KubeClientContainer) FlowcontrolV1beta1() flowcontrolv1beta1.FlowcontrolV1beta1Interface { return k.staticClient.FlowcontrolV1beta1() }