74 lines
2.3 KiB
YAML
74 lines
2.3 KiB
YAML
# Dashboard-testing-only overlay for the private full-flow fixture stack.
|
|
# No service is published on the host; browser/API clients use Compose DNS.
|
|
services:
|
|
db:
|
|
ports: !reset []
|
|
clickhouse:
|
|
ports: !reset []
|
|
gitea:
|
|
ports: !reset []
|
|
superset-dev:
|
|
ports: !reset []
|
|
depends_on:
|
|
clickhouse:
|
|
condition: service_healthy
|
|
superset-preprod:
|
|
profiles: !reset []
|
|
ports: !reset []
|
|
depends_on:
|
|
clickhouse:
|
|
condition: service_healthy
|
|
superset-prod:
|
|
profiles: !reset []
|
|
ports: !reset []
|
|
depends_on:
|
|
clickhouse:
|
|
condition: service_healthy
|
|
backend:
|
|
ports: !reset []
|
|
environment:
|
|
ALLOWED_ORIGINS: http://frontend
|
|
SOURCE_REPOSITORY_IDENTITY_FILE: /run/source-identity/identity.json
|
|
GITEA_API_BASE_URL: http://gitea:3000/api/v1
|
|
E2E_BACKEND_URL: http://127.0.0.1:8000
|
|
FULL_FLOW_ENV_FILE_UID: ${E2E_PRIVATE_ENV_UID:?Set E2E_PRIVATE_ENV_UID}
|
|
FULL_FLOW_ENV_FILE_GID: ${E2E_PRIVATE_ENV_GID:?Set E2E_PRIVATE_ENV_GID}
|
|
volumes:
|
|
- ${E2E_SOURCE_IDENTITY_DIR:?Set E2E_SOURCE_IDENTITY_DIR}:/run/source-identity:ro
|
|
- ${E2E_PRIVATE_ENV_DIR:?Set E2E_PRIVATE_ENV_DIR}:/run/private-env
|
|
- ./scripts:/run/e2e-scripts:ro
|
|
- ${E2E_ARTIFACT_DIR:?Set E2E_ARTIFACT_DIR}:/tmp/e2e-artifacts
|
|
- ./scripts/full-flow-git.py:/run/full-flow-git.py:ro
|
|
frontend:
|
|
ports: !reset []
|
|
dashboard-testing-runner:
|
|
image: mcr.microsoft.com/playwright:v1.60.0-noble
|
|
working_dir: /tmp
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
frontend:
|
|
condition: service_healthy
|
|
superset-dev:
|
|
condition: service_healthy
|
|
environment:
|
|
BACKEND_URL: http://backend:8000
|
|
FRONTEND_URL: http://frontend:80
|
|
E2E_USERNAME: admin
|
|
E2E_PASSWORD: ${FIXTURE_PASSWORD:?Generate private fixture credentials}
|
|
CI: "true"
|
|
PLAYWRIGHT_HTML_OUTPUT_DIR: /tmp/playwright-report
|
|
volumes:
|
|
- ./frontend:/workspace/frontend:ro
|
|
command:
|
|
- sh
|
|
- -lc
|
|
- >-
|
|
mkdir -p /tmp/frontend &&
|
|
cp -a /workspace/frontend/. /tmp/frontend/ &&
|
|
cd /tmp/frontend &&
|
|
npm ci --legacy-peer-deps --ignore-scripts &&
|
|
npx playwright test --config=e2e/dashboard-testing.playwright.config.js
|
|
--retries=0 --reporter=line --output=/tmp/playwright-output
|
|
|