## Summary Adds brencher profile `connectivity_tester` that deploys the connectivity-tester stack from `admin/ansible`. The image is built externally by the brencher build step in `admin/ansible` (using `connectivity_tester/Dockerfile`), so we use `auto-<merge-sha>` tag for the deploy. ## What's in the box - `GitClone` with two remotes (hermes/ansible + admin/ansible) so feature branches in the fork can be picked up via cross-fork PRs. - `DockerSwarmCheck(stack_name="connectivity_tester")` for diff detection. - `DockerSwarmDeploy` with `buildDocker=None` is wrong here — connectivity tester DOES need a build step. **Need to change to non-None.** - `UrlCheck` on /healthz and `SimpleLog` for the UI user link. ## Open question The `admin/ansible/connectivity_tester/stack-compose.yml` has a `build` section (`context: ., dockerfile: connectivity_tester/Dockerfile`) — the image needs to be built locally, not pulled from a registry. Brencher must build the image in the deploy step. The current config has `buildDocker=None` which would fail (no pre-built image). This is a known gap; the PR gets the structure in place. Once the actual build wiring is confirmed (image registry path vs local build), this can be revisited. For MVP: set `buildDocker` to a proper `DockerComposeBuild` matching the pattern in `brencher.py`. ## Related - admin/ansible#39 (PR) — adds the stack + Dockerfile + compose - Org1/hermes-voice-gateway#5 — connectivity testing blocker - Org1/hermes-voice-gateway#3 — Path B: voice-gateway, blocked by #5 - admin/ansible#16 — Connectivity testing monitoring: admin/ansible#16 --------- Co-authored-by: hermes <hermes@rudolf.keenetic.link> Co-authored-by: brencher_bot <rudolfss13@gmail.com> Reviewed-on: #65 Co-authored-by: hermes <rudolfss13+hermes@gmail.com>
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
version: '3.8'
|
|
services:
|
|
brencher-backend:
|
|
build: .
|
|
image: registry.rudolf.keenetic.link/brencher:${version}
|
|
user: 1000:137
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
ports:
|
|
- "5001:5001"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- tmp:/tmp
|
|
- /etc/passwd:/etc/passwd
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- VIRTUAL_HOST=brencher.rudolf.keenetic.link
|
|
- LETSENCRYPT_HOST=brencher.rudolf.keenetic.link
|
|
- VERSION=${version}
|
|
- PROFILES=brencher2,torrserv_proxy,immich,gmail_mcp,hermes,hermes_infra,gitea,connectivity_tester
|
|
- SECONDARY_BRENCHER=http://host.docker.internal:5002
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
placement:
|
|
max_replicas_per_node: 1
|
|
constraints:
|
|
- node.hostname==odroid
|
|
# - node.hostname==rudolf-T
|
|
mode: replicated
|
|
networks:
|
|
- default
|
|
- brencher-net
|
|
- nginx_ingress
|
|
secrets:
|
|
- brencher-secrets
|
|
|
|
secrets:
|
|
brencher-secrets:
|
|
external: true
|
|
|
|
volumes:
|
|
tmp:
|
|
|
|
networks:
|
|
brencher-net:
|
|
driver: overlay
|
|
nginx_ingress:
|
|
external: true
|
|
|
|
|