Skip to content

Commit 26b60e7

Browse files
committed
hotfix: Added force upgrade for docker buildkit
1 parent fdefbe9 commit 26b60e7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

github-runner/Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
FROM summerwind/actions-runner
22
USER root
3-
RUN apt-get update && apt-get install -y curl unzip gnupg
3+
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl unzip gnupg
44
RUN curl -LO "https://dl.k8s.io/release/v1.34.0/bin/linux/amd64/kubectl" \
55
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
66
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
77
RUN curl -L -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.44.1/yq_linux_amd64 \
88
&& chmod +x /usr/local/bin/yq
9+
10+
# HOTFIX: Remove after summerwind/actions-runner image is updated with Docker v25+
11+
RUN DOCKER_VERSION=29.0.0 \
12+
&& ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \
13+
&& if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \
14+
&& if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \
15+
&& echo https://download.docker.com/linux/static/${CHANNEL}/${ARCH}/docker-${DOCKER_VERSION}.tgz \
16+
&& curl -fLo docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-29.0.0.tgz \
17+
&& tar zxvf docker.tgz \
18+
&& install -o root -g root -m 755 docker/docker /usr/bin/docker \
19+
&& rm -rf docker docker.tgz
920
USER runner

0 commit comments

Comments
 (0)