Skip to content

Commit d428046

Browse files
committed
Use artifactory mirror as docker registry
1 parent 117c32f commit d428046

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.evergreen/start-atlas-cloud-cluster.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,16 @@ ATLAS_CLUSTER_NAME="${_ATLAS_CLOUD_TEST_CLUSTER_NAME:-$DEFAULT_ATLAS_CLOUD_TEST_
6161
ATLAS_TEST_DB_USERNAME="testuser-$RUN_ID"
6262
ATLAS_TEST_DB_PASSWORD="$(head -c 32 /dev/urandom | base64 | tr -dc 'a-zA-Z0-9')"
6363

64+
DOCKER_REGISTRY="artifactory.corp.mongodb.com/dockerhub/library"
65+
6466
function atlascli() {
6567
docker run \
6668
-e MCLI_PUBLIC_API_KEY \
6769
-e MCLI_PRIVATE_API_KEY \
6870
-e MCLI_ORG_ID \
6971
-e MCLI_PROJECT_ID \
7072
-e MCLI_OPS_MANAGER_URL \
71-
mongodb/atlas atlas $@
73+
$DOCKER_REGISTRY/mongodb/atlas atlas $@
7274
}
7375

7476
cleanup() {

.evergreen/start-atlas-local.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ cleanup() {
2020
trap cleanup EXIT
2121

2222
# Image name with version
23-
IMAGE_NAME="mongodb/mongodb-atlas-local:$ATLAS_LOCAL_VERSION"
23+
DOCKER_REGISTRY="artifactory.corp.mongodb.com/dockerhub/library"
24+
IMAGE_NAME="$DOCKER_REGISTRY/mongodb/mongodb-atlas-local:$ATLAS_LOCAL_VERSION"
2425
echo docker run --rm --name $CONTAINER_NAME -d -e DO_NOT_TRACK=1 -P "$IMAGE_NAME"
2526

2627
# Start the Docker container

0 commit comments

Comments
 (0)