debug(ci): Discovery step to find RAG service on Hetzner
Some checks failed
CI/CD / go-lint (push) Has been skipped
CI/CD / python-lint (push) Has been skipped
CI/CD / nodejs-lint (push) Has been skipped
CI/CD / test-go-ai-compliance (push) Successful in 36s
CI/CD / test-python-backend-compliance (push) Successful in 40s
CI/CD / test-python-document-crawler (push) Successful in 27s
CI/CD / test-python-dsms-gateway (push) Successful in 26s
CI/CD / deploy-hetzner (push) Failing after 1s
Some checks failed
CI/CD / go-lint (push) Has been skipped
CI/CD / python-lint (push) Has been skipped
CI/CD / nodejs-lint (push) Has been skipped
CI/CD / test-go-ai-compliance (push) Successful in 36s
CI/CD / test-python-backend-compliance (push) Successful in 40s
CI/CD / test-python-document-crawler (push) Successful in 27s
CI/CD / test-python-dsms-gateway (push) Successful in 26s
CI/CD / deploy-hetzner (push) Failing after 1s
Temporary commit to discover Docker container names and networks on Hetzner, since breakpilot-network doesn't exist there. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,43 +30,31 @@ jobs:
|
||||
run: |
|
||||
git clone --depth 1 --branch main ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
|
||||
|
||||
- name: Run Ingestion
|
||||
- name: Discover RAG Service
|
||||
run: |
|
||||
set -euo pipefail
|
||||
PHASE="${{ github.event.inputs.phase }}"
|
||||
|
||||
echo "=== RAG Ingestion: Phase ${PHASE} ==="
|
||||
echo "=== Docker Environment Discovery ==="
|
||||
echo ""
|
||||
|
||||
# Debug: Netzwerke und laufende Container anzeigen
|
||||
echo "--- Docker Networks ---"
|
||||
docker network ls 2>/dev/null || echo "docker network ls fehlgeschlagen"
|
||||
echo ""
|
||||
echo "--- RAG-relevante Container ---"
|
||||
docker ps --filter name=rag --format "{{.Names}} {{.Status}}" 2>/dev/null || true
|
||||
docker ps --filter name=bp-core --format "{{.Names}} {{.Status}}" 2>/dev/null || true
|
||||
echo "--- Alle Container ---"
|
||||
docker ps --format "table {{.Names}}\t{{.Ports}}\t{{.Networks}}" 2>/dev/null || true
|
||||
echo ""
|
||||
|
||||
# Ingestion in einem Container auf breakpilot-network ausfuehren.
|
||||
# Der Runner hat Docker-Socket-Zugriff und kann Container spawnen.
|
||||
docker run --rm \
|
||||
--network breakpilot-network \
|
||||
-v "$(pwd)/scripts:/workspace/scripts:ro" \
|
||||
-e "WORK_DIR=/tmp/rag-ingestion" \
|
||||
-e "RAG_URL=http://bp-core-rag-service:8097/api/v1/documents/upload" \
|
||||
-e "QDRANT_URL=https://qdrant-dev.breakpilot.ai" \
|
||||
-e "SDK_URL=http://bp-compliance-ai-sdk:8090" \
|
||||
alpine:3.19 \
|
||||
sh -c "
|
||||
apk add --no-cache curl bash coreutils > /dev/null 2>&1
|
||||
mkdir -p /tmp/rag-ingestion/{pdfs,repos,texts}
|
||||
cd /workspace
|
||||
if [ '$PHASE' = 'all' ]; then
|
||||
bash scripts/ingest-legal-corpus.sh
|
||||
else
|
||||
bash scripts/ingest-legal-corpus.sh --only '$PHASE'
|
||||
fi
|
||||
"
|
||||
|
||||
echo "--- Container mit Port 8097 ---"
|
||||
docker ps --format "{{.Names}} {{.Ports}}" 2>/dev/null | grep -i "8097" || echo "Kein Container auf Port 8097"
|
||||
echo ""
|
||||
echo "=== Ingestion abgeschlossen ==="
|
||||
|
||||
echo "--- Container mit 'rag' oder 'compliance' im Namen ---"
|
||||
docker ps --format "{{.Names}} {{.Networks}} {{.Ports}}" 2>/dev/null | grep -iE "rag|compliance" || echo "Keine gefunden"
|
||||
echo ""
|
||||
|
||||
echo "--- Netzwerke ---"
|
||||
docker network ls 2>/dev/null || true
|
||||
echo ""
|
||||
|
||||
# Finde RAG-Service Port auf dem Host
|
||||
echo "--- Host-Port-Mapping fuer 8097 ---"
|
||||
docker ps --format "{{.Names}} {{.Ports}}" 2>/dev/null | grep "8097" || echo "Kein 8097 Mapping"
|
||||
echo ""
|
||||
|
||||
echo "=== Discovery abgeschlossen ==="
|
||||
|
||||
Reference in New Issue
Block a user