Add readme

This commit is contained in:
thomas committed 2021-09-05 18:00:38 +02:00
1 parent 8b4983f3fa
commit 6aa746023c
2 files changed
+13

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
# Git repository
You're looking at it.
This has been setup to allow SSH passthrough as described [here](https://docs.gitea.io/en-us/install-with-docker/).
The file `gitea-ssh` is the one used in `/app/gitea/gitea`. That finds the IP of the container automatically.
# [The rest of my docker-compose setup](/thomas/docker-server/)
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' gitea)
ssh -o StrictHostKeyChecking=no git@$IP "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"