Compare commits

...

2 commits

Author SHA1 Message Date
fb4ffe9fb6 Merge pull request 'fix: feat: custom edge container Dockerfile with dispatcher dependencies (#44)' (#53) from fix/issue-44 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
2026-03-29 09:05:47 +00:00
Agent
8ab1009b15 feat: custom edge container Dockerfile with dispatcher dependencies
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
- Create docker/edge/Dockerfile with bash, jq, curl, git, docker-cli
- Create docker/edge/dispatcher.sh as placeholder no-op loop
- Update edge service to build from ./docker/edge instead of caddy:alpine image
- Mount Docker socket into edge container for dispatcher access
- Mount dispatcher.sh as read-only volume
2026-03-29 08:57:20 +00:00
3 changed files with 18 additions and 1 deletions

View file

@ -271,13 +271,15 @@ services:
# Edge proxy — reverse proxy to Forgejo, Woodpecker, and staging
# Serves on ports 80/443, routes based on path
edge:
image: caddy:alpine
build: ./docker/edge
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/Caddyfile:/etc/caddy/Caddyfile
- ./docker/edge/dispatcher.sh:/usr/local/bin/dispatcher.sh:ro
- caddy_data:/data
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- forgejo
- woodpecker

3
docker/edge/Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM caddy:alpine
RUN apk add --no-cache bash jq curl git docker-cli
COPY dispatcher.sh /usr/local/bin/dispatcher.sh

12
docker/edge/dispatcher.sh Normal file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# dispatcher.sh — Edge task dispatcher placeholder
#
# TODO: Implement task polling and runner launching (#45)
# Currently a no-op loop for future expansion.
set -euo pipefail
while true; do
# Placeholder: no-op loop, no logic yet
sleep 60
done