Fix README to actually run
This commit is contained in:
parent
4c112490af
commit
0a403496bf
12
README.md
12
README.md
|
|
@ -12,9 +12,17 @@ The local repository is created in a subdirectory of /git, with the subdirectory
|
|||
|
||||
```
|
||||
# build the container
|
||||
docker build -t git-sync .
|
||||
docker build -t yourname/git-sync .
|
||||
# or
|
||||
make container
|
||||
|
||||
# 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 -v /git-data:/git git-sync
|
||||
docker run -d \
|
||||
-e GIT_SYNC_REPO=https://github.com/kubernetes/kubernetes \
|
||||
-e GIT_SYNC_DEST=/git \
|
||||
-e GIT_SYNC_BRANCH=gh-pages \
|
||||
-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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue