mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-05 10:13:19 +00:00
The image installs python, gh, glab, build-essential, sudo, zsh and nano only; go or a jvm goes into $HOME from a terminal instead. SHELL and TZ are written into compose.yml rather than read from .env, so the deploying shell's own values can no longer win over them. The entrypoint calls chpasswd, chown and gosu by absolute path, tolerates a chpasswd failure instead of taking the start down with it, turns globbing off around the agent loop, and counts an agent as installed only when its binary actually runs.
23 lines
610 B
YAML
23 lines
610 B
YAML
services:
|
|
paseo:
|
|
build: .
|
|
hostname: ${SERVICE_HOSTNAME}
|
|
environment:
|
|
- PASEO_PASSWORD=${PASEO_PASSWORD}
|
|
- PASEO_HOSTNAMES=${PASEO_HOSTNAMES}
|
|
- PASEO_TRUSTED_PROXIES=${PASEO_TRUSTED_PROXIES}
|
|
- SHELL=/bin/zsh
|
|
- AGENTS=${AGENTS}
|
|
- TZ=Asia/Ho_Chi_Minh
|
|
- GIT_AUTHOR_NAME=${GIT_NAME}
|
|
- GIT_AUTHOR_EMAIL=${GIT_EMAIL}
|
|
- GIT_COMMITTER_NAME=${GIT_NAME}
|
|
- GIT_COMMITTER_EMAIL=${GIT_EMAIL}
|
|
- HOST=${SERVICE_HOSTNAME}
|
|
volumes:
|
|
- 'paseo-home:/home/paseo'
|
|
- 'paseo-workspace:/workspace'
|
|
volumes:
|
|
paseo-home:
|
|
paseo-workspace:
|