doc: Clarify some parts
This commit is contained in:
parent
bf2cd29528
commit
ecac47ae7b
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
@ -40,15 +40,17 @@ Deploy
|
|||
|
||||
## Create Wrapper
|
||||
|
||||
adduser --disabled-password git
|
||||
adduser git docker
|
||||
Add git user on host
|
||||
|
||||
adduser --disabled-password git
|
||||
adduser git docker
|
||||
|
||||
Create ssh key for git user
|
||||
|
||||
ssh-keygen -t rsa -f /home/git/.ssh/id_rsa -C "Gitea Host Key"
|
||||
chmod 600 /home/git/.ssh/id_rsa
|
||||
|
||||
Create `/usr/local/bin/gitea`
|
||||
Create `/usr/local/bin/gitea` with the following content
|
||||
|
||||
GITEA_CID=code.web.1
|
||||
# GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}')"
|
||||
|
@ -56,3 +58,5 @@ Create `/usr/local/bin/gitea`
|
|||
|
||||
ssh -T -p 22 -o StrictHostKeyChecking=no git@$GITEA_IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
||||
|
||||
Success.
|
||||
|
||||
|
|
Loading…
Reference in a new issue