File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
119120RUN 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
You can’t perform that action at this time.
0 commit comments