mirror of
https://github.com/nicolabs/git-server-docker.git
synced 2025-09-07 18:11:08 +02:00
Adding versions to apk packages
Modifies Readme
This commit is contained in:
parent
7dda3845ee
commit
9da9eac63f
10
README.md
10
README.md
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
2
start.sh
2
start.sh
|
@ -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/*
|
||||
|
|
Loading…
Reference in a new issue