HUB
Sign inSign up

bonesoul/git-sync

By bonesoul

•Updated almost 11 years ago

git sync

Image
1

465

bonesoul/git-sync repository overview

⁠git-sync

fork from kubernetes/contrib⁠

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 -e GIT_SYNC_REPO=https://github.com/c4po/bonesoul_web.git \
 -e GIT_SYNC_DEST=/git -e GIT_SYNC_BRANCH=master -e GIT_SYNC_WAIT=60 -v /git-data:/git bonesoul/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

Tag summary
Recent tags
Content type
Image
Digest
Size
195.9 MB
Last updated
almost 11 years ago
docker pull bonesoul/git-sync:latest