-
Notifications
You must be signed in to change notification settings - Fork 0
/
lima.yaml
37 lines (36 loc) · 1.12 KB
/
lima.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This template requires Lima v0.7.0 or later
images:
- location: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2"
arch: "x86_64"
- location: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-arm64.qcow2"
arch: "aarch64"
mounts:
- location: "~"
- location: "/tmp/lima"
writable: true
containerd:
system: false
user: false
provision:
# dependencies
- mode: system
script: |
#!/bin/bash
set -eux -o pipefail
command -v newuidmap >/dev/null 2>&1 && exit 0
export DEBIAN_FRONTEND=noninteractive
apt-get install -y libseccomp2 libglib2.0-0 libsystemd0 libcap2 libyajl2 libgpgme11 libslirp0
apt-get install -y uidmap dbus-user-session iptables
# user session
- mode: user
script: |
#!/bin/bash
set -eux -o pipefail
test -e $HOME/.config/containers/containers.conf && exit 0
systemctl --user start dbus
mkdir -p $HOME/.config/containers
cat <<EOF >$HOME/.config/containers/containers.conf
[network]
network_backend = "netavark"
network_config_dir = "$HOME/.local/share/containers/storage/networks"
EOF