From 637a50bea401ac81385f6a165d251df1ea646912 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 14 Jan 2026 10:14:39 -0600 Subject: [PATCH] INTPYTHON-876 Add environment variable override for mongot-community image --- .evergreen/mongodb-community-search/docker-compose.yml | 6 +++--- .evergreen/mongodb-community-search/start-services.sh | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.evergreen/mongodb-community-search/docker-compose.yml b/.evergreen/mongodb-community-search/docker-compose.yml index 6f06075..f1d46cc 100644 --- a/.evergreen/mongodb-community-search/docker-compose.yml +++ b/.evergreen/mongodb-community-search/docker-compose.yml @@ -23,11 +23,11 @@ services: # The public facing docs have the publicly available mongot image but here # we use the image published to the internal registry. - # Note that you first need to login to the registry by following the docs + # Note that to use the internal releases you first need to login to the registry by following the docs # here: # https://github.com/10gen/mongot/blob/master/docs/development/docker.md#authenticate-with-ecr - # image: mongodb/mongodb-community-search:latest - image: 901841024863.dkr.ecr.us-east-1.amazonaws.com/mongot-community/rapid-releases:latest + # image: + image: ${MONGOT_IMAGE:-mongodb/mongodb-community-search:latest} networks: - search-community volumes: diff --git a/.evergreen/mongodb-community-search/start-services.sh b/.evergreen/mongodb-community-search/start-services.sh index 9cd7498..dbc7548 100644 --- a/.evergreen/mongodb-community-search/start-services.sh +++ b/.evergreen/mongodb-community-search/start-services.sh @@ -50,6 +50,10 @@ fi docker network create search-community || true docker compose down || true + +if [ -n "${USE_INTERNAL_MONGOT:-}" ]; then + export MONGOT_IMAGE="901841024863.dkr.ecr.us-east-1.amazonaws.com/mongot-community/rapid-releases:latest" +fi docker compose up -d # Wait for the healthcheck