Skip to content

Use Amazon ECR to obtain Docker base images #1270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extras/docker/alpine3.19/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions extras/docker/bookworm/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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/*

Expand Down
6 changes: 3 additions & 3 deletions extras/docker/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions extras/docker/noble/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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/*

Expand Down