diff --git a/extras/docker/alpine3.19/Dockerfile b/extras/docker/alpine3.19/Dockerfile index 2f63f4cf86..4346d3323b 100644 --- a/extras/docker/alpine3.19/Dockerfile +++ b/extras/docker/alpine3.19/Dockerfile @@ -1,7 +1,7 @@ # DO NOT EDIT THIS FILE DIRECTLY # This file was auto generated from the template file Dockerfile.j2 using the generate.py script -FROM alpine:3.19 AS builder +FROM public.ecr.aws/docker/library/alpine:3.19 AS builder ARG MONGOCXX_VERSION=3.10.1 ARG MONGOC_VERSION=1.27.1 @@ -60,7 +60,7 @@ RUN wget https://github.com/mongodb/mongo-cxx-driver/archive/refs/tags/r${MONGOC cmake --build mongocxx-build --config RelWithDebInfo && \ cmake --install mongocxx-build --config RelWithDebInfo --prefix /opt/mongocxx -FROM alpine:3.19 +FROM public.ecr.aws/docker/library/alpine:3.19 RUN apk update && apk upgrade && apk add --no-cache openssl3 libstdc++ libc6-compat diff --git a/extras/docker/bookworm/Dockerfile b/extras/docker/bookworm/Dockerfile index 9e1471a21c..cba438944f 100644 --- a/extras/docker/bookworm/Dockerfile +++ b/extras/docker/bookworm/Dockerfile @@ -1,7 +1,7 @@ # DO NOT EDIT THIS FILE DIRECTLY # This file was auto generated from the template file Dockerfile.j2 using the generate.py script -FROM debian:12-slim AS builder +FROM public.ecr.aws/docker/library/debian:12-slim AS builder ARG MONGOCXX_VERSION=3.10.1 ARG MONGOC_VERSION=1.27.1 @@ -60,7 +60,7 @@ RUN wget https://github.com/mongodb/mongo-cxx-driver/archive/refs/tags/r${MONGOC cmake --build mongocxx-build --config RelWithDebInfo && \ cmake --install mongocxx-build --config RelWithDebInfo --prefix /opt/mongocxx -FROM debian:12-slim +FROM public.ecr.aws/docker/library/debian:12-slim RUN apt update && apt upgrade -y && apt install -y libssl3 && rm -rf /var/lib/apt/lists/* diff --git a/extras/docker/generate.py b/extras/docker/generate.py index e00a755a57..adb26681f3 100755 --- a/extras/docker/generate.py +++ b/extras/docker/generate.py @@ -30,9 +30,9 @@ def render_template(template_filename, context): "redhat-ubi-9.4", ] base_image = { - "alpine3.19": "alpine:3.19", - "bookworm": "debian:12-slim", - "noble": "ubuntu:24.04", + "alpine3.19": "public.ecr.aws/docker/library/alpine:3.19", + "bookworm": "public.ecr.aws/docker/library/debian:12-slim", + "noble": "public.ecr.aws/docker/library/ubuntu:24.04", "redhat-ubi-9.4": "registry.access.redhat.com/ubi9/ubi-minimal:9.4", } test_dependency_install_command = { diff --git a/extras/docker/noble/Dockerfile b/extras/docker/noble/Dockerfile index 7979bcb9b9..7b1b1f36f5 100644 --- a/extras/docker/noble/Dockerfile +++ b/extras/docker/noble/Dockerfile @@ -1,7 +1,7 @@ # DO NOT EDIT THIS FILE DIRECTLY # This file was auto generated from the template file Dockerfile.j2 using the generate.py script -FROM ubuntu:24.04 AS builder +FROM public.ecr.aws/docker/library/ubuntu:24.04 AS builder ARG MONGOCXX_VERSION=3.10.1 ARG MONGOC_VERSION=1.27.1 @@ -60,7 +60,7 @@ RUN wget https://github.com/mongodb/mongo-cxx-driver/archive/refs/tags/r${MONGOC cmake --build mongocxx-build --config RelWithDebInfo && \ cmake --install mongocxx-build --config RelWithDebInfo --prefix /opt/mongocxx -FROM ubuntu:24.04 +FROM public.ecr.aws/docker/library/ubuntu:24.04 RUN apt update && apt upgrade -y && apt install -y libssl3 && rm -rf /var/lib/apt/lists/*