fix: review feedback — cd path in release.sh, compose file access in edge container
- 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:
parent
3c8b61168d
commit
fbf1a6dcc2
3 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue