From d18c2e9831d4e6222e658e08e8f10cd8c1fe9ff2 Mon Sep 17 00:00:00 2001 From: Olly Pomeroy Date: Thu, 22 Dec 2022 10:55:14 +0000 Subject: [PATCH] fix: Configure Buildkit Namespace as Env Variable The containerd-rootless-setup.sh script in nerdctl takes a CONTAINERND_NAMESPACE variable when configuring the buildkit containerd worker namespace. This variable is defined here in lima so that it is passed into the containerd-rootless-setup.sh script, used by the CIDATA scripts while provisioning the VM. Signed-off-by: Olly Pomeroy --- finch.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/finch.yaml b/finch.yaml index 0d6c68c3c..784220765 100644 --- a/finch.yaml +++ b/finch.yaml @@ -185,3 +185,15 @@ video: # on performance on macOS hosts: https://gitlab.com/qemu-project/qemu/-/issues/334 # 🟢 Builtin default: "none" display: null + +# Extra environment variables that will be loaded into the VM at start up. +# These variables are consumed by internal init scripts, and also added +# to /etc/environment. +# If you set any of "ftp_proxy", "http_proxy", "https_proxy", or "no_proxy", then +# Lima will automatically set an uppercase variant to the same value as well. +# 🟢 Builtin default: null +env: + # Containerd namespace is used by the lima cidata script + # 40-install-containerd.sh. Specifically this variable is defining the + # Buildkit Workers Containerd namespace. + CONTAINERD_NAMESPACE: finch \ No newline at end of file