Skip to content

Commit e305567

Browse files
committed
refactor(devcontainer): expose gitconfig path via env var
Add GITCONFIG_PATH env variable and use it in volume mapping with default to $HOME/.gitconfig. This allows custom gitconfig location for dev container.
1 parent 58204c1 commit e305567

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.devcontainer/dev.docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ services:
1818
BIN_DEPLOY_REQ: ${BIN_DEPLOY_REQ}
1919
SSH_AUTH_SOCK: /ssh-agent
2020
BUN_BIN: ${BUN_BIN_R}
21+
GITCONFIG_PATH: ${GITCONFIG_PATH}
2122
volumes:
2223
- ${SSH_AUTH_SOCK:-/dev/null}:/ssh-agent
2324
- .:/workspace
24-
- ~/.gitconfig:/etc/gitconfig:ro
25+
- ${GITCONFIG_PATH:-${HOME}/.gitconfig}:/etc/gitconfig:ro
2526
networks:
2627
- templrjs
2728
- ollama

0 commit comments

Comments
 (0)