wip
This commit is contained in:
parent
a932e27835
commit
1e840c013f
6 changed files with 26 additions and 18 deletions
18
prepare.sh
Executable file
18
prepare.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue