diff --git a/README.md b/README.md index 3ea9a4fd..c776e549 100644 --- a/README.md +++ b/README.md @@ -59,3 +59,7 @@ repository enabled in order to provide `golang-github-cpuguy83-md2man` package. # dnf install -y python3-dnf-plugins-core # dnf config-manager --set-enabled crb ``` + +## Examples + +Looking for quadlet examples files? See our [docs dir](docs/quadlet-examples/). diff --git a/docs/quadlet-examples/virtualization/android/README.md b/docs/quadlet-examples/virtualization/android/README.md new file mode 100644 index 00000000..11ad0dbe --- /dev/null +++ b/docs/quadlet-examples/virtualization/android/README.md @@ -0,0 +1,22 @@ +An example of Android container running on top of kvm using quadlet and Wayland. + +``` +$ cat ~/.config/containers/systemd/android.container + +[Service] +Environment=WAYLAND_DISPLAY=wayland-0 + +[Container] +AddDevice=/dev/dri/renderD128 +AddDevice=/dev/kvm +ContainerName=android +NoNewPrivileges=true +DropCapability=all +Environment=PULSE_SERVER=%t/pulse/native +Environment=WAYLAND_DISPLAY=${WAYLAND_DISPLAY} +Environment=XDG_RUNTIME_DIR=%t +Image=quay.io/slopezpa/qemu-aaos +PodmanArgs=--shm-size=5g +SecurityLabelDisable=true +Volume=%t:%t +```