Compare commits
2 commits
74d5d6edbc
...
64d5f63da0
Author | SHA1 | Date | |
---|---|---|---|
64d5f63da0 | |||
458c277c18 |
1 changed files with 7 additions and 5 deletions
12
README.md
12
README.md
|
@ -3,9 +3,11 @@
|
||||||
|
|
||||||
## Setup on Dokku
|
## Setup on Dokku
|
||||||
|
|
||||||
|
<!--
|
||||||
Define secrets
|
Define secrets
|
||||||
|
|
||||||
$(openssl rand -hex 16)
|
$(openssl rand -hex 16)
|
||||||
|
-->
|
||||||
|
|
||||||
Create APP
|
Create APP
|
||||||
|
|
||||||
|
@ -47,16 +49,16 @@ Add git user on host
|
||||||
|
|
||||||
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 "Forgejo Host Key"
|
||||||
chmod 600 /home/git/.ssh/id_rsa
|
chmod 600 /home/git/.ssh/id_rsa
|
||||||
|
|
||||||
Create `/usr/local/bin/forgejo` with the following content
|
Create `/usr/local/bin/forgejo` with the following content
|
||||||
|
|
||||||
GITEA_CID=code.web.1
|
FORGEJO_CID=code.web.1
|
||||||
# GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}')"
|
# FORGEJO_IP="$(docker inspect "$FORGEJO_CID" -f '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}')"
|
||||||
GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ .NetworkSettings.IPAddress }}' 2>/dev/null )"
|
FORGEJO_IP="$(docker inspect "$FORGEJO_CID" -f '{{ .NetworkSettings.IPAddress }}' 2>/dev/null )"
|
||||||
|
|
||||||
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@$FORGEJO_IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
||||||
|
|
||||||
Success.
|
Success.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue