Skip to content

Commit 039f93b

Browse files
committed
ci: fix failed to build arm64 for dev container
Signed-off-by: Alessandro Yuichi Okimoto <yuichijpn@gmail.com>
1 parent 91ad72a commit 039f93b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/.devcontainer/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,22 @@ RUN ARCH=$(dpkg --print-architecture) \
116116
&& npm install -g yarn
117117

118118
# Install kubectl, helm, and minikube
119+
# Using fixed versions to avoid network issues fetching "stable.txt" during build
119120
RUN ARCH=$(dpkg --print-architecture) \
120121
&& case $ARCH in \
121122
amd64) K8S_ARCH="amd64" ;; \
122123
arm64) K8S_ARCH="arm64" ;; \
123124
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
124125
esac \
125-
# Install kubectl
126-
&& curl -fsSL "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${K8S_ARCH}/kubectl" -o /usr/local/bin/kubectl \
126+
# Install kubectl (using fixed version for reliable builds)
127+
&& curl -fsSL --retry 3 --retry-delay 5 "https://dl.k8s.io/release/v1.35.0/bin/linux/${K8S_ARCH}/kubectl" -o /usr/local/bin/kubectl \
127128
&& chmod +x /usr/local/bin/kubectl \
128129
# Install helm
129-
&& curl -fsSL "https://get.helm.sh/helm-v3.16.4-linux-${K8S_ARCH}.tar.gz" | tar -C /tmp -xzf - \
130+
&& curl -fsSL --retry 3 --retry-delay 5 "https://get.helm.sh/helm-v3.16.4-linux-${K8S_ARCH}.tar.gz" | tar -C /tmp -xzf - \
130131
&& mv "/tmp/linux-${K8S_ARCH}/helm" /usr/local/bin/helm \
131132
&& rm -rf "/tmp/linux-${K8S_ARCH}" \
132-
# Install minikube
133-
&& curl -fsSL "https://storage.googleapis.com/minikube/releases/latest/minikube-linux-${K8S_ARCH}" -o /usr/local/bin/minikube \
133+
# Install minikube (using fixed version for reliable builds)
134+
&& curl -fsSL --retry 3 --retry-delay 5 "https://storage.googleapis.com/minikube/releases/v1.37.0/minikube-linux-${K8S_ARCH}" -o /usr/local/bin/minikube \
134135
&& chmod +x /usr/local/bin/minikube
135136

136137
# Set up Go environment

0 commit comments

Comments
 (0)