mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-12-25 22:40:42 -05:00
docs: explain the LABELS unpriviliged runners should have
This commit is contained in:
parent
069e649fc3
commit
7339902cc4
1 changed files with 17 additions and 4 deletions
|
@ -73,13 +73,26 @@ echo 'export TERM=vt100' >> .bashrc
|
||||||
|
|
||||||
### Creating a runner
|
### Creating a runner
|
||||||
|
|
||||||
|
Multiple runners can co-exist on the same machine. To keep things
|
||||||
|
organized they are located in a directtory that is the same as the url
|
||||||
|
from which the token is obtained. For instance
|
||||||
|
DIR=codeberg.org/forgejo-integration means that the token was obtained from the
|
||||||
|
https://codeberg.org/forgejo-integration organization.
|
||||||
|
|
||||||
|
If a runner only provides unprivileged docker containers, the labels
|
||||||
|
should be
|
||||||
|
`LABELS=docker:docker://node:16-bullseye,ubuntu-latest:docker://node:16-bullseye`.
|
||||||
|
|
||||||
|
If a runner provides LXC containers and unprivileged docker
|
||||||
|
containers, the labels should be
|
||||||
|
`LABELS=docker:docker://node:16-bullseye,self-hosted`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
URL=codeberg.org/forgejo-integration
|
mkdir -p $DIR ; cd $DIR
|
||||||
mkdir -p $URL ; cd $URL
|
|
||||||
forgejo-runner generate-config > config.yml
|
forgejo-runner generate-config > config.yml
|
||||||
## edit config.yml
|
## edit config.yml
|
||||||
## obtain a token for $URL
|
## Obtain a $TOKEN from https://$DIR
|
||||||
forgejo-runner register --no-interactive --token XXXXXXX --name runner --instance https://codeberg.org --labels docker:docker://node:16-bullseye,self-hosted
|
forgejo-runner register --no-interactive --token $TOKEN --name runner --instance https://codeberg.org --labels $LABELS
|
||||||
forgejo-runner --config config.yml daemon |& cat -v > runner.log &
|
forgejo-runner --config config.yml daemon |& cat -v > runner.log &
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue