Sign inSign up

iankoulski/do-git

By iankoulski

•Updated about 2 years ago

git container based on Alpine plus a git copy function

Image
Developer tools
0

340

iankoulski/do-git repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:802e3878b…

Size

12.3 MB

Last updated

about 2 years ago

docker pull iankoulski/do-git