fix: review feedback — cd path in release.sh, compose file access in edge container
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

- formulas/release.sh: cd to $FACTORY_ROOT (not parent) for docker compose build
- docker-compose.yml: mount docker-compose.yml into edge container, pass HOST_PROJECT_DIR
- dispatcher.sh: use -f and --project-directory so compose resolves volume paths
  against the host filesystem when invoked from inside the edge container

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-09 19:23:08 +00:00
parent 3c8b61168d
commit fbf1a6dcc2
3 changed files with 10 additions and 2 deletions

View file

@ -411,7 +411,13 @@ launch_runner() {
# Build docker compose run command (delegates to compose runner service)
# The runner service definition handles image, network, volumes, and base env.
# The dispatcher only adds declared secrets and the ops repo mount.
local -a cmd=(docker compose run --rm)
#
# The edge container has docker-compose.yml mounted at /opt/docker-compose.yml.
# --project-directory tells docker compose to resolve relative paths (volumes,
# env_file) against the HOST project root so the Docker daemon finds them.
local compose_file="${COMPOSE_FILE:-/opt/docker-compose.yml}"
local project_dir="${HOST_PROJECT_DIR:-.}"
local -a cmd=(docker compose -f "$compose_file" --project-directory "$project_dir" run --rm)
# Add environment variables for secrets (if any declared)
if [ -n "$secrets_array" ]; then