A do-framework project to build a git container based on Alpine and run git commands. This container also has a utility to download folders from github to a specified destination.
Build the do-git container image
./build.sh
Run a do-git container
./run.sh
or
./run.sh <git_command>
Check the status of your do-git container
./status.sh
Open a do-git container shell or execute a command into a running do-git container
./exec.sh
or
./exec.sh <git_command>
Remove a running do-git container
./stop.sh
An embedded script within this container enables users to copy content of a specified path from a github repository to a destination folder. This functionality is implemented the github native sparse-checkout feature.
The following example downloads the linux folder from the master branch of the depend-on-docker github repo:
docker run -it --rm -v $(pwd)/..:/wd iankoulski/do-git /gitcp.sh https://github.com/iankoulski/depend-on-docker/tree/master/linux /wd/linux"
Please see the LICENSE file for project license details