A git command using docker. git-subrepo is also installed.
# under git-docker
docker build -t k-ishigaki/git .
docker run --rm -it -v ${HOME}/.gitconfig:/root/.gitconfig -v $(pwd):/root/workspace -w /root/workspace -u $(id -u):$(id -g) k-ishigaki/git git ...
NOTE:
Put a batch file (git.bat) to a directory included in PATH.
@docker run --rm -it -v %USERPROFILE%\.gitconfig:/root/.gitconfig -v %cd%:/root/workspace -w /root/workspace k-ishigaki/git git %*
Then a git command available.
Put a shell script file (git) to a directory included in PATH.
#!/bin/sh -e
docker run --rm -it -v $HOME/.gitconfig:/root/.gitconfig -v $(pwd):/root/workspace -w /root/workspace k-ishigaki/git git "$@"
Then a git command available.
Content type
Image
Digest
Size
21.2 MB
Last updated
over 5 years ago
docker pull splascope/git