Container exposing a git repository and auto-updating it
1M+
Image: corfr/git-autoupdate
This image:
GIT_URL, that it clones and expose as a volume (/git)Arguments:
GIT_URL: provided as this to git clonePOLLING_FREQ: polling frequency as given to cron, something like "*/5 * * * *", default to 5 minutesSSH_KEY: can be used to provide an SSH key to authenticate against remote repositoryVOLUME_PATH: if you're not happy with the default volume /gitWarning:
SSH_KEY expect as base64'd stringFor instance you can deploy this as a systemd unit to serve an always up-to-date repository to other services.
Sample usages:
docker run \
--rm \
--name legato-docs
-e GIT_URL=https://github.com/legatoproject/legato-docs.git \
corfr/git-autoupdate
docker run \
--rm \
--name legato-docs
-e [email protected]:legatoproject/legato-docs.git \
-e SSH_KEY="$(cat ~/.ssh/id_rsa | base64)" \
corfr/git-autoupdate
docker run \
--rm \
--name legato-docs
-e GIT_URL=https://github.com/legatoproject/legato-docs.git \
-e VOLUME_PATH=/legato-docs \
-v /legato-docs \
corfr/git-autoupdate
Content type
Image
Digest
sha256:a57c18251…
Size
98.4 MB
Last updated
about 10 years ago
docker pull corfr/git-autoupdate