Compare commits
No commits in common. "64d5f63da0071d73fa7241f94d3eef1f6fe3eafd" and "74d5d6edbce16ddb9eea04eec4c262b277d35e7a" have entirely different histories.
64d5f63da0
...
74d5d6edbc
1 changed files with 5 additions and 7 deletions
12
README.md
12
README.md
|
@ -3,11 +3,9 @@
|
||||||
|
|
||||||
## Setup on Dokku
|
## Setup on Dokku
|
||||||
|
|
||||||
<!--
|
|
||||||
Define secrets
|
Define secrets
|
||||||
|
|
||||||
$(openssl rand -hex 16)
|
$(openssl rand -hex 16)
|
||||||
-->
|
|
||||||
|
|
||||||
Create APP
|
Create APP
|
||||||
|
|
||||||
|
@ -49,16 +47,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 "Forgejo 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/forgejo` with the following content
|
Create `/usr/local/bin/forgejo` with the following content
|
||||||
|
|
||||||
FORGEJO_CID=code.web.1
|
GITEA_CID=code.web.1
|
||||||
# FORGEJO_IP="$(docker inspect "$FORGEJO_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 }}')"
|
||||||
FORGEJO_IP="$(docker inspect "$FORGEJO_CID" -f '{{ .NetworkSettings.IPAddress }}' 2>/dev/null )"
|
GITEA_IP="$(docker inspect "$GITEA_CID" -f '{{ .NetworkSettings.IPAddress }}' 2>/dev/null )"
|
||||||
|
|
||||||
ssh -T -p 22 -o StrictHostKeyChecking=no git@$FORGEJO_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.
|
Success.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue