git-server-docker-stagit

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

commit 873dae4722180358742101144b0cae6d4ad54ae4
parent 0ccac8f812890d6d4b24463fadf55e7cee4d8560
Author: Akuario <jkarlos.b@gmail.com>
Date:   Tue, 23 May 2017 21:57:26 +0200

Enhanced README.md (related to #4). Changed mantainer name and shell message

Diffstat:
MDockerfile | 2+-
MREADME.md | 11++++++-----
Mgit-shell-commands/no-interactive-login | 2+-
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.4 -MAINTAINER José Carlos Bernárdez "carlos@z4studios.com" +MAINTAINER Carlos Bernárdez "carlos@z4studios.com" # "--no-cache" is new in Alpine 3.3 and it avoid using # "--update + rm -rf /var/cache/apk/*" (to remove cache) diff --git a/README.md b/README.md @@ -11,16 +11,17 @@ How to run the container in port 2222 with two volumes, keys volume for public k How to use a public key: - From host: - $ cp ~/.ssh/id_rsa.pub ~/git-server/keys - From remote: - $ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys + Copy them to keys folder: + - From host: $ cp ~/.ssh/id_rsa.pub ~/git-server/keys + - From remote: $ scp ~/.ssh/id_rsa.pub user@host:~/git-server/keys + You need restart the container when keys are updated: + $ docker restart <container-id> How to check that container works (you must to have a key): $ ssh git@<ip-docker-server> -p 2222 ... - Welcome to jkarlos/git-server-docker! + Welcome to git-server-docker! You've successfully authenticated, but I do not provide interactive shell access. ... diff --git a/git-shell-commands/no-interactive-login b/git-shell-commands/no-interactive-login @@ -1,5 +1,5 @@ #!/bin/sh -printf '%s\n' "Welcome to jkarlos/git-server-docker!" +printf '%s\n' "Welcome to git-server-docker!" printf '%s\n' "You've successfully authenticated, but I do not" printf '%s\n' "provide interactive shell access." exit 128