build(ci): update base images to public ECR

This commit is contained in:
Gaius 2025-09-30 05:24:22 +00:00
parent 7e6ab3a57c
commit 928b43b13a
3 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,4 @@
FROM rust:1.85.0 AS builder FROM public.ecr.aws/docker/library/rust:1.85.0 AS builder
WORKDIR /app/client WORKDIR /app/client
@ -46,7 +46,7 @@ RUN case "${TARGETPLATFORM}" in \
RUN cargo install tokio-console --version 0.1.13 --locked --root /usr/local RUN cargo install tokio-console --version 0.1.13 --locked --root /usr/local
FROM alpine:3.20 AS health FROM public.ecr.aws/docker/library/alpine:3.20 AS health
ENV GRPC_HEALTH_PROBE_VERSION=v0.4.24 ENV GRPC_HEALTH_PROBE_VERSION=v0.4.24
@ -59,12 +59,12 @@ RUN if [ "$(uname -m)" = "ppc64le" ]; then \
fi && \ fi && \
chmod +x /bin/grpc_health_probe chmod +x /bin/grpc_health_probe
FROM golang:1.24.0-alpine3.20 AS pprof FROM public.ecr.aws/docker/library/golang:1.24.0-alpine3.20 AS pprof
RUN go install github.com/google/pprof@latest RUN go install github.com/google/pprof@latest
RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
FROM debian/debian:bookworm-slim FROM public.ecr.aws/debian/debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends iperf3 linux-libc-dev libc6-dev \ RUN apt-get update && apt-get install -y --no-install-recommends iperf3 linux-libc-dev libc6-dev \
iotop sysstat bash-completion procps apache2-utils ca-certificates binutils fio curl \ iotop sysstat bash-completion procps apache2-utils ca-certificates binutils fio curl \
@ -80,3 +80,4 @@ COPY --from=pprof /go/bin/grpcurl /bin/grpcurl
COPY --from=health /bin/grpc_health_probe /bin/grpc_health_probe COPY --from=health /bin/grpc_health_probe /bin/grpc_health_probe
ENTRYPOINT ["/usr/local/bin/dfdaemon"] ENTRYPOINT ["/usr/local/bin/dfdaemon"]

View File

@ -1,4 +1,4 @@
FROM rust:1.85.0 AS builder FROM public.ecr.aws/docker/library/rust:1.85.0 AS builder
WORKDIR /app/client WORKDIR /app/client
@ -48,7 +48,7 @@ RUN cargo install flamegraph --version 0.6.8 --root /usr/local
RUN cargo install bottom --version 0.11.0 --locked --root /usr/local RUN cargo install bottom --version 0.11.0 --locked --root /usr/local
RUN cargo install tokio-console --version 0.1.13 --locked --root /usr/local RUN cargo install tokio-console --version 0.1.13 --locked --root /usr/local
FROM alpine:3.20 AS health FROM public.ecr.aws/docker/library/alpine:3.20 AS health
ENV GRPC_HEALTH_PROBE_VERSION=v0.4.24 ENV GRPC_HEALTH_PROBE_VERSION=v0.4.24
@ -61,12 +61,12 @@ RUN if [ "$(uname -m)" = "ppc64le" ]; then \
fi && \ fi && \
chmod +x /bin/grpc_health_probe chmod +x /bin/grpc_health_probe
FROM golang:1.24.0-alpine3.20 AS pprof FROM public.ecr.aws/docker/library/golang:1.24.0-alpine3.20 AS pprof
RUN go install github.com/google/pprof@latest RUN go install github.com/google/pprof@latest
RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest RUN go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
FROM debian/debian:bookworm-slim FROM public.ecr.aws/debian/debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends iperf3 fio curl infiniband-diags ibverbs-utils \ RUN apt-get update && apt-get install -y --no-install-recommends iperf3 fio curl infiniband-diags ibverbs-utils \
iotop sysstat bash-completion procps apache2-utils ca-certificates binutils bpfcc-tools linux-libc-dev libc6-dev \ iotop sysstat bash-completion procps apache2-utils ca-certificates binutils bpfcc-tools linux-libc-dev libc6-dev \
@ -84,3 +84,4 @@ COPY --from=pprof /go/bin/grpcurl /bin/grpcurl
COPY --from=health /bin/grpc_health_probe /bin/grpc_health_probe COPY --from=health /bin/grpc_health_probe /bin/grpc_health_probe
ENTRYPOINT ["/usr/local/bin/dfdaemon"] ENTRYPOINT ["/usr/local/bin/dfdaemon"]

View File

@ -1,4 +1,4 @@
FROM rust:1.85.0 AS builder FROM public.ecr.aws/docker/library/rust:1.85.0 AS builder
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
openssl libclang-dev pkg-config protobuf-compiler \ openssl libclang-dev pkg-config protobuf-compiler \
@ -44,7 +44,7 @@ RUN case "${TARGETPLATFORM}" in \
esac && \ esac && \
cargo build --release --verbose --bin dfinit cargo build --release --verbose --bin dfinit
FROM debian/debian:bookworm-slim FROM public.ecr.aws/debian/debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends wget \ RUN apt-get update && apt-get install -y --no-install-recommends wget \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
@ -52,3 +52,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends wget \
COPY --from=builder /app/client/target/release/dfinit /usr/local/bin/dfinit COPY --from=builder /app/client/target/release/dfinit /usr/local/bin/dfinit
ENTRYPOINT ["/usr/local/bin/dfinit"] ENTRYPOINT ["/usr/local/bin/dfinit"]