feat: bake iac_source_catalog into Docker image; fix YAML smoke test; add .gitignore
All checks were successful
Build and Deploy iLSP / test (push) Successful in 23s
Build and Deploy iLSP / build-and-deploy (push) Successful in 1m35s

- Dockerfile: COPY iac_source_catalog.json in builder + final stage
- push_catalogs.sh: cp iac_source_catalog.json to iLSP repo root before SCP
- smoke_test_completions.py: detect WS CLOSE in _recv_until_id; 20s YAML init timeout; clearer error message
- .gitignore: standard Python exclusions

Fixes: iac_source_modules=0 (was never baked into image)
This commit is contained in:
Henrik Jess Nielsen
2026-05-10 16:23:02 +02:00
parent ef3535048b
commit 2a1717ff81
5 changed files with 2445 additions and 6 deletions

View File

@@ -1,16 +1,17 @@
#!/usr/bin/env bash
# push_catalogs.sh — Push fresh catalogs to autobox iLSP volume
# push_catalogs.sh — Push fresh catalogs to autobox iLSP volume AND copy to iLSP repo for Docker bake
#
# Usage:
# ./scripts/push_catalogs.sh # push all catalogs
# ./scripts/push_catalogs.sh --no-reload # push but don't call /reload
#
# Catalogs:
# bicep_modules_catalog.json — from DevOpsMCP repo (sync_bicep_modules.py)
# iac_source_catalog.json — from DevOpsMCP repo (sync_iac_module_sources.py)
# bicep_modules_catalog.json — from DevOpsMCP repo (sync_bicep_modules.py)
# iac_source_catalog.json — from DevOpsMCP repo (sync_iac_module_sources.py)
# pipeline_templates_catalog.json — from iLSP repo (scripts/sync_pipeline_templates.py)
#
# All files are written to /opt/nomad/volumes/ilsp-data/ on autobox — the host volume iLSP mounts at /data.
# iac_source_catalog.json is also copied to the iLSP repo root so it gets baked into the Docker image.
set -euo pipefail
@@ -49,6 +50,12 @@ if [[ ! -f "$TMPL_CATALOG" ]]; then
fi
echo "$(basename "$TMPL_CATALOG") ($(du -sh "$TMPL_CATALOG" | cut -f1))"
# Copy iac_source_catalog.json to iLSP repo root so it gets baked into the Docker image
echo ""
echo " → Copying iac_source_catalog.json to iLSP repo root (for Docker bake) …"
cp "$IAC_CATALOG" "$ILSP_REPO/iac_source_catalog.json"
echo " ✓ Copied to $ILSP_REPO/iac_source_catalog.json"
echo ""
echo " → Copying to $AUTOBOX:$REMOTE_DIR/ …"
ssh "$AUTOBOX" "mkdir -p $REMOTE_DIR"
@@ -72,3 +79,4 @@ fi
echo ""
echo " Done. Bicep + YAML pipeline template completions updated."
echo " Note: iac_source_catalog.json was copied to repo root — commit + push to bake into next Docker image."