This commit is contained in:
Nikita Romanov 2025-06-14 23:49:32 +03:00
parent a932e27835
commit 1e840c013f
6 changed files with 26 additions and 18 deletions

View file

@ -1,2 +1,6 @@
# Kaiju: Platform
> logiq.one deployments ops
```text
docker:docker://data.forgejo.org/oci/alpine:3.20
```

View file

@ -24,5 +24,5 @@ services:
volumes:
- ./runner/data:/data
restart: unless-stopped
command: "/bin/sh -c 'while : ; do sleep 1 ; done ;'"
# command: "/bin/sh -c 'sleep 5; forgejo-runner daemon'"
command: "/bin/sh -c 'sleep 5; forgejo-runner daemon'"
# command: "/bin/sh -c 'while : ; do sleep 1 ; done ;'"

18
prepare.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Set rights and permissions for the runner data directory
set -e
mkdir -p ./runner/data
touch ./runner/data/.runner
mkdir -p ./runner/data/.cache
chown -R 1001:1001 ./runner/data/.runner
chown -R 1001:1001 ./runner/data/.cache
chmod 775 ./runner/data/.runner
chmod 775 ./runner/data/.cache
chmod g+s ./runner/data/.runner
chmod g+s ./runner/data/.cache
docker compose up --build --force-recreate --detach
docker exec -it runner /bin/sh -c "forgejo-runner register"

2
register.sh Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
docker exec -it runner bash -c "cd /runner && ./register.sh"

2
run.sh
View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
docker compose up --build --force-recreate --detach

View file

@ -1,14 +0,0 @@
#!/usr/bin/env bash
set -e
mkdir -p data
touch data/.runner
mkdir -p data/.cache
chown -R 1001:1001 data/.runner
chown -R 1001:1001 data/.cache
chmod 775 data/.runner
chmod 775 data/.cache
chmod g+s data/.runner
chmod g+s data/.cache