From 965cba86a6e7eeedf5a04ab421c6290c88eb4476 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Tue, 20 Aug 2024 15:48:47 +0000 Subject: [PATCH] Add runners for generic containers --- localhost/caskd/archlinux/graphical/runner.sh | 15 +++++++++++++++ localhost/caskd/archlinux/wine/runner.sh | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 localhost/caskd/archlinux/graphical/runner.sh create mode 100755 localhost/caskd/archlinux/wine/runner.sh diff --git a/localhost/caskd/archlinux/graphical/runner.sh b/localhost/caskd/archlinux/graphical/runner.sh new file mode 100755 index 0000000..4720b19 --- /dev/null +++ b/localhost/caskd/archlinux/graphical/runner.sh @@ -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 diff --git a/localhost/caskd/archlinux/wine/runner.sh b/localhost/caskd/archlinux/wine/runner.sh new file mode 100755 index 0000000..1c25fac --- /dev/null +++ b/localhost/caskd/archlinux/wine/runner.sh @@ -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 "$@"