CI stacks come up on the runner again: mosquitto reads its config from /etc/mosquitto, where Ubuntu's AppArmor profile lets it, and Playwright reaches the app on localhost, a secure context for the clipboard spec
Docs / docs (push) Successful in 20s
Playwright Tests / test-playwright (1, 2) (push) Successful in 3m1s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m1s
pre-commit / pre-commit (push) Successful in 3m1s
Test Backend / test-backend (3.12) (push) Successful in 4m30s
Test Backend / test-backend (3.14) (push) Successful in 4m18s
Compose Smoke Test / test-compose (push) Successful in 28s
Playwright Tests / merge-reports (push) Successful in 1m17s

This commit is contained in:
2026-11-02 07:22:32 +01:00
parent c675d2041c
commit de13c48c90
2 changed files with 11 additions and 4 deletions
+6 -2
View File
@@ -52,6 +52,10 @@ services:
volumes: !reset []
# frontend/playwright.config.ts defaults baseURL to the test stack's
# hostname, which resolves to nothing in here. The backend serves the SPA
# and its API on one origin.
# and its API on one origin. Reached as localhost from inside the
# backend's network namespace, because http://backend:8000 is not a secure
# context and the clipboard spec needs navigator.clipboard, which only a
# secure context has. Service names still resolve in there.
network_mode: service:backend
environment:
- PLAYWRIGHT_BASE_URL=http://backend:8000
- PLAYWRIGHT_BASE_URL=http://localhost:8000
+5 -2
View File
@@ -75,8 +75,11 @@ services:
image: eclipse-mosquitto:2
restart: "no"
# The config the image ships for exactly this: listener on 1883, anonymous
# clients allowed. Its default config accepts neither.
command: mosquitto -c /mosquitto-no-auth.conf
# clients allowed. Its default config accepts neither. Read from
# /etc/mosquitto, because Ubuntu's AppArmor profile for /usr/sbin/mosquitto
# allows nothing else, and it confines the broker wherever Docker leaves
# containers unconfined (the CI runner's Docker-in-Docker).
command: sh -c "mkdir -p /etc/mosquitto && cp /mosquitto-no-auth.conf /etc/mosquitto/mosquitto.conf && exec mosquitto -c /etc/mosquitto/mosquitto.conf"
influxdb:
logging: *logging