Initial commit

Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
Vasiliy Doylov 2025-06-06 22:35:31 +03:00
commit ec134e6835
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582
6 changed files with 49 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
data
conf

29
compose.yml Normal file
View file

@ -0,0 +1,29 @@
services:
git-runner-misc:
image: code.forgejo.org/forgejo/runner:6
environment:
INSTANCE: "http://192.168.1.5:3000"
TOKEN: "HjZLMnlioCJzatqKxC2rFYgKYB5lOfriNYLBrqME"
NAME: "Misc"
LABELS: "MeowFS,Misc"
volumes:
- ./run-runner:/run-runner
- ./setup-misc:/setup-misc
- ./setup-runner:/setup-runner
- /var/run/docker.sock:/var/run/docker.sock
- ./data/misc/:/data
- ./conf/misc/:/conf
user: 0:0
command: "/setup-misc"
git-runner-pmbootstrap:
restart: unless-stopped
extends: git-runner-misc
environment:
NAME: "Pmbootstrap"
LABELS: "MeowFS,Pmbootstrap"
volumes:
- ./data/pmb/:/data
- ./conf/pmb/:/conf
- ./setup-pmbootstrap:/setup-pmbootstrap
command: "/setup-pmbootstrap"

2
run-runner Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
forgejo-runner daemon -c /conf/config.yaml

3
setup-misc Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
/setup-runner
/run-runner

5
setup-pmbootstrap Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
/setup-runner
git clone https://git.nekocwd.duckdns.org/Mirror/pmbootstrap /data/pmbootstrap || true
ln -s /data/pmbootstrap/pmbootstrap.py /usr/bin/pmbootstrap || true
/run-runner

8
setup-runner Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
echo Starting runner...
if [ ! -e /conf/config.yaml ]; then
echo "Configuration not found. We need to create one"
forgejo-runner generate-config > /conf/config.yaml
forgejo-runner register -c /conf/config.yaml --no-interactive --instance $INSTANCE --labels $LABELS --name $NAME --token $TOKEN
fi
apk add nodejs git # For basic checkout action