Skip to content

Commit 7010e81

Browse files
committed
Merge branch 'multi-arch-pipeline-combined' of github.com:mongodb/mongodb-kubernetes into multi-arch-pipeline-combined
2 parents 035858f + 9bec7ef commit 7010e81

File tree

10 files changed

+35
-35
lines changed

10 files changed

+35
-35
lines changed

.evergreen-functions.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -543,15 +543,6 @@ functions:
543543

544544
pipeline:
545545
- *switch_context
546-
- command: shell.exec
547-
type: setup
548-
params:
549-
shell: bash
550-
script: |
551-
# Docker Hub workaround
552-
# docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
553-
docker buildx create --driver=docker-container --driver-opt=image=268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/moby/buildkit:buildx-stable-1 --use
554-
docker buildx inspect --bootstrap
555546
- command: subprocess.exec
556547
retry_on_failure: true
557548
type: setup

.evergreen.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ buildvariants:
14661466
run_on:
14671467
- rhel9-power-small
14681468
- rhel9-power-large
1469-
allowed_requesters: [ "github_tag" ]
1469+
allowed_requesters: [ "patch", "github_tag" ]
14701470
depends_on:
14711471
- name: build_operator_ubi
14721472
variant: init_test_run
@@ -1489,7 +1489,7 @@ buildvariants:
14891489
run_on:
14901490
- rhel9-zseries-small
14911491
- rhel9-zseries-large
1492-
allowed_requesters: [ "github_tag" ]
1492+
allowed_requesters: [ "patch", "github_tag" ]
14931493
depends_on:
14941494
- name: build_operator_ubi
14951495
variant: init_test_run

