Merge pull request #147 from 7c6f434c/fix-operator-docs
Document my experience with re-setting-up a builder
This commit is contained in:
commit
f272f96b7d
20
README.md
20
README.md
|
@ -177,6 +177,15 @@ $ GC_INITIAL_HEAP_SIZE=4g nix-env -f ./outpaths.nix -qaP --no-name --out-path --
|
||||||
|
|
||||||
# Running a builder
|
# Running a builder
|
||||||
|
|
||||||
|
It is recommended to create a special user for the ofBorg operation.
|
||||||
|
This user should have git configuration for default username/email for
|
||||||
|
non-interactive merges. For example:
|
||||||
|
```
|
||||||
|
git config --global user.email "graham+cofborg@example.com"
|
||||||
|
git config --global user.name "GrahamCOfBorg"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
nix-shell ./shell.nix
|
nix-shell ./shell.nix
|
||||||
$ cd ofborg
|
$ cd ofborg
|
||||||
|
@ -209,6 +218,17 @@ they are only used in the backend processing tasks, and there is no
|
||||||
need for them on builders. However, to update the list in
|
need for them on builders. However, to update the list in
|
||||||
config.known-users.json, run `./scripts/update-known-users.sh`.
|
config.known-users.json, run `./scripts/update-known-users.sh`.
|
||||||
|
|
||||||
|
In case you have a non-trivial setup on Linux, make sure that the ofborg
|
||||||
|
user has access to `dev/kvm`, as it is needed for running tests.
|
||||||
|
|
||||||
|
If you want to run multiple builder instances on the same physical
|
||||||
|
machine please make sure they use different configs with different
|
||||||
|
instance identity (same username/password is OK) and different
|
||||||
|
repository paths. Running two builders with the same config risks data
|
||||||
|
corruption.
|
||||||
|
|
||||||
|
See also: https://github.com/NixOS/ofborg/wiki/Operating-a-Builder
|
||||||
|
|
||||||
## old php stuff...
|
## old php stuff...
|
||||||
|
|
||||||
Only Graham needs to do this, since I run the only remaining PHP
|
Only Graham needs to do this, since I run the only remaining PHP
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"runner": {
|
"runner": {
|
||||||
"identity": "grahamc-laptop"
|
"identity": "..."
|
||||||
},
|
},
|
||||||
"checkout": {
|
"checkout": {
|
||||||
"root": "/home/grahamc/.nix-test-rs"
|
"root": "/home/grahamc/.nix-test-rs"
|
||||||
|
@ -16,5 +16,8 @@
|
||||||
"virtualhost": "ofborg",
|
"virtualhost": "ofborg",
|
||||||
"username": "...",
|
"username": "...",
|
||||||
"password": "..."
|
"password": "..."
|
||||||
|
},
|
||||||
|
"feedback": {
|
||||||
|
"full_logs": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue