k3s/contrib/git-sync
nikhiljindal 2e9e46dd08 Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
..
demo Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
Dockerfile
README.md Add ga-beacon analytics to gendocs scripts 2015-05-15 18:56:38 -07:00
main.go let the contrib/git-sync use a for-loop, rather than relying on the pod's restart policy, to periodically pull from the repo 2015-06-01 11:13:51 -07:00

README.md

git-sync

git-sync is a command that pull a git repository to a local directory.

It can be used to source a container volume with the content of a git repo.

Usage

# build the container
docker build -t git-sync .
# run the git-sync container
docker run -d GIT_SYNC_REPO=https://github.com/GoogleCloudPlatform/kubernetes GIT_SYNC_DEST=/git -e GIT_SYNC_BRANCH=gh-pages -r HEAD GIT_SYNC_DEST=/git -v /git-data:/git git-sync
# run a nginx container to serve sync'ed content
docker run -d -p 8080:80 -v /git-data:/usr/share/nginx/html nginx 

Analytics