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
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
fb4ffe9fb6
3 changed files with 18 additions and 1 deletions
|
|
@ -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
3
docker/edge/Dockerfile
Normal 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
12
docker/edge/dispatcher.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue