From 6b6d7fafe3cfbc077c6011ca57a40442dfff4992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= Date: Mon, 12 May 2025 12:34:35 +0200 Subject: [PATCH 1/5] Release MCK 1.0.1 --- config/manager/manager.yaml | 44 +++++++++++++------ ...godb-kubernetes.clusterserviceversion.yaml | 3 +- helm_chart/Chart.yaml | 2 +- helm_chart/values-openshift.yaml | 11 ++++- helm_chart/values.yaml | 10 ++--- public/mongodb-kubernetes-multi-cluster.yaml | 10 ++--- public/mongodb-kubernetes-openshift.yaml | 44 +++++++++++++------ public/mongodb-kubernetes.yaml | 10 ++--- release.json | 25 ++++++----- 9 files changed, 105 insertions(+), 54 deletions(-) diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index be4b51b11..d910e24ab 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -22,7 +22,7 @@ spec: serviceAccountName: mongodb-kubernetes-operator containers: - name: mongodb-kubernetes-operator - image: "quay.io/mongodb/mongodb-kubernetes:1.0.0" + image: "quay.io/mongodb/mongodb-kubernetes:1.0.1" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -68,21 +68,21 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-database - name: INIT_DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 - name: DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 # 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-kubernetes-init-ops-manager - name: INIT_OPS_MANAGER_VERSION - value: 1.0.0 + value: 1.0.1 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-appdb - name: INIT_APPDB_VERSION - value: 1.0.0 + value: 1.0.1 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE @@ -121,52 +121,70 @@ spec: - name: MDB_COMMUNITY_IMAGE_TYPE value: "ubi8" # Community Env Vars End - - name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-database:1.0.0" - - name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.0.0" - - name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.0.0" - - name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.0.0" + - name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-database:1.0.1" + - name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.0.1" + - name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.0.1" + - name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.13.8702-1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.13.8702-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.13.8702-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_15_8741_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.15.8741-1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_15_8741_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.15.8741-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_15_8741_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.15.8741-1_1.0.1" - 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_4_8770_1 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.4.8770-1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_4_8770_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.4.8770-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_4_8770_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.4.8770-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_6_8796_1 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.6.8796-1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_6_8796_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.6.8796-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_6_8796_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.6.8796-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_7_8810_1 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.7.8810-1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_7_8810_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.7.8810-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_7_8810_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.7.8810-1_1.0.1" - 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_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_34_7888_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.34.7888-1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_34_7888_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.34.7888-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_34_7888_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.34.7888-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_35_7911_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.35.7911-1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_35_7911_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.35.7911-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_35_7911_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.35.7911-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_13_34_0_9465_1 value: "quay.io/mongodb/mongodb-agent-ubi:13.34.0.9465-1" - name: RELATED_IMAGE_AGENT_IMAGE_13_34_0_9465_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:13.34.0.9465-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_34_0_9465_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:13.34.0.9465-1_1.0.1" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_25 value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:6.0.25" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_26 diff --git a/config/manifests/bases/mongodb-kubernetes.clusterserviceversion.yaml b/config/manifests/bases/mongodb-kubernetes.clusterserviceversion.yaml index 8144a9be8..452a8fc49 100644 --- a/config/manifests/bases/mongodb-kubernetes.clusterserviceversion.yaml +++ b/config/manifests/bases/mongodb-kubernetes.clusterserviceversion.yaml @@ -6,7 +6,7 @@ metadata: capabilities: Deep Insights categories: Database certified: "true" - containerImage: quay.io/mongodb/mongodb-kubernetes:1.0.0 + containerImage: quay.io/mongodb/mongodb-kubernetes:1.0.1 createdAt: "" description: The MongoDB Controllers for Kubernetes enable easy deploys of MongoDB into Kubernetes clusters, using our management, monitoring and backup platforms, @@ -452,3 +452,4 @@ spec: provider: name: MongoDB, Inc version: 0.0.0 + replaces: mongodb-kubernetes.v1.0.0 diff --git a/helm_chart/Chart.yaml b/helm_chart/Chart.yaml index 26e6334c3..cf3c358f6 100644 --- a/helm_chart/Chart.yaml +++ b/helm_chart/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: mongodb-kubernetes description: MongoDB Controllers for Kubernetes translate the human knowledge of creating a MongoDB instance into a scalable, repeatable, and standardized method. -version: 1.0.0 +version: 1.0.1 kubeVersion: '>=1.16-0' type: application keywords: diff --git a/helm_chart/values-openshift.yaml b/helm_chart/values-openshift.yaml index 4fec2c8ea..e7067f267 100644 --- a/helm_chart/values-openshift.yaml +++ b/helm_chart/values-openshift.yaml @@ -27,7 +27,7 @@ operator: # Environment variables prefixed with RELATED_IMAGE_ are used by operator-sdk to generate relatedImages section # with sha256 digests pinning for the certified operator bundle with disconnected environment feature enabled. # https://docs.openshift.com/container-platform/4.14/operators/operator_sdk/osdk-generating-csvs.html#olm-enabling-operator-for-restricted-network_osdk-generating-csvs - version: 1.0.0 + version: 1.0.1 relatedImages: opsManager: - 6.0.25 @@ -93,23 +93,32 @@ relatedImages: agent: - 107.0.13.8702-1 - 107.0.13.8702-1_1.0.0 + - 107.0.13.8702-1_1.0.1 - 107.0.15.8741-1 - 107.0.15.8741-1_1.0.0 + - 107.0.15.8741-1_1.0.1 - 108.0.2.8729-1 - 108.0.4.8770-1 - 108.0.4.8770-1_1.0.0 + - 108.0.4.8770-1_1.0.1 - 108.0.6.8796-1 - 108.0.6.8796-1_1.0.0 + - 108.0.6.8796-1_1.0.1 - 108.0.7.8810-1 - 108.0.7.8810-1_1.0.0 + - 108.0.7.8810-1_1.0.1 - 12.0.33.7866-1 - 12.0.33.7866-1_1.0.0 + - 12.0.33.7866-1_1.0.1 - 12.0.34.7888-1 - 12.0.34.7888-1_1.0.0 + - 12.0.34.7888-1_1.0.1 - 12.0.35.7911-1 - 12.0.35.7911-1_1.0.0 + - 12.0.35.7911-1_1.0.1 - 13.34.0.9465-1 - 13.34.0.9465-1_1.0.0 + - 13.34.0.9465-1_1.0.1 mongodbLegacyAppDb: - 4.2.11-ent - 4.2.2-ent diff --git a/helm_chart/values.yaml b/helm_chart/values.yaml index 7a5031f54..3fa243386 100644 --- a/helm_chart/values.yaml +++ b/helm_chart/values.yaml @@ -22,7 +22,7 @@ operator: deployment_name: mongodb-kubernetes-operator # Version of mongodb-kubernetes-operator - version: 1.0.0 + version: 1.0.1 # The Custom Resources that will be watched by the Operator. Needs to be changed if only some of the CRDs are installed watchedResources: @@ -118,11 +118,11 @@ operator: ## Database database: name: mongodb-kubernetes-database - version: 1.0.0 + version: 1.0.1 initDatabase: name: mongodb-kubernetes-init-database - version: 1.0.0 + version: 1.0.1 ## Ops Manager opsManager: @@ -130,12 +130,12 @@ opsManager: initOpsManager: name: mongodb-kubernetes-init-ops-manager - version: 1.0.0 + version: 1.0.1 ## Application Database initAppDb: name: mongodb-kubernetes-init-appdb - version: 1.0.0 + version: 1.0.1 agent: name: mongodb-agent-ubi diff --git a/public/mongodb-kubernetes-multi-cluster.yaml b/public/mongodb-kubernetes-multi-cluster.yaml index 058e17183..5f7d05504 100644 --- a/public/mongodb-kubernetes-multi-cluster.yaml +++ b/public/mongodb-kubernetes-multi-cluster.yaml @@ -282,7 +282,7 @@ spec: runAsUser: 2000 containers: - name: mongodb-kubernetes-operator-multi-cluster - image: "quay.io/mongodb/mongodb-kubernetes:1.0.0" + image: "quay.io/mongodb/mongodb-kubernetes:1.0.1" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -330,21 +330,21 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-database - name: INIT_DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 - name: DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 # 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-kubernetes-init-ops-manager - name: INIT_OPS_MANAGER_VERSION - value: 1.0.0 + value: 1.0.1 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-appdb - name: INIT_APPDB_VERSION - value: 1.0.0 + value: 1.0.1 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE diff --git a/public/mongodb-kubernetes-openshift.yaml b/public/mongodb-kubernetes-openshift.yaml index dac31bf15..74b381f25 100644 --- a/public/mongodb-kubernetes-openshift.yaml +++ b/public/mongodb-kubernetes-openshift.yaml @@ -279,7 +279,7 @@ spec: serviceAccountName: mongodb-kubernetes-operator containers: - name: mongodb-kubernetes-operator - image: "quay.io/mongodb/mongodb-kubernetes:1.0.0" + image: "quay.io/mongodb/mongodb-kubernetes:1.0.1" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -325,21 +325,21 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-database - name: INIT_DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 - name: DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 # 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-kubernetes-init-ops-manager - name: INIT_OPS_MANAGER_VERSION - value: 1.0.0 + value: 1.0.1 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-appdb - name: INIT_APPDB_VERSION - value: 1.0.0 + value: 1.0.1 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE @@ -376,52 +376,70 @@ spec: - name: MDB_COMMUNITY_IMAGE_TYPE value: "ubi8" # Community Env Vars End - - name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-database:1.0.0" - - name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.0.0" - - name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.0.0" - - name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_0_0 - value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.0.0" + - name: RELATED_IMAGE_MONGODB_ENTERPRISE_DATABASE_IMAGE_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-database:1.0.1" + - name: RELATED_IMAGE_INIT_DATABASE_IMAGE_REPOSITORY_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-init-database:1.0.1" + - name: RELATED_IMAGE_INIT_OPS_MANAGER_IMAGE_REPOSITORY_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-init-ops-manager:1.0.1" + - name: RELATED_IMAGE_INIT_APPDB_IMAGE_REPOSITORY_1_0_1 + value: "quay.io/mongodb/mongodb-kubernetes-init-appdb:1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.13.8702-1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.13.8702-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_13_8702_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.13.8702-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_15_8741_1 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.15.8741-1" - name: RELATED_IMAGE_AGENT_IMAGE_107_0_15_8741_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:107.0.15.8741-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_107_0_15_8741_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:107.0.15.8741-1_1.0.1" - 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_4_8770_1 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.4.8770-1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_4_8770_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.4.8770-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_4_8770_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.4.8770-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_6_8796_1 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.6.8796-1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_6_8796_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.6.8796-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_6_8796_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.6.8796-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_7_8810_1 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.7.8810-1" - name: RELATED_IMAGE_AGENT_IMAGE_108_0_7_8810_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:108.0.7.8810-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_108_0_7_8810_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:108.0.7.8810-1_1.0.1" - 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_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_33_7866_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.33.7866-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_34_7888_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.34.7888-1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_34_7888_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.34.7888-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_34_7888_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.34.7888-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_35_7911_1 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.35.7911-1" - name: RELATED_IMAGE_AGENT_IMAGE_12_0_35_7911_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:12.0.35.7911-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_12_0_35_7911_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:12.0.35.7911-1_1.0.1" - name: RELATED_IMAGE_AGENT_IMAGE_13_34_0_9465_1 value: "quay.io/mongodb/mongodb-agent-ubi:13.34.0.9465-1" - name: RELATED_IMAGE_AGENT_IMAGE_13_34_0_9465_1_1_0_0 value: "quay.io/mongodb/mongodb-agent-ubi:13.34.0.9465-1_1.0.0" + - name: RELATED_IMAGE_AGENT_IMAGE_13_34_0_9465_1_1_0_1 + value: "quay.io/mongodb/mongodb-agent-ubi:13.34.0.9465-1_1.0.1" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_25 value: "quay.io/mongodb/mongodb-enterprise-ops-manager-ubi:6.0.25" - name: RELATED_IMAGE_OPS_MANAGER_IMAGE_REPOSITORY_6_0_26 diff --git a/public/mongodb-kubernetes.yaml b/public/mongodb-kubernetes.yaml index cb1f3f4c8..15d1c2451 100644 --- a/public/mongodb-kubernetes.yaml +++ b/public/mongodb-kubernetes.yaml @@ -282,7 +282,7 @@ spec: runAsUser: 2000 containers: - name: mongodb-kubernetes-operator - image: "quay.io/mongodb/mongodb-kubernetes:1.0.0" + image: "quay.io/mongodb/mongodb-kubernetes:1.0.1" imagePullPolicy: Always args: - -watch-resource=mongodb @@ -326,21 +326,21 @@ spec: - name: INIT_DATABASE_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-database - name: INIT_DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 - name: DATABASE_VERSION - value: 1.0.0 + value: 1.0.1 # 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-kubernetes-init-ops-manager - name: INIT_OPS_MANAGER_VERSION - value: 1.0.0 + value: 1.0.1 # AppDB - name: INIT_APPDB_IMAGE_REPOSITORY value: quay.io/mongodb/mongodb-kubernetes-init-appdb - name: INIT_APPDB_VERSION - value: 1.0.0 + value: 1.0.1 - name: OPS_MANAGER_IMAGE_PULL_POLICY value: Always - name: AGENT_IMAGE diff --git a/release.json b/release.json index b92c16730..41fbe4790 100644 --- a/release.json +++ b/release.json @@ -2,11 +2,11 @@ "mongodbToolsBundle": { "ubi": "mongodb-database-tools-rhel88-x86_64-100.12.0.tgz" }, - "mongodbOperator": "1.0.0", - "initDatabaseVersion": "1.0.0", - "initOpsManagerVersion": "1.0.0", - "initAppDbVersion": "1.0.0", - "databaseImageVersion": "1.0.0", + "mongodbOperator": "1.0.1", + "initDatabaseVersion": "1.0.1", + "initOpsManagerVersion": "1.0.1", + "initAppDbVersion": "1.0.1", + "databaseImageVersion": "1.0.1", "agentVersion": "108.0.2.8729-1", "openshift": { "minimumSupportedVersion": "4.6" @@ -58,7 +58,8 @@ "Description": "We support 3 last versions, see https://wiki.corp.mongodb.com/display/MMS/Kubernetes+Operator+Support+Policy", "ssdlc_name": "MongoDB Kubernetes Kubernetes Operator", "versions": [ - "1.0.0" + "1.0.0", + "1.0.1" ], "variants": [ "ubi" @@ -146,7 +147,8 @@ "Description": "The lowest version corresponds to the lowest supported Operator version, see https://wiki.corp.mongodb.com/display/MMS/Kubernetes+Operator+Support+Policy", "ssdlc_name": "MongoDB Kubernetes Kubernetes Operator Init Ops Manager", "versions": [ - "1.0.0" + "1.0.0", + "1.0.1" ], "variants": [ "ubi" @@ -156,7 +158,8 @@ "Description": "The lowest version corresponds to the lowest supported Operator version, see https://wiki.corp.mongodb.com/display/MMS/Kubernetes+Operator+Support+Policy", "ssdlc_name": "MongoDB Kubernetes Kubernetes Operator Init Database", "versions": [ - "1.0.0" + "1.0.0", + "1.0.1" ], "variants": [ "ubi" @@ -166,7 +169,8 @@ "Description": "The lowest version corresponds to the lowest supported Operator version, see https://wiki.corp.mongodb.com/display/MMS/Kubernetes+Operator+Support+Policy", "ssdlc_name": "MongoDB Kubernetes Kubernetes Operator Init AppDB", "versions": [ - "1.0.0" + "1.0.0", + "1.0.1" ], "variants": [ "ubi" @@ -176,7 +180,8 @@ "Description": "The lowest version corresponds to the lowest supported Operator version, see https://wiki.corp.mongodb.com/display/MMS/Kubernetes+Operator+Support+Policy", "ssdlc_name": "MongoDB Kubernetes Kubernetes Operator Database", "versions": [ - "1.0.0" + "1.0.0", + "1.0.1" ], "variants": [ "ubi" From dbd50a9b519900330b3a2de8135a5f2a56f8bb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= <6159874+MaciejKaras@users.noreply.github.com> Date: Tue, 13 May 2025 11:45:04 +0200 Subject: [PATCH 2/5] Add missing e2e_smoke_release context (#106) # Summary Add missing `e2e_smoke_release` and `e2e_static_smoke_release` context. Previous error: ```(!!) Cannot switch context: File scripts/dev/contexts/e2e_static_smoke_release does not exist.``` ## Proof of Work https://spruce.mongodb.com/version/68224ca9feee0e0007c41c3c/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC ## Checklist - [ ] Have you linked a jira ticket and/or is the ticket in the title? - [ ] Have you checked whether your jira ticket required DOCSP changes? - [ ] Have you checked for release_note changes? ## Reminder (Please remove this when merging) - Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible - Our Short Guide for PRs: [Link](https://docs.google.com/document/d/1T93KUtdvONq43vfTfUt8l92uo4e4SEEvFbIEKOxGr44/edit?tab=t.0) - Remember the following Communication Standards - use comment prefixes for clarity: * **blocking**: Must be addressed before approval. * **follow-up**: Can be addressed in a later PR or ticket. * **q**: Clarifying question. * **nit**: Non-blocking suggestions. * **note**: Side-note, non-actionable. Example: Praise * --> no prefix is considered a question --------- Co-authored-by: Nam Nguyen --- scripts/dev/contexts/e2e_smoke_release | 29 +++++++++++++++++ scripts/dev/contexts/e2e_static_smoke_release | 32 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 scripts/dev/contexts/e2e_smoke_release create mode 100644 scripts/dev/contexts/e2e_static_smoke_release diff --git a/scripts/dev/contexts/e2e_smoke_release b/scripts/dev/contexts/e2e_smoke_release new file mode 100644 index 000000000..17687d2fc --- /dev/null +++ b/scripts/dev/contexts/e2e_smoke_release @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +set -Eeou pipefail + +script_name=$(readlink -f "${BASH_SOURCE[0]}") +script_dir=$(dirname "${script_name}") + +source "${script_dir}/root-context" +source "${script_dir}/variables/om70" + +export DATABASE_REGISTRY="${QUAY_REGISTRY}" +export APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPERATOR_REGISTRY="${QUAY_REGISTRY}" +export INIT_IMAGES_REGISTRY="${QUAY_REGISTRY}" +export INIT_APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_DATABASE_REGISTRY="${QUAY_REGISTRY}" +# Since we're sourcing this as an initial step, the jq might not be there. That's why we need bash magic here. +OPERATOR_VERSION="$(grep -o '"mongodbOperator": "[^"]*' release.json | grep -o '[^"]*$')" +export OPERATOR_VERSION +INIT_DATABASE_VERSION="$(grep -o '"initDatabaseVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_DATABASE_VERSION +INIT_APPDB_VERSION="$(grep -o '"initAppDbVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_APPDB_VERSION +INIT_OPS_MANAGER_VERSION="$(grep -o '"initOpsManagerVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_OPS_MANAGER_VERSION +DATABASE_VERSION="$(grep -o '"databaseImageVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export DATABASE_VERSION diff --git a/scripts/dev/contexts/e2e_static_smoke_release b/scripts/dev/contexts/e2e_static_smoke_release new file mode 100644 index 000000000..91aed5316 --- /dev/null +++ b/scripts/dev/contexts/e2e_static_smoke_release @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -Eeou pipefail + +script_name=$(readlink -f "${BASH_SOURCE[0]}") +script_dir=$(dirname "${script_name}") + +source "${script_dir}/root-context" +source "${script_dir}/variables/om70" + +export DATABASE_REGISTRY="${QUAY_REGISTRY}" +export APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPERATOR_REGISTRY="${QUAY_REGISTRY}" +export INIT_IMAGES_REGISTRY="${QUAY_REGISTRY}" +export INIT_APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_DATABASE_REGISTRY="${QUAY_REGISTRY}" +# Since we're sourcing this as an initial step, the jq might not be there. That's why we need bash magic here. +OPERATOR_VERSION="$(grep -o '"mongodbOperator": "[^"]*' release.json | grep -o '[^"]*$')" +export OPERATOR_VERSION +INIT_DATABASE_VERSION="$(grep -o '"initDatabaseVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_DATABASE_VERSION +INIT_APPDB_VERSION="$(grep -o '"initAppDbVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_APPDB_VERSION +INIT_OPS_MANAGER_VERSION="$(grep -o '"initOpsManagerVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_OPS_MANAGER_VERSION +DATABASE_VERSION="$(grep -o '"databaseImageVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export DATABASE_VERSION +export MDB_DEFAULT_ARCHITECTURE=static +# For static smoke tests we need the previous MDB version to have a ubi9 binary +export CUSTOM_MDB_PREV_VERSION=6.0.5 From 5a558b310628cd8a28afb39eb2d8b9be3a0fbb54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= <6159874+MaciejKaras@users.noreply.github.com> Date: Tue, 13 May 2025 13:23:06 +0200 Subject: [PATCH 3/5] Sync dockerfiles after taging 1.0.1 (#111) # Summary Sync dockerfiles after release of `1.0.1` version ## Proof of Work Not needed. ## Checklist - [ ] Have you linked a jira ticket and/or is the ticket in the title? - [ ] Have you checked whether your jira ticket required DOCSP changes? - [ ] Have you checked for release_note changes? ## Reminder (Please remove this when merging) - Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible - Our Short Guide for PRs: [Link](https://docs.google.com/document/d/1T93KUtdvONq43vfTfUt8l92uo4e4SEEvFbIEKOxGr44/edit?tab=t.0) - Remember the following Communication Standards - use comment prefixes for clarity: * **blocking**: Must be addressed before approval. * **follow-up**: Can be addressed in a later PR or ticket. * **q**: Clarifying question. * **nit**: Non-blocking suggestions. * **note**: Side-note, non-actionable. Example: Praise * --> no prefix is considered a question --- .../107.0.13.8702-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../107.0.15.8741-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../108.0.4.8770-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../108.0.6.8796-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../108.0.7.8810-1/ubi/Dockerfile | 60 +++++++++++++ .../108.0.7.8810-1_1.0.0/ubi/Dockerfile | 64 ++++++++++++++ .../108.0.7.8810-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../12.0.33.7866-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../12.0.34.7888-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../12.0.35.7911-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../13.34.0.9465-1/ubi/Dockerfile | 60 +++++++++++++ .../13.34.0.9465-1_1.0.0/ubi/Dockerfile | 64 ++++++++++++++ .../13.34.0.9465-1_1.0.1/ubi/Dockerfile | 64 ++++++++++++++ .../8.0.7/ubi/Dockerfile | 84 ++++++++++++++++++ .../1.0.1/ubi/Dockerfile | 87 +++++++++++++++++++ .../1.0.1/ubi/Dockerfile | 35 ++++++++ .../1.0.1/ubi/Dockerfile | 34 ++++++++ .../1.0.1/ubi/Dockerfile | 26 ++++++ .../mongodb-kubernetes/1.0.1/ubi/Dockerfile | 38 ++++++++ 19 files changed, 1128 insertions(+) create mode 100644 public/dockerfiles/mongodb-agent/107.0.13.8702-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/107.0.15.8741-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/108.0.4.8770-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/108.0.6.8796-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/108.0.7.8810-1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.0/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/12.0.33.7866-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/12.0.34.7888-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/12.0.35.7911-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/13.34.0.9465-1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.0/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-enterprise-ops-manager/8.0.7/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-kubernetes-database/1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-kubernetes-init-appdb/1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-kubernetes-init-database/1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-kubernetes-init-ops-manager/1.0.1/ubi/Dockerfile create mode 100644 public/dockerfiles/mongodb-kubernetes/1.0.1/ubi/Dockerfile diff --git a/public/dockerfiles/mongodb-agent/107.0.13.8702-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/107.0.13.8702-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/107.0.13.8702-1_1.0.1/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/public/dockerfiles/mongodb-agent/107.0.15.8741-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/107.0.15.8741-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/107.0.15.8741-1_1.0.1/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/public/dockerfiles/mongodb-agent/108.0.4.8770-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/108.0.4.8770-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/108.0.4.8770-1_1.0.1/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/public/dockerfiles/mongodb-agent/108.0.6.8796-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/108.0.6.8796-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/108.0.6.8796-1_1.0.1/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/public/dockerfiles/mongodb-agent/108.0.7.8810-1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/108.0.7.8810-1/ubi/Dockerfile new file mode 100644 index 000000000..b9f3f0b98 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/108.0.7.8810-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/public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.0/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.0/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.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/public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/108.0.7.8810-1_1.0.1/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/public/dockerfiles/mongodb-agent/12.0.33.7866-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/12.0.33.7866-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/12.0.33.7866-1_1.0.1/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/public/dockerfiles/mongodb-agent/12.0.34.7888-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/12.0.34.7888-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/12.0.34.7888-1_1.0.1/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/public/dockerfiles/mongodb-agent/12.0.35.7911-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/12.0.35.7911-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/12.0.35.7911-1_1.0.1/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/public/dockerfiles/mongodb-agent/13.34.0.9465-1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/13.34.0.9465-1/ubi/Dockerfile new file mode 100644 index 000000000..b9f3f0b98 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/13.34.0.9465-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/public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.0/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.0/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.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/public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..a76994e03 --- /dev/null +++ b/public/dockerfiles/mongodb-agent/13.34.0.9465-1_1.0.1/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/public/dockerfiles/mongodb-enterprise-ops-manager/8.0.7/ubi/Dockerfile b/public/dockerfiles/mongodb-enterprise-ops-manager/8.0.7/ubi/Dockerfile new file mode 100644 index 000000000..717014b97 --- /dev/null +++ b/public/dockerfiles/mongodb-enterprise-ops-manager/8.0.7/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.7" \ + 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.7.500.20250505T1426Z.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/public/dockerfiles/mongodb-kubernetes-database/1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-kubernetes-database/1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..e47eb4aca --- /dev/null +++ b/public/dockerfiles/mongodb-kubernetes-database/1.0.1/ubi/Dockerfile @@ -0,0 +1,87 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi8/ubi-minimal + + + +LABEL name="MongoDB Kubernetes Database" \ + version="1.0.1" \ + summary="MongoDB Kubernetes Database Image" \ + description="MongoDB Kubernetes 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-kubernetes-database /licenses/mongodb-kubernetes-database + + diff --git a/public/dockerfiles/mongodb-kubernetes-init-appdb/1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-kubernetes-init-appdb/1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..d0c5d967a --- /dev/null +++ b/public/dockerfiles/mongodb-kubernetes-init-appdb/1.0.1/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 Kubernetes Init AppDB" \ + version="mongodb-kubernetes-init-appdb-${version}" \ + summary="MongoDB Kubernetes 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/public/dockerfiles/mongodb-kubernetes-init-database/1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-kubernetes-init-database/1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..ecf2e32ae --- /dev/null +++ b/public/dockerfiles/mongodb-kubernetes-init-database/1.0.1/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 Kubernetes Init Database" \ + version="mongodb-kubernetes-init-database-${version}" \ + summary="MongoDB Kubernetes 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/public/dockerfiles/mongodb-kubernetes-init-ops-manager/1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-kubernetes-init-ops-manager/1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..022b7bb87 --- /dev/null +++ b/public/dockerfiles/mongodb-kubernetes-init-ops-manager/1.0.1/ubi/Dockerfile @@ -0,0 +1,26 @@ +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + +LABEL name="MongoDB Kubernetes Ops Manager Init" \ + maintainer="support@mongodb.com" \ + vendor="MongoDB" \ + version="mongodb-kubernetes-init-ops-manager-1.0.1" \ + release="1" \ + summary="MongoDB Kubernetes 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/public/dockerfiles/mongodb-kubernetes/1.0.1/ubi/Dockerfile b/public/dockerfiles/mongodb-kubernetes/1.0.1/ubi/Dockerfile new file mode 100644 index 000000000..6abfba155 --- /dev/null +++ b/public/dockerfiles/mongodb-kubernetes/1.0.1/ubi/Dockerfile @@ -0,0 +1,38 @@ +# +# Base Template Dockerfile for Operator Image. +# + +ARG imagebase +FROM ${imagebase} as base + +FROM registry.access.redhat.com/ubi9/ubi-minimal + + +LABEL name="MongoDB Kubernetes Operator" \ + maintainer="support@mongodb.com" \ + vendor="MongoDB" \ + version="1.0.1" \ + release="1" \ + summary="MongoDB Kubernetes Operator Image" \ + description="MongoDB Kubernetes 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 +RUN microdnf install -y glibc-langpack-en + + + + +COPY --from=base /data/mongodb-kubernetes-operator /usr/local/bin/mongodb-kubernetes-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-kubernetes-operator + + From 5639758aaf7c93b5a3b2656316bbbd7093271cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= <6159874+MaciejKaras@users.noreply.github.com> Date: Wed, 14 May 2025 10:07:41 +0200 Subject: [PATCH 4/5] Missing release notes + goreleaser fix/todo (#107) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Summary Missing release notes + goreleaser fix/todo ## Proof of Work No changes in the code. `goreleaser` was successfully tested during release ## Checklist - [ ] Have you linked a jira ticket and/or is the ticket in the title? - [ ] Have you checked whether your jira ticket required DOCSP changes? - [ ] Have you checked for release_note changes? ## Reminder (Please remove this when merging) - Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible - Our Short Guide for PRs: [Link](https://docs.google.com/document/d/1T93KUtdvONq43vfTfUt8l92uo4e4SEEvFbIEKOxGr44/edit?tab=t.0) - Remember the following Communication Standards - use comment prefixes for clarity: * **blocking**: Must be addressed before approval. * **follow-up**: Can be addressed in a later PR or ticket. * **q**: Clarifying question. * **nit**: Non-blocking suggestions. * **note**: Side-note, non-actionable. Example: Praise * --> no prefix is considered a question --------- Co-authored-by: Simon Bäumer --- RELEASE_NOTES.md | 6 ++++++ public/.evergreen.yml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 552d9509a..02d6e75a3 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -13,6 +13,12 @@ * TLS must be disabled in MongoDB (communication between mongot and mongod is in plaintext for now). +# MCK 1.0.1 Release Notes + + +## Bug Fixes +* Fix missing agent images in the operator bundle in OpenShift catalog and operatorhub.io. +* **MongoDBCommunity** resource was missing from watched list in Helm Charts # MCK 1.0.0 Release Notes diff --git a/public/.evergreen.yml b/public/.evergreen.yml index 404128095..5d89f557d 100644 --- a/public/.evergreen.yml +++ b/public/.evergreen.yml @@ -61,6 +61,7 @@ functions: <<: *go_env MACOS_NOTARY_KEY: ${macos_notary_keyid} MACOS_NOTARY_SECRET: ${macos_notary_secret} + # TODO: triggered_by_git_tag is not set, because we run the task manually GORELEASER_CURRENT_TAG: ${triggered_by_git_tag} # shell.exec EVG Task doesn't have add_to_path, so we need to explicitly add the path export below. script: | @@ -68,7 +69,7 @@ functions: export PATH=$GOROOT/bin:$PATH export GITHUB_TOKEN=${generated_token} - ${workdir}/goreleaser release --rm-dist + ${workdir}/goreleaser release --clean tasks: - name: package_goreleaser From f01d2d11e522311ed7acf80d342be1b46183b885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= Date: Wed, 14 May 2025 12:55:02 +0200 Subject: [PATCH 5/5] Added CLOUDP-318631 reference in TODO comment --- public/.evergreen.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/.evergreen.yml b/public/.evergreen.yml index 5d89f557d..43852dfe6 100644 --- a/public/.evergreen.yml +++ b/public/.evergreen.yml @@ -61,7 +61,7 @@ functions: <<: *go_env MACOS_NOTARY_KEY: ${macos_notary_keyid} MACOS_NOTARY_SECRET: ${macos_notary_secret} - # TODO: triggered_by_git_tag is not set, because we run the task manually + # TODO: CLOUDP-318631 triggered_by_git_tag is not set, because we run the task manually GORELEASER_CURRENT_TAG: ${triggered_by_git_tag} # shell.exec EVG Task doesn't have add_to_path, so we need to explicitly add the path export below. script: |