Skip to content

Commit 0fcc661

Browse files
updated docker file
1 parent d46a1d1 commit 0fcc661

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/scripts/ppc64le/self-hosted-builder/actions-runner.Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ FROM ubuntu:22.04
44
# Set non-interactive mode for apt
55
ENV DEBIAN_FRONTEND=noninteractive
66

7-
# Fix sources to point to ports.ubuntu.com for ppc64le
7+
# Fix sources for ppc64le and update system
88
RUN echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" > /etc/apt/sources.list && \
99
echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" >> /etc/apt/sources.list && \
1010
echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" >> /etc/apt/sources.list && \
11-
echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse" >> /etc/apt/sources.list
12-
13-
14-
# Fix sources for ppc64le and update system
15-
RUN apt-get clean && \
11+
echo "deb [arch=ppc64el] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse" >> /etc/apt/sources.list & \
12+
apt-get clean && \
1613
apt-get update -o Acquire::Retries=5 -o Acquire::http::Timeout="10" && \
1714
apt-get -y install --no-install-recommends \
1815
build-essential \
@@ -26,10 +23,12 @@ RUN apt-get clean && \
2623
vim \
2724
python3 \
2825
python3-pip \
29-
update-alternatives --set iptables /usr/sbin/iptables-legacy && \
30-
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy && \
3126
apt-get clean && rm -rf /var/lib/apt/lists/*
3227

28+
# Switch to iptables-legacy
29+
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy && \
30+
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
31+
3332
# Add Docker GPG key and repository
3433
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
3534
echo "deb [arch=ppc64el signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list && \

0 commit comments

Comments
 (0)