fix: escape $ signs with backslash for docker-compose runtime interpolation (#182)
This commit is contained in:
parent
554998c6c9
commit
603dd92a3d
1 changed files with 6 additions and 6 deletions
12
bin/disinto
12
bin/disinto
|
|
@ -2905,7 +2905,7 @@ EOF
|
|||
|
||||
# Generate the override compose file
|
||||
# Bash expands ${service_name}, ${local_model}, ${interval}, ${PROJECT_NAME} at generation time
|
||||
# $${HOME}, $${FORGE_TOKEN} become ${HOME}, ${FORGE_TOKEN} in the file for docker-compose runtime expansion
|
||||
# \$HOME, \$FORGE_TOKEN become ${HOME}, ${FORGE_TOKEN} in the file for docker-compose runtime expansion
|
||||
cat > "$override_file" <<OVERRIDEOF
|
||||
# docker-compose.override.yml — auto-generated by disinto hire-an-agent
|
||||
# Local model agent configuration for ${agent_name}
|
||||
|
|
@ -2920,11 +2920,11 @@ services:
|
|||
volumes:
|
||||
- agent-data-llama:/home/agent/data
|
||||
- project-repos-llama:/home/agent/repos
|
||||
- $${HOME}/.claude:/home/agent/.claude
|
||||
- $${HOME}/.claude.json:/home/agent/.claude.json:ro
|
||||
- \$HOME/.claude:/home/agent/.claude
|
||||
- \$HOME/.claude.json:/home/agent/.claude.json:ro
|
||||
- CLAUDE_BIN_PLACEHOLDER:/usr/local/bin/claude:ro
|
||||
- $${HOME}/.ssh:/home/agent/.ssh:ro
|
||||
- $${HOME}/.config/sops/age:/home/agent/.config/sops/age:ro
|
||||
- \$HOME/.ssh:/home/agent/.ssh:ro
|
||||
- \$HOME/.config/sops/age:/home/agent/.config/sops/age:ro
|
||||
environment:
|
||||
FORGE_URL: http://forgejo:3000
|
||||
WOODPECKER_SERVER: http://woodpecker:8000
|
||||
|
|
@ -2933,7 +2933,7 @@ services:
|
|||
WOODPECKER_DATA_DIR: /woodpecker-data
|
||||
ANTHROPIC_BASE_URL: ${local_model}
|
||||
ANTHROPIC_API_KEY: sk-no-key-required
|
||||
FORGE_TOKEN_OVERRIDE: $${FORGE_TOKEN}
|
||||
FORGE_TOKEN_OVERRIDE: \$FORGE_TOKEN
|
||||
CLAUDE_CONFIG_DIR: /home/agent/.claude
|
||||
POLL_INTERVAL: ${interval}
|
||||
env_file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue