2020-02-17 13:00:57 +00:00
# Docker.Containers.GitSparseClone [![Build Status](https://ci.spamasaurus.com/api/badges/djpbessems/Docker.Containers.GitSparseClone/status.svg)](https://ci.spamasaurus.com/djpbessems/Docker.Containers.GitSparseClone)
Useful as a Kubernetes-sidecar container that downloads files from a git-repository to a Kubernetes-volumeMount, which other containers can then also mount and use.
2020-02-17 12:38:48 +00:00
2020-02-17 13:00:57 +00:00
### Usage:
```
docker run -it \
-e SPARSE_CHECKOUT=< filter > \
-e REMOTE_REPO=< url > \
-e REMOTE_BRANCH=< branch > \
-e TARGET_DIR=< path > \
# Optional
2020-02-17 14:11:27 +00:00
-e FLATTEN_FOLDER=true \
2020-02-17 13:00:57 +00:00
-d djpbessems/git-sidecar
```