doc: Clarify some parts
This commit is contained in:
parent
bf2cd29528
commit
ecac47ae7b
1 changed files with 7 additions and 3 deletions
|
@ -40,6 +40,8 @@ Deploy
|
||||||
|
|
||||||
## Create Wrapper
|
## Create Wrapper
|
||||||
|
|
||||||
|
Add git user on host
|
||||||
|
|
||||||
adduser --disabled-password git
|
adduser --disabled-password git
|
||||||
adduser git docker
|
adduser git docker
|
||||||
|
|
||||||
|
@ -48,7 +50,7 @@ Create ssh key for git user
|
||||||
ssh-keygen -t rsa -f /home/git/.ssh/id_rsa -C "Gitea Host Key"
|
ssh-keygen -t rsa -f /home/git/.ssh/id_rsa -C "Gitea Host Key"
|
||||||
chmod 600 /home/git/.ssh/id_rsa
|
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_CID=code.web.1
|
||||||
# GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}')"
|
# 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 $@"
|
ssh -T -p 22 -o StrictHostKeyChecking=no git@$GITEA_IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
||||||
|
|
||||||
|
Success.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue