bazel-build: remote-only builds for slackerbot containers
- Containers get an enforcing bazel wrapper: remote spawn strategy, no local fallback, and refused override flags. Gateway rc is written at boot. - NativeLink: ExecPaths for the DynamicUser state dir (was noexec). - Bazel server exits after 5 idle minutes; shared per-host repo cache (/repo-cache, idmap); goose hints say a local build means trouble. - Removed the /handoff -> /outputs materializer; outputs download into bazel-bin again. - slackerbot containers: 4G/1 CPU, up to 8G/2 CPUs. - fws1: disable networkd wait-online. - slackerbot 4db99ea (send_file symlinked home, trimmed tool lines). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0119iKoN3fSvRGUAYHupPW4U
This commit is contained in:
1 parent
594a1c1901
commit
2a2b1d8421
5 files changed
+124
-356
No files matched your search
@@ -8,7 +8,7 @@ let
|
||||
# The system each container boots (slackerbot's agent + bazel/rbuild);
|
||||
# updated on every rebuild.
|
||||
system = "${bazel.agentSystem}";
|
||||
# /handoff and /outputs for remote Bazel builds on this host.
|
||||
# Shared Bazel download cache (/repo-cache) for the containers.
|
||||
rw_binds = bazel.binds.rw;
|
||||
ro_binds = bazel.binds.ro;
|
||||
machines_dir = "/var/lib/machines";
|
||||
@@ -28,8 +28,8 @@ let
|
||||
OPENROUTER_API_KEY = "$OPENROUTER_API_KEY";
|
||||
};
|
||||
|
||||
container = { memory_mb = 2048; cpus = 1.0; };
|
||||
max_container = { memory_mb = 4096; cpus = 2.0; };
|
||||
container = { memory_mb = 4096; cpus = 1.0; };
|
||||
max_container = { memory_mb = 8192; cpus = 2.0; };
|
||||
# Leave room for ollama, ds4, comfyui, hermes and the robots.
|
||||
host_reserve = { memory_mb = 32768; cpus = 4.0; };
|
||||
storage = { min = "2G"; max = "5G"; limit = "20G"; };
|
||||
|
||||
@@ -6,7 +6,7 @@ let
|
||||
# The system each container boots (slackerbot's agent + bazel/rbuild);
|
||||
# updated on every rebuild.
|
||||
system = "${bazel.agentSystem}";
|
||||
# /handoff and /outputs for remote Bazel builds on this host.
|
||||
# Shared Bazel download cache (/repo-cache) for the containers.
|
||||
rw_binds = bazel.binds.rw;
|
||||
ro_binds = bazel.binds.ro;
|
||||
machines_dir = "/var/lib/machines";
|
||||
@@ -18,8 +18,8 @@ let
|
||||
allow_indefinite = true;
|
||||
boot_timeout = "2m";
|
||||
|
||||
container = { memory_mb = 2048; cpus = 1.0; };
|
||||
max_container = { memory_mb = 4096; cpus = 2.0; };
|
||||
container = { memory_mb = 4096; cpus = 1.0; };
|
||||
max_container = { memory_mb = 8192; cpus = 2.0; };
|
||||
host_reserve = { memory_mb = 8192; cpus = 2.0; };
|
||||
storage = { min = "2G"; max = "5G"; limit = "20G"; };
|
||||
drives = [{ path = homes; reserve = "100G"; }];
|
||||
@@ -58,6 +58,9 @@ in
|
||||
# Container links belong to systemd-networkd.
|
||||
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
|
||||
networking.dhcpcd.denyInterfaces = [ "ve-*" ];
|
||||
# networkd only has the container links here (NetworkManager owns wlan),
|
||||
# so wait-online would always time out.
|
||||
systemd.network.wait-online.enable = false;
|
||||
|
||||
systemd.tmpfiles.rules = [ "d ${homes} 0700 root root -" ];
|
||||
}
|
||||
Reference in new issue
Block a user