Merge branch 'improve_docs' into 'main'
Emphacise need to pre-create config.toml See merge request qontainers/pipglr!19
This commit is contained in:
@@ -43,7 +43,7 @@ ARG NESTED_PRIVILEGED=true
|
|||||||
# may be changed if you know what you're doing.
|
# may be changed if you know what you're doing.
|
||||||
LABEL register="podman run -it --rm \
|
LABEL register="podman run -it --rm \
|
||||||
--secret=REGISTRATION_TOKEN,type=env \
|
--secret=REGISTRATION_TOKEN,type=env \
|
||||||
-v ./config.toml:/home/runner/.gitlab-runner//config.toml:Z \
|
-v ./config.toml:/home/runner/.gitlab-runner/config.toml:Z \
|
||||||
-e REGISTER_NON_INTERACTIVE=true \
|
-e REGISTER_NON_INTERACTIVE=true \
|
||||||
-e CI_SERVER_URL=https://gitlab.com/ \
|
-e CI_SERVER_URL=https://gitlab.com/ \
|
||||||
-e RUNNER_NAME=pipglr \
|
-e RUNNER_NAME=pipglr \
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -60,6 +60,15 @@ refers to this value as an *activation* token, but the usage is the same.
|
|||||||
```bash
|
```bash
|
||||||
$ IMAGE="registry.gitlab.com/qontainers/pipglr:latest"
|
$ IMAGE="registry.gitlab.com/qontainers/pipglr:latest"
|
||||||
$ echo '<actual registration token>' | podman secret create REGISTRATION_TOKEN -
|
$ echo '<actual registration token>' | podman secret create REGISTRATION_TOKEN -
|
||||||
|
```
|
||||||
|
|
||||||
|
Next, ***a blank `config.toml` file*** needs to be created. Without this, the
|
||||||
|
`reigster` *runlabel* will return a permission-denied error. Once the empty
|
||||||
|
`config.toml` file is created, you may register one or more runners by repeating
|
||||||
|
the registration *runlabel* as follows:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ IMAGE="registry.gitlab.com/qontainers/pipglr:latest"
|
||||||
$ touch ./config.toml # important: file must exist, even if empty.
|
$ touch ./config.toml # important: file must exist, even if empty.
|
||||||
$ podman container runlabel register $IMAGE
|
$ podman container runlabel register $IMAGE
|
||||||
...repeat as desired...
|
...repeat as desired...
|
||||||
@@ -80,6 +89,11 @@ $ podman secret create config.toml ./config.toml
|
|||||||
$ rm ./config.toml # if desired
|
$ rm ./config.toml # if desired
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This may be necessary, for example, to increase the default `concurrency` value
|
||||||
|
to reflect the number of registered runners. If you need to edit this file
|
||||||
|
after commiting it as a secret, there's
|
||||||
|
[ a `dumpconfig` *runlabel* for that](README.md#configuration-editing).
|
||||||
|
|
||||||
#### Volume setup (step 3)
|
#### Volume setup (step 3)
|
||||||
|
|
||||||
Since several users are utilized inside the container volumes must be
|
Since several users are utilized inside the container volumes must be
|
||||||
|
|||||||
Reference in New Issue
Block a user