Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/noteed/docker-git
- Owner: noteed
- Created: 2015-04-17T17:42:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T19:27:36.000Z (over 9 years ago)
- Last Synced: 2023-04-13T10:31:54.273Z (over 1 year ago)
- Language: Shell
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 developThe 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.