build_info.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"dockerfile-path": "docker/mongodb-kubernetes-operator/Dockerfile.atomic",
55
"patch": {
66
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes"],
7-
"platforms": [
8-
"linux/amd64"
7+
"platforms": [
8+
"linux/amd64"
99
]
1010
},
1111
"staging": {
@@ -49,7 +49,7 @@
4949
"dockerfile-path": "docker/mongodb-kubernetes-init-database/Dockerfile.atomic",
5050
"patch": {
5151
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes-init-database"],
52-
"platforms": [
52+
"platforms": [
5353
"linux/amd64"
5454
]
5555
},
@@ -78,7 +78,7 @@
7878
"dockerfile-path": "docker/mongodb-kubernetes-init-appdb/Dockerfile.atomic",
7979
"patch": {
8080
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes-init-appdb"],
81-
"platforms": [
81+
"platforms": [
8282
"linux/amd64"
8383
]
8484
},
@@ -107,7 +107,7 @@
107107
"dockerfile-path": "docker/mongodb-kubernetes-init-ops-manager/Dockerfile.atomic",
108108
"patch": {
109109
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes-init-ops-manager"],
110-
"platforms": [
110+
"platforms": [
111111
"linux/amd64"
112112
]
113113
},
@@ -130,8 +130,8 @@
130130
"dockerfile-path": "docker/mongodb-kubernetes-database/Dockerfile.atomic",
131131
"patch": {
132132
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes-database"],
133-
"platforms": [
134-
"linux/amd64"
133+
"platforms": [
134+
"linux/amd64"
135135
]
136136
},
137137
"staging": {
@@ -190,7 +190,7 @@
190190
"dockerfile-path": "docker/mongodb-kubernetes-readinessprobe/Dockerfile.atomic",
191191
"patch": {
192192
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes-readinessprobe"],
193-
"platforms": [
193+
"platforms": [
194194
"linux/amd64"
195195
]
196196
},
@@ -218,7 +218,7 @@
218218
"dockerfile-path": "docker/mongodb-kubernetes-upgrade-hook/Dockerfile.atomic",
219219
"patch": {
220220
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-kubernetes-operator-version-upgrade-post-start-hook"],
221-
"platforms": [
221+
"platforms": [
222222
"linux/amd64"
223223
]
224224
},
@@ -244,8 +244,8 @@
244244
"dockerfile-path": "docker/mongodb-agent/Dockerfile.atomic",
245245
"patch": {
246246
"repositories": ["268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-agent-ubi"],
247-
"platforms": [
248-
"linux/amd64"
247+
"platforms": [
248+
"linux/amd64"
249249
]
250250
},
251251
"staging": {

docker/mongodb-agent/Dockerfile.atomic

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal
5555

5656
# Replace libcurl-minimal and curl-minimal with the full versions
5757
# https://bugzilla.redhat.com/show_bug.cgi?id=1994521
58-
RUN microdnf install -y libssh libpsl libbrotli
58+
RUN microdnf install -y libssh libpsl libbrotli \
59+
&& microdnf download curl libcurl \
60+
&& rpm -Uvh --nodeps --replacefiles "*curl*$( uname -i ).rpm" \
61+
&& microdnf remove -y libcurl-minimal curl-minimal
62+
5963
RUN microdnf install -y --disableplugin=subscription-manager --setopt=install_weak_deps=0 nss_wrapper
6064
# Copy-pasted from https://www.mongodb.com/docs/manual/tutorial/install-mongodb-enterprise-on-red-hat-tarball/
6165
RUN microdnf install -y --disableplugin=subscription-manager \

docker/mongodb-kubernetes-init-ops-manager/Dockerfile.atomic

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
FROM public.ecr.aws/docker/library/golang:1.24 AS base
1+
FROM --platform=${BUILDPLATFORM} public.ecr.aws/docker/library/golang:1.24 AS base
22

33
WORKDIR /go/src
44
ADD ./docker/mongodb-kubernetes-init-ops-manager .
5-
RUN CGO_ENABLED=0 go build -a -buildvcs=false -o /data/scripts/mmsconfiguration ./mmsconfiguration
6-
RUN CGO_ENABLED=0 go build -a -buildvcs=false -o /data/scripts/backup-daemon-readiness-probe ./backupdaemon_readinessprobe/
5+
6+
ARG TARGETOS
7+
ARG TARGETARCH
8+
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -buildvcs=false -o /data/scripts/mmsconfiguration ./mmsconfiguration
9+
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -buildvcs=false -o /data/scripts/backup-daemon-readiness-probe ./backupdaemon_readinessprobe/
710

811
COPY ./docker/mongodb-kubernetes-init-ops-manager/scripts/docker-entry-point.sh /data/scripts/
912
COPY ./docker/mongodb-kubernetes-init-ops-manager/scripts/backup-daemon-liveness-probe.sh /data/scripts/

scripts/dev/contexts/e2e_smoke_arm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export OPS_MANAGER_REGISTRY=268558157000.dkr.ecr.us-east-1.amazonaws.com/dev
1414
CUSTOM_OM_VERSION=$(grep -E "^\s*-\s*&ops_manager_70_latest\s+(\S+)\s+#" <"${script_dir}"/../../../.evergreen.yml | awk '{print $3}')
1515
export CUSTOM_OM_VERSION
1616

17-
export CUSTOM_MDB_VERSION=6.0.5-ent
17+
export CUSTOM_MDB_VERSION=8.0.12-ent
1818
export KUBE_ENVIRONMENT_NAME=kind
1919
export CLUSTER_TYPE=kind

scripts/dev/contexts/e2e_static_smoke_ibm_power

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export OPS_MANAGER_REGISTRY=268558157000.dkr.ecr.us-east-1.amazonaws.com/dev
1313
CUSTOM_OM_VERSION=$(grep -E "^\s*-\s*&ops_manager_70_latest\s+(\S+)\s+#" <"${script_dir}"/../../../.evergreen.yml | awk '{print $3}')
1414
export CUSTOM_OM_VERSION
1515
export MDB_DEFAULT_ARCHITECTURE=static
16-
# MDB doesn't support power for 7.x.x on RHEL9
17-
export CUSTOM_MDB_VERSION=8.0.12
16+
# MDB supports ppc64le on RHEL9 only from 8.0.12 onwards
17+
export CUSTOM_MDB_VERSION=8.0.12-ent

scripts/dev/contexts/e2e_static_smoke_ibm_z

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export OPS_MANAGER_REGISTRY=268558157000.dkr.ecr.us-east-1.amazonaws.com/dev
1313
CUSTOM_OM_VERSION=$(grep -E "^\s*-\s*&ops_manager_70_latest\s+(\S+)\s+#" <"${script_dir}"/../../../.evergreen.yml | awk '{print $3}')
1414
export CUSTOM_OM_VERSION
1515
export MDB_DEFAULT_ARCHITECTURE=static
16-
# MDB doesn't fully support s390x for 7.x.x on RHEL9
17-
export CUSTOM_MDB_VERSION=8.0.12
16+
# MDB supports s390x on RHEL9 only from 8.0.12 onwards
17+
export CUSTOM_MDB_VERSION=8.0.12-ent

scripts/dev/contexts/variables/e2e_ibm_smoke_base

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ set -Eeou pipefail
44

55
export ops_manager_version="cloud_qa"
66

7-
export CUSTOM_MDB_VERSION=7.0.22 # we only have ibm static images starting with 7.0.22
7+
export CUSTOM_MDB_VERSION=7.0.22-ent # we only have ibm static images starting with 7.0.22
88
export KUBE_ENVIRONMENT_NAME=minikube
99
export CLUSTER_TYPE=minikube
1010
export CONTAINER_RUNTIME=podman
11-

scripts/evergreen/build_multi_cluster_kubeconfig_creator.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,31 @@ OS=${OS:-$(uname -s | tr '[:upper:]' '[:lower:]')}
1010
ARCH=${ARCH:-$(uname -m | tr '[:upper:]' '[:lower:]')}
1111
if [[ "${ARCH}" == "x86_64" ]]; then
1212
ARCH="amd64"
13+
elif [[ "${ARCH}" == "aarch64" ]]; then
14+
ARCH="arm64"
1315
fi
1416

1517
echo "Building multi cluster kube config creation tool."
1618

1719
project_dir="$(pwd)"
1820
pushd cmd/kubectl-mongodb
19-
GOOS="${OS}" GOARCH="${ARCH}" CGO_ENABLED=0 go build -buildvcs=false -o "${project_dir}/docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator" main.go &
21+
go mod download
2022

2123
GOOS="linux" GOARCH="amd64" CGO_ENABLED=0 go build -buildvcs=false -o "${project_dir}/docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_amd64" main.go &
2224
GOOS="linux" GOARCH="s390x" CGO_ENABLED=0 go build -buildvcs=false -o "${project_dir}/docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_s390x" main.go &
2325
GOOS="linux" GOARCH="ppc64le" CGO_ENABLED=0 go build -buildvcs=false -o "${project_dir}/docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_ppc64le" main.go &
2426
GOOS="linux" GOARCH="arm64" CGO_ENABLED=0 go build -buildvcs=false -o "${project_dir}/docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_arm64" main.go &
2527
wait
2628
popd
27-
chmod +x docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator
2829

2930
# these are used in the dockerfile
3031
chmod +x docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_amd64
3132
chmod +x docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_s390x
3233
chmod +x docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_ppc64le
3334
chmod +x docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_arm64
3435

36+
cp docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator_${ARCH} docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator || true
37+
3538
mkdir -p bin || true
3639
cp docker/mongodb-kubernetes-tests/multi-cluster-kube-config-creator bin/kubectl-mongodb || true
3740
cp bin/kubectl-mongodb "${WORKDIR}/bin/kubectl-mongodb" || true

0 commit comments

Comments
 (0)