doc: Clarify some parts

This commit is contained in:
Glenn Y. Rolland 2022-12-30 15:24:35 +01:00
parent bf2cd29528
commit ecac47ae7b

View file

@ -40,15 +40,17 @@ Deploy
## Create Wrapper ## Create Wrapper
adduser --disabled-password git Add git user on host
adduser git docker
adduser --disabled-password git
adduser git docker
Create ssh key for git user 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.