Skip to content

Commit 86645e5

Browse files
authored
adding retries for APT repository fetches (#474)
Signed-off-by: Gustavo <[email protected]>
1 parent a2ad2df commit 86645e5

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

shared/envoy/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ FROM ${ENVOY_IMAGE}:${ENVOY_VARIANT} AS envoy-base
66
ARG ENVOY_CONFIG=envoy.yaml
77
ENV ENVOY_CONFIG="$ENVOY_CONFIG"
88
ENV DEBIAN_FRONTEND=noninteractive
9+
RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries
910
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
1011
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
1112
rm -f /etc/apt/apt.conf.d/docker-clean \

shared/golang/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ WORKDIR /go/go-control-plane
1616

1717
FROM os-base AS golang-control-plane
1818
ENV DEBIAN_FRONTEND=noninteractive
19+
RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries
1920
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
2021
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
2122
apt-get -qq update \

shared/node/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ COPY --chmod=755 ./scripts/entrypoint.sh /entrypoint.sh
1919
COPY --chmod=755 ./scripts/build.sh /usr/local/bin/build.sh
2020
COPY --chmod=755 ./scripts/dev.sh /usr/local/bin/dev.sh
2121
COPY --chmod=644 ./routes.jq /usr/local/share/routes.jq
22+
RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries
2223
RUN apt-get update \
2324
&& apt-get -qq install -y --no-install-recommends gosu jq netcat-traditional yq
2425
ENTRYPOINT ["/entrypoint.sh"]

shared/python/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ARG SERVICE_PORT=8080
1919
ENV DEBIAN_FRONTEND=noninteractive \
2020
SERVICE_PORT=$SERVICE_PORT
2121
ADD "$PYTHON_REQUIREMENTS_FILE" /tmp/requirements.txt
22+
RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries
2223
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
2324
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
2425
pip3 install --require-hashes -qr /tmp/requirements.txt \

shared/websocket/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ FROM websocket-base AS websocket-client
1414
ENV DEBIAN_FRONTEND=noninteractive
1515
ADD interact.sh /interact.sh
1616
RUN chmod +x /interact.sh
17+
RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries
1718
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
1819
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
1920
apt-get -qq update \

0 commit comments

Comments
 (0)