Merge pull request #307 from haiyanmeng/doc

Add the `--root` flag into the Usage section
This commit is contained in:
Kubernetes Prow Robot 2020-11-17 22:06:05 -08:00 committed by GitHub
commit 22f69061ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@ docker run -d \
registry/git-sync:tag \ registry/git-sync:tag \
--repo=https://github.com/kubernetes/git-sync \ --repo=https://github.com/kubernetes/git-sync \
--branch=master \ --branch=master \
--root=/tmp/git/root \
--period=30s --period=30s
# run an nginx container to serve the content # run an nginx container to serve the content
@ -70,10 +71,11 @@ A webhook is configured using a set of CLI flags. At its most basic only `webhoo
``` ```
docker run -d \ docker run -d \
-v /tmp/git-data:/git \ -v /tmp/git-data:/tmp/git \
registry/git-sync:tag \ registry/git-sync:tag \
--repo=https://github.com/kubernetes/git-sync \ --repo=https://github.com/kubernetes/git-sync \
--branch=master \ --branch=master \
--root=/tmp/git/root \
--period=30s \ --period=30s \
--webhook-url="http://localhost:9090/-/reload" --webhook-url="http://localhost:9090/-/reload"
``` ```