Add runners for generic containers

This commit is contained in:
Alex D. 2024-08-20 15:48:47 +00:00
parent d5edfaff97
commit 965cba86a6
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/sh
podman run \
--rm -it \
--network=host \
--userns=keep-id:uid=10000 \
-e DISPLAY \
-v '/sys:/sys' \
-v '/dev/dri:/dev/dri' \
-v '/dev/snd:/dev/snd' \
-v '/run/pulse:/run/pulse' \
-v '/tmp/.X11-unix:/tmp/.X11-unix' \
-v '/etc/resolv.conf:/etc/resolv.conf:ro' \
-v '.:/run/current' \
-w /run/current \
localhost/caskd/archlinux/graphical:latest bash

View File

@ -0,0 +1,18 @@
#!/bin/sh
podman run \
--rm -it \
--user user \
--network=host \
--userns=keep-id:uid=10000 \
-e DISPLAY \
-e WINEDLLOVERRIDES=winhttp=n,b \
-v '/sys:/sys' \
-v '/dev/dri:/dev/dri' \
-v '/dev/snd:/dev/snd' \
-v '/run/pulse:/run/pulse' \
-v '/tmp/.X11-unix:/tmp/.X11-unix' \
-v '/etc/resolv.conf:/etc/resolv.conf:ro' \
-v '.:/run/current' \
-v 'wine_generic_data:/home/user/.wine:U' \
-w /run/current \
localhost/caskd/archlinux/wine:latest wine explorer /desktop=desktop,1920x1080 "$@"