fix: proper docker-compose variable expansion (bash at gen, compose at runtime) (#182)
This commit is contained in:
parent
ca73bc24c6
commit
554998c6c9
1 changed files with 3 additions and 3 deletions
|
|
@ -2904,9 +2904,9 @@ EOF
|
||||||
local interval="${poll_interval:-300}"
|
local interval="${poll_interval:-300}"
|
||||||
|
|
||||||
# Generate the override compose file
|
# Generate the override compose file
|
||||||
# Note: $${VAR} syntax is used so docker-compose interpolates at runtime,
|
# Bash expands ${service_name}, ${local_model}, ${interval}, ${PROJECT_NAME} at generation time
|
||||||
# not at generation time (AD-005: secrets via env var indirection)
|
# $${HOME}, $${FORGE_TOKEN} become ${HOME}, ${FORGE_TOKEN} in the file for docker-compose runtime expansion
|
||||||
cat > "$override_file" <<'OVERRIDEOF'
|
cat > "$override_file" <<OVERRIDEOF
|
||||||
# docker-compose.override.yml — auto-generated by disinto hire-an-agent
|
# docker-compose.override.yml — auto-generated by disinto hire-an-agent
|
||||||
# Local model agent configuration for ${agent_name}
|
# Local model agent configuration for ${agent_name}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue