Skip to content

Commit 96d10bf

Browse files
nammnclaude
andcommitted
Fix IBM Power registry restart before push
Ensure local registry is running right before pushing custom kicbase image. The registry may get cleaned up during the image build phase on shared CI machines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a543908 commit 96d10bf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/minikube/setup_minikube.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,21 @@ EOF
118118
echo "Failed to build custom image"
119119
return 1
120120
}
121+
122+
# Ensure registry is still running before push (may have been cleaned up during build)
123+
if ! curl -s --max-time 2 http://localhost:5000/v2/_catalog >/dev/null 2>&1; then
124+
echo "Registry not responding, restarting..."
125+
sudo podman rm -f registry 2>/dev/null || true
126+
sudo podman run -d -p 5000:5000 --name registry --restart=always docker.io/library/registry:2
127+
for _ in {1..10}; do
128+
if curl -s --max-time 2 http://localhost:5000/v2/_catalog >/dev/null 2>&1; then
129+
echo "Registry restarted successfully"
130+
break
131+
fi
132+
sleep 1
133+
done
134+
fi
135+
121136
sudo podman push "${custom_image_tag}" --tls-verify=false || {
122137
echo "Failed to push to registry"
123138
return 1

0 commit comments

Comments
 (0)