1 개요[ | ]
- git-sync
- 깃-싱크
- 로컬 디렉토리로 git 저장소를 pull하는 명령어
- git 저장소를 clone하고 upstream과 동기화를 유지하는 사이드카 애플리케이션
2 사용 예시[ | ]
Bash
Copy
# 컨테이너 구동
docker run -d \
-v /tmp/git-data:/tmp/git \
registry/git-sync:tag \
--repo=https://github.com/kubernetes/git-sync
--branch=master
--wait=30
# 콘텐츠를 서비스하는 nginx 컨테이너 구동
docker run -d \
-p 8080:80 \
-v /tmp/git-data:/usr/share/nginx/html \
nginx
3 같이 보기[ | ]
4 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.