Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nix/runtime.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
iptables,
nftables,
util-linux,
coreutils,
cosign,
oras,
e2fsprogs,
Expand Down Expand Up @@ -143,6 +144,7 @@ let
urunc
iptables
util-linux
coreutils
];
in
runCommand "brig-runtime"
Expand Down Expand Up @@ -197,14 +199,14 @@ runCommand "brig-runtime"
#!${stdenv.shell}
# The containerd brig drives. Run as root.
set -eu
export PATH="${daemonPath}:\$PATH"
mkdir -p ${runDir} ${stateDir}/log ${stateDir}/cni/net.d
chmod 0710 ${runDir}
# nerdctl writes a lock and one conflist per sandbox network into the CNI
# config directory, so it cannot be the store. The bridge config is copied
# on every start, so a new package updates it; on NixOS the store is
# read-only and this is where it showed.
install -m 0644 ${etc}/etc/cni/net.d/10-brig-bridge.conflist ${stateDir}/cni/net.d/
export PATH="${daemonPath}:\$PATH"
export URUNC_CONFIG_FILE="${etc}/etc/urunc.toml"
exec ${containerd}/bin/containerd --config ${etc}/etc/containerd.toml "\$@"
EOF
Expand Down