commit 07a9a1d3bfcb8ea274f62ca8a5ff05ff4268fea8
parent 74cecf9b4bb196a880ffe0c30627649c44be9288
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 29 Apr 2022 11:07:27 +0200
systems/modules: expose buildkitd as TCP
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/systems/modules/profiles/docker.stable.nix b/systems/modules/profiles/docker.stable.nix
@@ -18,6 +18,7 @@ in
description = "runc package to be used";
type = types.package;
};
+
};
};
config = mkIf cfg.enable {
@@ -28,6 +29,10 @@ in
buildkitd = {
enable = true;
settings = {
+ grpc = {
+ # FIXME(vdemeester) move TCP behind an option (and not 0.0.0.0)
+ address = [ "unix:///run/buildkit/buildkitd.sock" "tcp://0.0.0.0:1234" ];
+ };
worker.oci = {
enabled = false;
};
diff --git a/systems/modules/virtualisation/buildkit.nix b/systems/modules/virtualisation/buildkit.nix
@@ -52,7 +52,9 @@ in
settings = lib.mkOption {
type = settingsFormat.type;
- default = { };
+ default = {
+ grpc.address = [ "unix:///run/buildkit/buildkitd.sock" ];
+ };
description = ''
Verbatim lines to add to containerd.toml
'';
@@ -66,7 +68,6 @@ in
virtualisation.buildkitd = {
args = {
- addr = "unix:///run/buildkit/buildkitd.sock";
group = "buildkit";
config = toString configFile;
};