Skip to content

iankoulski/do-git

Repository files navigation

do-git

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

Build the do-git container image

./build.sh

Run

Run a do-git container

./run.sh

or 

./run.sh <git_command>

Status

Check the status of your do-git container

./status.sh

Exec

Open a do-git container shell or execute a command into a running do-git container

./exec.sh

or 

./exec.sh <git_command>

Stop

Remove a running do-git container

./stop.sh

Download folder from github repo using sparse-checkout

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"

License

Please see the LICENSE file for project license details

About

git container based on Alpine and the do-framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published