k3s/contrib/git-sync
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
..
demo Stop using named ports in examples and scripts. 2015-03-01 21:30:45 -08:00
Dockerfile config/git-sync: add envvar prefix, fix README 2014-12-22 17:34:56 -08:00
README.md contrib/git-sync: fix demo 2015-02-05 17:11:44 -08:00
main.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04: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