git-server-docker-stagit

git-server-with-stagit
git clone git://git.andersuno.nu/git-server-docker-stagit.git
Log | Files | Refs | README

commit a972c35bfef9dc7f112677db393025b3aa542e22
parent 9da9eac63f7b35d1201e5457518fe9dc2bd36466
Author: Akuario <jkarlos.b@gmail.com>
Date:   Thu, 28 Jul 2016 01:00:27 +0200

Modified Readme

Diffstat:
MREADME.md | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -9,12 +9,20 @@ How to make the image: How to run the container in port 2222 with two volumes, keys volumen for public keys and repos volume for git repositories: - $ docker run -d -p 2222:22 -v /Users/carlos/git-server/keys:/git-server/keys -v /Users/carlos/git-server/repos:/git-server/repos jkarlos/git-server-docker + $ docker run -d -p 2222:22 -v /home/jkarlos/git-server/keys:/git-server/keys -v /home/jkarlos/git-server/repos:/git-server/repos jkarlos/git-server-docker How check that container works: - $ ssh git@<ip-docker-server> -p 2222 -v + $ ssh git@<ip-docker-server> -p 2222 -v How clone a repository: $ git clone ssh://git@<ip-docker-server>:2222/git-server/repos/myrepo.git + +How generate a pair keys in client machine: + + $ ssh-keygen -t rsa + +How upload quickly a public key: + + $ scp ~/.ssh/id_rsa.pub user@host:/home/jkarlos/git-server/keys