Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noteed/docker-git

Git, wrapped in Docker (not terribly useful)
https://github.com/noteed/docker-git

Last synced: about 2 months ago
JSON representation

Git, wrapped in Docker (not terribly useful)

Awesome Lists containing this project

README

        

# docker-git

This repository holds a Dockerfile (to create a Docker image) to clone a Git
repository and make a checkout. That's it.

Typical usage (assuming the image is built as `noteed/git`):

> docker run \
-v /tmp/github-deploy-ssh:/home/worker/.ssh \
-v /tmp/gits:/home/worker/gits \
-v /tmp/checkout:/home/worker/checkout \
noteed/git \
/home/worker/checkout.sh \
[email protected]:username/project.git project.git develop

The host directory `/tmp/github-deploy-ssh` is supposed to contain a private
`id_rsa` key and a `known_hosts` file. This could be your home `.ssh`
directory.

The host directory `/tmp/gits` is optional and can be used if you want to
retain (possibly as a cache) already cloned repositories.

The host directory `/tmp/checkout/` is where you want a working copy to be
done.

The last three arguments are used to name the repository to be cloned, the
local repository name to create, and the branch to check out.