contrib/git-sync: fix demo

This commit is contained in:
Johan Euphrosine
2015-02-05 17:11:44 -08:00
parent 8873426314
commit a4dce8df3b
5 changed files with 44 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ It can be used to source a container volume with the content of a git repo.
# build the container
docker build -t git-sync .
# run the git-sync container
docker run -d GIT_SYNC_REPO=https://github.com/GoogleCloudPlatform/kubernetes -e GIT_SYNC_BRANCH=gh-pages -r HEAD -v /git-data:/git git-sync
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
```