Skip to content

Commit 38d5dc4

Browse files
sarutakdongjoon-hyun
authored andcommitted
[SPARK-56525][INFRA] Add ubuntu mirror repositories for redundancy
### What changes were proposed in this pull request? This PR adds ubuntu mirror repositories to Dockerfiles for redundancy. `mirrors.edge.kernel.org` seems sufficiently public and reliable. ### Why are the changes needed? For CI stability. Sometimes, ubuntu repositories including `archive.ubuntu.com` and `security.ubuntu.com` are very slow, causing CI failures. https://github.com/apache/spark/actions/runs/24542208092/job/71750264055 https://github.com/apache/spark/actions/runs/24544185426/job/71756248072 https://github.com/sarutak/spark/actions/runs/24552461498/job/71781474186 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? GA. ### Was this patch authored or co-authored using generative AI tooling? Kiro CLI / Opus 4.6. Closes #55389 from sarutak/add-ubuntu-mirror. Authored-by: Kousuke Saruta <sarutak@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 1cb8a7f commit 38d5dc4

16 files changed

Lines changed: 34 additions & 0 deletions

File tree

dev/infra/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ ENV FULL_REFRESH_DATE=20260317
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN echo 'deb https://mirrors.edge.kernel.org/ubuntu jammy main restricted universe multiverse' > /etc/apt/sources.list.d/mirror.list && \
33+
echo 'deb https://mirrors.edge.kernel.org/ubuntu jammy-updates main restricted universe multiverse' >> /etc/apt/sources.list.d/mirror.list && \
34+
echo 'deb https://mirrors.edge.kernel.org/ubuntu jammy-security main restricted universe multiverse' >> /etc/apt/sources.list.d/mirror.list
35+
3236
RUN apt-get update && apt-get install -y \
3337
build-essential \
3438
ca-certificates \

dev/spark-test-image/connect-gen-protos/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV DEBIAN_FRONTEND=noninteractive
2929
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3030
ENV OPENSSL_FORCE_FIPS_MODE=0
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
ca-certificates \
3436
curl \

dev/spark-test-image/docs/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV FULL_REFRESH_DATE=20260316
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
build-essential \
3436
ca-certificates \

dev/spark-test-image/lint/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV FULL_REFRESH_DATE=20260316
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
build-essential \
3436
ca-certificates \

dev/spark-test-image/pypy-310/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV FULL_REFRESH_DATE=20260207
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
build-essential \
3436
ca-certificates \

dev/spark-test-image/python-310/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV FULL_REFRESH_DATE=20260210
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
build-essential \
3436
ca-certificates \

dev/spark-test-image/python-311/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV FULL_REFRESH_DATE=20260210
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
build-essential \
3436
ca-certificates \

dev/spark-test-image/python-312-classic-only/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV FULL_REFRESH_DATE=20260210
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
build-essential \
3436
ca-certificates \

dev/spark-test-image/python-312-pandas-3/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ ENV FULL_REFRESH_DATE=20260210
3232
ENV DEBIAN_FRONTEND=noninteractive
3333
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3434

35+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
36+
3537
RUN apt-get update && apt-get install -y \
3638
build-essential \
3739
ca-certificates \

dev/spark-test-image/python-312/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ENV FULL_REFRESH_DATE=20260210
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
3131

32+
RUN printf 'Types: deb\nURIs: https://mirrors.edge.kernel.org/ubuntu\nSuites: noble noble-updates noble-security\nComponents: main restricted universe multiverse\nSigned-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n' > /etc/apt/sources.list.d/mirror.sources
33+
3234
RUN apt-get update && apt-get install -y \
3335
build-essential \
3436
ca-certificates \

0 commit comments

Comments
 (0)