Skip to content

Commit d46a1d1

Browse files
updated docker file
1 parent f2c206d commit d46a1d1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ RUN apt-get clean && \
2626
vim \
2727
python3 \
2828
python3-pip \
29+
update-alternatives --set iptables /usr/sbin/iptables-legacy && \
30+
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy && \
31+
apt-get clean && rm -rf /var/lib/apt/lists/*
32+
33+
# Add Docker GPG key and repository
34+
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
35+
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 && \
36+
apt-get update && apt-get install -y \
2937
docker-ce \
3038
docker-ce-cli \
3139
containerd.io && \
32-
update-alternatives --set iptables /usr/sbin/iptables-legacy && \
33-
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy && \
3440
apt-get clean && rm -rf /var/lib/apt/lists/*
3541

3642
# Add Docker GPG key and repository

0 commit comments

Comments
 (0)