Skip to content

Commit e6e2696

Browse files
authored
Use Amazon ECR to obtain Docker base images (#1270)
1 parent 2bfd2a9 commit e6e2696

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

extras/docker/alpine3.19/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DO NOT EDIT THIS FILE DIRECTLY
22
# This file was auto generated from the template file Dockerfile.j2 using the generate.py script
33

4-
FROM alpine:3.19 AS builder
4+
FROM public.ecr.aws/docker/library/alpine:3.19 AS builder
55

66
ARG MONGOCXX_VERSION=3.10.1
77
ARG MONGOC_VERSION=1.27.1
@@ -60,7 +60,7 @@ RUN wget https://github.com/mongodb/mongo-cxx-driver/archive/refs/tags/r${MONGOC
6060
cmake --build mongocxx-build --config RelWithDebInfo && \
6161
cmake --install mongocxx-build --config RelWithDebInfo --prefix /opt/mongocxx
6262

63-
FROM alpine:3.19
63+
FROM public.ecr.aws/docker/library/alpine:3.19
6464

6565
RUN apk update && apk upgrade && apk add --no-cache openssl3 libstdc++ libc6-compat
6666

extras/docker/bookworm/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DO NOT EDIT THIS FILE DIRECTLY
22
# This file was auto generated from the template file Dockerfile.j2 using the generate.py script
33

4-
FROM debian:12-slim AS builder
4+
FROM public.ecr.aws/docker/library/debian:12-slim AS builder
55

66
ARG MONGOCXX_VERSION=3.10.1
77
ARG MONGOC_VERSION=1.27.1
@@ -60,7 +60,7 @@ RUN wget https://github.com/mongodb/mongo-cxx-driver/archive/refs/tags/r${MONGOC
6060
cmake --build mongocxx-build --config RelWithDebInfo && \
6161
cmake --install mongocxx-build --config RelWithDebInfo --prefix /opt/mongocxx
6262

63-
FROM debian:12-slim
63+
FROM public.ecr.aws/docker/library/debian:12-slim
6464

6565
RUN apt update && apt upgrade -y && apt install -y libssl3 && rm -rf /var/lib/apt/lists/*
6666

extras/docker/generate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def render_template(template_filename, context):
3030
"redhat-ubi-9.4",
3131
]
3232
base_image = {
33-
"alpine3.19": "alpine:3.19",
34-
"bookworm": "debian:12-slim",
35-
"noble": "ubuntu:24.04",
33+
"alpine3.19": "public.ecr.aws/docker/library/alpine:3.19",
34+
"bookworm": "public.ecr.aws/docker/library/debian:12-slim",
35+
"noble": "public.ecr.aws/docker/library/ubuntu:24.04",
3636
"redhat-ubi-9.4": "registry.access.redhat.com/ubi9/ubi-minimal:9.4",
3737
}
3838
test_dependency_install_command = {

extras/docker/noble/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DO NOT EDIT THIS FILE DIRECTLY
22
# This file was auto generated from the template file Dockerfile.j2 using the generate.py script
33

4-
FROM ubuntu:24.04 AS builder
4+
FROM public.ecr.aws/docker/library/ubuntu:24.04 AS builder
55

66
ARG MONGOCXX_VERSION=3.10.1
77
ARG MONGOC_VERSION=1.27.1
@@ -60,7 +60,7 @@ RUN wget https://github.com/mongodb/mongo-cxx-driver/archive/refs/tags/r${MONGOC
6060
cmake --build mongocxx-build --config RelWithDebInfo && \
6161
cmake --install mongocxx-build --config RelWithDebInfo --prefix /opt/mongocxx
6262

63-
FROM ubuntu:24.04
63+
FROM public.ecr.aws/docker/library/ubuntu:24.04
6464

6565
RUN apt update && apt upgrade -y && apt install -y libssl3 && rm -rf /var/lib/apt/lists/*
6666

0 commit comments

Comments
 (0)