a docker image helps you pull all git volumes automatically
10K+
a docker image helps you pull all git volumes automatically
git-agent containerdocker run -d -v /:/rootfs \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
hyperapp/git-agent
You need to mount / to /rootfs to allow git-agent to update all other containers' volumes.
git-agent ENVdocker run --rm -it -e GIT_VOLUME='/srv' \
-e GIT_REMOTE='https://github.com/waylybaye/git-agent.git' \
-v /srv s alpine sh
GIT_INTERVAL: pull interval, default to 300 (seconds)
GIT_FORCE: force to pull
# required
GIT_VOLUME: the volume inside your container
GIT_REMOTE: remote git repo, NOTE ssh need interactive confirm when first clone
# optional
GIT_BRANCH: branch to work on, default to master
GIT_INTERVAL: check for update every GIT_INTERVAL seconds, default to 5*60
GIT_FORCE: force to pull, default to git-agent's GIT_FORCE
GIT_CHOWN: run chown -r $GIT_CHOWN after git updated
GIT_CHMOD: run chmod $GIT_CHMOD after git updated
Content type
Image
Digest
Size
29.8 MB
Last updated
about 9 years ago
docker pull hyperapp/git-agent