This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora-nerdctl.yaml
63 lines (53 loc) · 1.65 KB
/
fedora-nerdctl.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
# This example requires Lima v0.7.0 or later.
# Arch: "default", "x86_64", "aarch64".
# Default: "default" (corresponds to the host architecture)
arch: "default"
# An image must support systemd and cloud-init.
# Default: none (must be specified)
images:
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/x86_64/images/Fedora-Cloud-Base-35-1.2.x86_64.qcow2"
arch: "x86_64"
digest: "sha256:fe84502779b3477284a8d4c86731f642ca10dd3984d2b5eccdf82630a9ca2de6"
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/aarch64/images/Fedora-Cloud-Base-35-1.2.aarch64.qcow2"
arch: "aarch64"
digest: "sha256:c71f2e6ce75b516d565e2c297ea9994c69b946cb3eaa0a4bbea400dbd6f59ae6"
# CPUs
# Default: 4
cpus: 2
# Memory size
# Default: "4GiB"
memory: "2GiB"
# Disk size
# Default: "100GiB"
disk: "20GiB"
mounts:
- location: "~"
writable: false
- location: "/tmp/lima"
writable: true
containerd:
# Enable system-wide (aka rootful) containerd and its dependencies (BuildKit, Stargz Snapshotter)
# Default: false
system: true
# Enable user-scoped (aka rootless) containerd and its dependencies
# Default: true
user: true
probes:
- description: nerdctl to be installed
script: |
#!/bin/bash
set -eux -o pipefail
if ! timeout 30s bash -c "until command -v nerdctl; do sleep 3; done"; then
echo >&2 "nerdctl is not installed yet"
exit 1
fi
hint: See "/var/log/cloud-init-output.log" in the guest
firmware:
# Use legacy BIOS instead of UEFI.
# Default: false
legacyBIOS: false
video:
# QEMU display, e.g., "none", "cocoa", "sdl", "gtk".
# Default: "none"
display: "none"