Adding versions to apk packages

Modifies Readme
This commit is contained in:
Akuario 2016-07-27 23:39:56 +02:00
parent 7dda3845ee
commit 9da9eac63f
2 changed files with 3 additions and 9 deletions

View file

@ -1,5 +1,5 @@
# git-server-docker
Git Server in Docker with Alpine Linux
A lightweight Git Server Docker image built with Alpine Linux. Available on [GitHub](https://github.com/jkarlosb/git-server-docker).
### Basic Usage
@ -9,7 +9,7 @@ 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 git-server-docker
$ 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
How check that container works:
@ -18,9 +18,3 @@ How check that container works:
How clone a repository:
$ git clone ssh://git@<ip-docker-server>:2222/git-server/repos/myrepo.git

View file

@ -4,7 +4,7 @@ cd /home/git
# Si hay alguna clave pública en la carpeta de keys
if [ "$(ls -A /git-server/keys/)" ]; then
cat /git-server/keys/*.pub >> .ssh/authorized_keys
cat /git-server/keys/*.pub > .ssh/authorized_keys
chown -R git:git .ssh
chmod 700 .ssh
chmod -R 600 .ssh/*