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
/
rawhide-podman.yaml
88 lines (74 loc) · 2.36 KB
/
rawhide-podman.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
# To run `podman` on the host (assumes podman-remote is installed):
# $ export CONTAINER_HOST=$(limactl list rawhide --format 'unix://{{.Dir}}/sock/podman.sock')
# $ podman --remote ...
# This example requires Lima v0.8.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://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/Fedora-Cloud-Base-Rawhide-20220226.n.1.x86_64.qcow2"
arch: "x86_64"
digest: "sha256:2a490475dc0d48d468db6b16b98b52b762cd348b4b5002508f623ae9b0d3da12"
- location: "https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/aarch64/images/Fedora-Cloud-Base-Rawhide-20220226.n.1.aarch64.qcow2"
arch: "aarch64"
digest: "sha256:bc390a8a9f0d241487e74e1f24b58015200b5d324c0e0c7963fd96b429159a05"
# 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:
system: false
user: false
provision:
# `system` is executed with the root privilege
- mode: system
script: |
#!/bin/bash
set -eux -o pipefail
command -v podman >/dev/null 2>&1 && exit 0
yum install -y podman
systemctl --system enable --now podman.socket
# `user` is executed without the root privilege
- mode: user
script: |
#!/bin/bash
set -eux -o pipefail
systemctl --user enable --now podman.socket
probes:
- description: podman to be installed
script: |
#!/bin/bash
set -eux -o pipefail
if ! timeout 30s bash -c "until command -v podman; do sleep 3; done"; then
echo >&2 "podman is not installed yet"
exit 1
fi
hint: See "/var/log/cloud-init-output.log" in the guest
portForwards:
- guestSocket: "/run/user/{{.UID}}/podman/podman.sock"
hostSocket: "{{.Dir}}/sock/podman.sock"
message: |
To run `podman` on the host (assumes podman-remote is installed):
$ export CONTAINER_HOST=unix://{{.Dir}}/sock/podman.sock
$ podman{{if eq .HostOS "linux"}}-remote{{end}} ...
firmware:
# Use legacy BIOS instead of UEFI.
# Default: false
legacyBIOS: false
video:
# QEMU display, e.g., "none", "cocoa", "sdl", "gtk".
# Default: "none"
display: "none"