feat(infra): port pre-check before every port definition (MITHOME-137)
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s

scripts/check-ports.sh checks a port list or a compose file (locally or on a
remote host over SSH) before anything is built or started; a port counts as
owned only by the same compose project and service. deploy.sh runs it before
the build; tests are part of the pre-deploy suite. Found: the dev compose
clashes on llmdev (3001: step, 8081: mozdit staging).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 21:38:43 +02:00
co-authored by Claude Opus 5.5
parent b8d1b0ac25
commit 63150ed115
8 changed files with 295 additions and 4 deletions
+10
View File
@@ -59,6 +59,16 @@ if [ "$ENV" = "production" ] && grep -hsE '^[[:space:]-]*NEXT_PUBLIC_DEPLOY_ENV[
exit 1
fi
# 2c. Port-ellenőrzés — build ELŐTT, hogy egy ütközés ne egy teljes build után
# derüljön ki. A saját projekt (újraindítandó) konténerei által foglalt port
# rendben van; minden más foglaltság hiba. Szabály: llmdev Docker-háttér
# specifikáció, 5. pont (portregiszter).
echo "🔌 Port-ellenőrzés ($COMPOSE_FILE)..."
if ! ./scripts/check-ports.sh --env-file "$ENV_FILE" --compose "$COMPOSE_FILE"; then
echo "❌ Hiba: portütközés — a deploy leállt, semmi nem épült újra."
exit 1
fi
# 3. Docker konténerek újraépítése és indítása
echo "🐳 Build és indítás..."
# A friss Dockerfile- vagy build-arg-változásoknak is új konténerben kell érvényesülniük.