diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 39f0115..6774463 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -50,7 +50,7 @@ jobs: - run: make smoke - name: dump container logs on failure if: failure() - run: docker compose -f infra/docker-compose.yml logs --no-color --tail=100 oz-init nrc-init acl bff 2>&1 || true + run: docker compose -f infra/docker-compose.yml logs --no-color --tail=80 oz-init openzaak nrc-init nrc-web flowable-init keycloak acl bff 2>&1 || true - name: tear down on failure if: failure() run: docker compose -f infra/docker-compose.yml down --volumes 2>&1 || true diff --git a/Makefile b/Makefile index 6e60f21..859716c 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ unit: ## smoke: compose up (wait for healthy), curl /health, then tear down smoke: - docker compose -f $(COMPOSE) up -d --build --wait --wait-timeout 300 + docker compose -f $(COMPOSE) up -d --build --wait --wait-timeout 420 bash -c 'curl -fsS $(HEALTH_URL); rc=$$?; docker compose -f $(COMPOSE) down --volumes; exit $$rc' ## down: stop and remove the local stack diff --git a/infra/docker-compose.yml b/infra/docker-compose.yml index ac94a62..9a3fbe5 100644 --- a/infra/docker-compose.yml +++ b/infra/docker-compose.yml @@ -150,8 +150,11 @@ services: OPENNOTIFICATIES_SUPERUSER_USERNAME: admin DJANGO_SUPERUSER_PASSWORD: admin OPENNOTIFICATIES_SUPERUSER_EMAIL: admin@localhost - RUN_SETUP_CONFIG: "true" - command: /setup_configuration.sh + # Migrations only for now. No setup_configuration steps are enabled yet (the + # OZ<->NRC notification wiring lands in S-06), and NRC's `setup_configuration` + # aborts with "No steps enabled" on the empty data.yaml — so we run `migrate` + # directly instead of /setup_configuration.sh. See data.yaml and ADR-0002. + command: ["sh", "-c", "/wait_for_db.sh && OTEL_SDK_DISABLED=True python src/manage.py migrate"] depends_on: nrc-db: condition: service_healthy diff --git a/infra/opennotificaties/docker-compose.yml b/infra/opennotificaties/docker-compose.yml index d0b2836..d2b8986 100644 --- a/infra/opennotificaties/docker-compose.yml +++ b/infra/opennotificaties/docker-compose.yml @@ -56,8 +56,11 @@ services: OPENNOTIFICATIES_SUPERUSER_USERNAME: admin DJANGO_SUPERUSER_PASSWORD: admin OPENNOTIFICATIES_SUPERUSER_EMAIL: admin@localhost - RUN_SETUP_CONFIG: "true" - command: /setup_configuration.sh + # Migrations only for now. No setup_configuration steps are enabled yet (the + # OZ<->NRC notification wiring lands in S-06), and NRC's `setup_configuration` + # aborts with "No steps enabled" on the empty data.yaml — so we run `migrate` + # directly instead of /setup_configuration.sh. See data.yaml and ADR-0002. + command: ["sh", "-c", "/wait_for_db.sh && OTEL_SDK_DISABLED=True python src/manage.py migrate"] depends_on: nrc-db: condition: service_healthy