Fix conditional check to out of tree image directory setting
[AGL/meta-agl-devel.git] / meta-agl-ic-container / dynamic-layers / meta-raspberrypi / recipes-container / container-manager-config / cm-config-cluster-demo / cluster-demo.json
1 {
2         "name": "cluster-demo",
3         "role": "cluster",
4         "base": {
5                 "autoboot": true,
6                 "bootpriority": 1,
7                 "rootfs": {
8                         "path": "/opt/container/guests/cluster-demo/rootfs",
9                         "filesystem":   "ext4",
10                         "mode":         "rw",
11                         "blockdev": [
12                                 "/dev/mmcblk0p3",
13                                 "/dev/mmcblk0p3"
14                         ]
15                 },
16                 "lifecycle": {
17                         "halt": "SIGRTMIN+3",
18                         "reboot": "SIGTERM",
19                         "timeout": 5000
20                 },
21                 "cap": {
22                         "drop": "sys_module mac_admin mac_override sys_time",
23                         "keep": ""
24                 },
25                 "environment": [
26                         "HOME=/home/root"
27                 ]
28         },
29         "fs": {
30                 "mount": [
31                         {
32                                 "type":         "filesystem",
33                                 "from":         "tmpfs",
34                                 "to":           "run",
35                                 "fstype":       "tmpfs",
36                                 "option":       "defaults 0 0"
37                         },
38                         {
39                                 "type":         "directory",
40                                 "from":         "/sys/kernel/security",
41                                 "to":           "sys/kernel/security",
42                                 "fstype":       "none",
43                                 "option":       "ro,bind,optional 0 0"
44                         },
45                         {
46                                 "type":         "directory",
47                                 "from":         "/run/drm-lease-manager/lease-cluster",
48                                 "to":           "var/display/drm-lease-manager/lease",
49                                 "fstype":       "none",
50                                 "option":       "bind,create=file"
51                         },
52                         {
53                                 "type":         "directory",
54                                 "from":         "/run/pipewire/icipc-0",
55                                 "to":           "var/icipc-0",
56                                 "fstype":       "none",
57                                 "option":       "bind,optional,create=file"
58                         },
59                         {
60                                 "type":         "directory",
61                                 "from":         "/opt/container/guests/cluster-demo/system.conf",
62                                 "to":           "etc/systemd/system.conf.d/10-environment.conf",
63                                 "fstype":       "none",
64                                 "option":       "bind,optional,create=file"
65                         }
66                 ]
67         },
68         "device": {
69                 "static": [
70                         {
71                                 "type":                 "devdir",
72                                 "from":                 "/dev/dri",
73                                 "to":                   "dev/dri",
74                                 "devnode":              "/dev/dri/card0",
75                                 "optional":             0,
76                                 "wideallow":    1,
77                                 "exclusive":    0
78                         }
79                 ]
80         },
81         "network": {
82                 "static": [
83                         {
84                                 "type":         "veth",
85                                 "param": {
86                                         "name": "veth0",
87                                         "link":         "lxcbr0",
88                                         "flags":        "up",
89                                         "hwaddr":       "00:16:3e:xx:xx:xx",
90                                         "mode": "bridge"
91                                 }
92                         }
93                 ]
94         }
95 }