Skip to content

Commit

Permalink
[docker] use cloudfront debian mirrors for bullseye
Browse files Browse the repository at this point in the history
  • Loading branch information
rustielin committed Nov 18, 2024
1 parent 745a83b commit 21c4558
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions docker/builder/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
FROM rust as rust-base
WORKDIR /aptos

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
Expand Down
6 changes: 3 additions & 3 deletions docker/builder/faucet.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
### Faucet Image ###
FROM debian-base AS faucet

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down
6 changes: 3 additions & 3 deletions docker/builder/forge.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

FROM debian-base as forge

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down
6 changes: 3 additions & 3 deletions docker/builder/indexer-grpc.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

FROM debian-base AS indexer-grpc

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down
6 changes: 3 additions & 3 deletions docker/builder/node-checker.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

FROM debian-base AS node-checker

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down
6 changes: 3 additions & 3 deletions docker/builder/telemetry-service.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM debian-base AS telemetry-service

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down
6 changes: 3 additions & 3 deletions docker/builder/validator-testing.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

FROM debian-base as validator-testing-base

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down
6 changes: 3 additions & 3 deletions docker/builder/validator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ FROM tools-builder

FROM debian-base AS validator

# Current debian base is bookworm, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bookworm main" > /etc/apt/sources.list.d/bookworm.list && \
echo "Package: *\nPin: release n=bookworm\nPin-Priority: 50" > /etc/apt/preferences.d/bookworm
# Current debian base used in build is bullseye, pin to prevent unexpected changes
RUN echo "deb https://cloudfront.debian.net/debian/ bullseye main" > /etc/apt/sources.list.d/bullseye.list && \
echo "Package: *\nPin: release n=bullseye\nPin-Priority: 50" > /etc/apt/preferences.d/bullseye

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down

0 comments on commit 21c4558

Please sign in to comment.