You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add bind_address
Use public_addr as default
* Add documentation, tests for bind_address
* Use correct port for tests
* Link Distributed.md to DistributedConfiguration.md
* Fold DistributedConfiguration.md into Distributed.md
# The maximum size of the toolchain cache, in bytes.
361
+
# If unspecified the default is 10GB.
362
+
#toolchain_cache_size = 10737418240
363
+
# A public IP address and port that clients will use to connect to this builder.
364
+
public_addr = "192.168.1.1:10501"
365
+
# The socket address the builder will listen on. Falls back to public_addr.
366
+
#bind_address = "0.0.0.0:10501"
367
+
# The URL used to connect to the scheduler (should use https, given an ideal
368
+
# setup of a HTTPS server in front of the scheduler)
369
+
scheduler_url = "https://192.168.1.1"
370
+
371
+
[builder]
372
+
type = "overlay"
373
+
# The directory under which a sandboxed filesystem will be created for builds.
374
+
build_dir = "/tmp/build"
375
+
# The path to the bubblewrap version 0.3.0+ `bwrap` binary.
376
+
bwrap_path = "/usr/bin/bwrap"
377
+
378
+
[scheduler_auth]
379
+
type = "jwt_token"
380
+
# This will be generated by the `generate-jwt-hs256-server-token` command or
381
+
# provided by an administrator of the sccache cluster.
382
+
token = "my server's token"
383
+
```
384
+
385
+
386
+
#### [builder]
387
+
388
+
The `[builder]` section can be can be one of:
389
+
```toml
390
+
[builder]
391
+
type = "docker"
392
+
393
+
[builder]
394
+
type = "overlay"
395
+
# The directory under which a sandboxed filesystem will be created for builds.
396
+
build_dir = "/tmp/build"
397
+
# The path to the bubblewrap version 0.3.0+ `bwrap` binary.
398
+
bwrap_path = "/usr/bin/bwrap"
399
+
400
+
[builder]
401
+
type = "pot"
402
+
# Pot filesystem root
403
+
#pot_fs_root = "/opt/pot"
404
+
# Reference pot cloned when creating containers
405
+
#clone_from = "sccache-template"
406
+
# Command to invoke when calling pot
407
+
#pot_cmd = "pot"
408
+
# Arguments passed to `pot clone` command
409
+
#pot_clone_args = ["-i", "lo0|127.0.0.2"]
410
+
411
+
```
412
+
413
+
414
+
#### [scheduler_auth]
415
+
416
+
The `[scheduler_auth]` section can be can be one of:
417
+
```toml
418
+
[scheduler_auth]
419
+
type = "jwt_token"
420
+
token = "my server's token"
421
+
422
+
[scheduler_auth]
423
+
type = "token"
424
+
token = "preshared token"
425
+
426
+
[scheduler_auth]
427
+
type = "DANGEROUSLY_INSECURE"
428
+
```
429
+
430
+
288
431
# Building the Distributed Server Binaries
289
432
290
433
Until these binaries [are included in releases](https://github.com/mozilla/sccache/issues/393) I've put together a Docker container that can be used to easily build a release binary:
0 commit comments