File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ ARGS+=" -e REQUIRE_API_VERSION=$REQUIRE_API_VERSION"
66
66
ARGS+=" -e DISABLE_TEST_COMMANDS=$DISABLE_TEST_COMMANDS "
67
67
ARGS+=" -e MONGODB_DOWNLOAD_URL=$MONGODB_DOWNLOAD_URL "
68
68
69
+ # Use the ECR pull-through registry for Ubuntu images when running in CI.
70
+ if [[ " $IMAGE " =~ ^ubuntu.* ]] && [[ -n " ${CI:- } " ]]; then
71
+ ARGS+=" -e IMAGE_NAME=901841024863.dkr.ecr.us-east-1.amazonaws.com/dockerhub/library/$IMAGE "
72
+ fi
73
+
69
74
# Expose the required ports.
70
75
if [ " $TOPOLOGY " == " server" ]; then
71
76
ARGS+=" -p 27017:27017"
Original file line number Diff line number Diff line change 1
- FROM 901841024863.dkr.ecr.us-east-1.amazonaws.com/dockerhub/library/ubuntu:20.04
1
+ ARG IMAGE_NAME=ubuntu:20.04
2
+ FROM $IMAGE_NAME
2
3
3
4
RUN export DEBIAN_FRONTEND=noninteractive && \
4
5
apt-get -qq update && apt-get -qq -y install --no-install-recommends \
You can’t perform that action at this time.
0 commit comments