Tool for keeping a local folder synced with a remote git repository.
Define three environment variables to the image:
GIT_REPO
: The url for pull from the repoGIT_BRANCH
: Which branch to pull fromINTERVAL
: How many seconds between each pull request
To connect via SSH, place the private and public key files, along with the Docker host's known_hosts
file into the /keys
folder inside the container. My recommendation is to the Secrets
functionality and mount these in the folder, but you could also use a bind mount from the host's ~/.ssh
folder.