You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve dev-cluster skill with engine detection and fast inner-loop (#630)
## Summary
Follow-up to #622. Fixes issues discovered while using the dev-cluster
skill in practice:
- **Container engine detection**: Skill defaulted to podman and failed
when only docker was available. Now detects available engine before
building.
- **Dynamic port detection**: Hardcoded `localhost:8080` was wrong for
Docker (maps to port 80). Now checks actual port mapping.
- **PR-based workflow**: Added "Setting Up from a PR" section for the
common `gh pr view` → checkout → build flow.
- **Fast inner-loop**: Added section documenting `npm run dev` +
`kubectl port-forward` for instant frontend hot-reload without image
rebuilds.
- **Build commands**: All `make build-*` examples now pass
`CONTAINER_ENGINE=`.
## Test plan
- [ ] Invoke dev-cluster skill and verify it detects docker/podman
correctly
- [ ] Verify port detection works for both Docker and Podman kind
clusters
- [ ] Test fast inner-loop instructions work end-to-end
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Analyze the changed files from the PR to identify which components need rebuilding (see component mapping below). Then follow the appropriate cluster workflow (Kind or Minikube).
93
+
94
+
## Detecting the Container Engine
95
+
96
+
**Before any build step**, detect which container engine is available:
97
+
98
+
```bash
99
+
# Check which engine is available
100
+
ifcommand -v docker &>/dev/null && docker info &>/dev/null 2>&1;then
101
+
CONTAINER_ENGINE=docker
102
+
elifcommand -v podman &>/dev/null && podman info &>/dev/null 2>&1;then
103
+
CONTAINER_ENGINE=podman
104
+
else
105
+
echo"ERROR: No container engine available"
106
+
exit 1
107
+
fi
108
+
```
109
+
110
+
**Always pass `CONTAINER_ENGINE=` to make commands:**
111
+
```bash
112
+
make build-frontend CONTAINER_ENGINE=docker
113
+
make build-all CONTAINER_ENGINE=docker
114
+
```
115
+
116
+
## Detecting the Access URL
117
+
118
+
After deployment, **check the actual port mapping** instead of assuming a fixed port:
119
+
120
+
```bash
121
+
# For kind with Docker: check the container's published ports
**Detect the actual URL** by checking the kind container's port mapping (see "Detecting the Access URL" above), then provide the correct URL to the user.
254
+
192
255
```
193
256
✓ Deployment complete!
194
257
195
258
Access the platform at:
196
-
- Frontend: http://localhost:8080 (or http://localhost with Docker)
0 commit comments