run.sh: Update to podman and new image

This commit is contained in:
Simon Bruder 2024-05-09 02:35:21 +02:00
parent 5c9b35ba77
commit ae71bdeeed
Signed by: simon
GPG key ID: 347FF8699CDA0776

7
run.sh
View file

@ -3,10 +3,11 @@ BASEDIR="$(dirname $(realpath -s $0))"
mkdir -p "$HOME/.local/share/osu" "$BASEDIR/import"
docker run \
podman run \
--rm \
-it \
--name osu \
--userns="keep-id:uid=$(id -u),gid=$(id -g)" \
--device /dev/dri \
--group-add $(getent group audio|cut -d: -f3) \
--group-add $(getent group video|cut -d: -f3) \
@ -14,9 +15,9 @@ docker run \
-e PULSE_SERVER=/run/user/$(id -u)/pulse/native \
-e WAYLAND_DISPLAY \
-e XDG_RUNTIME_DIR \
-v "$HOME/.local/share/osu/:/home/osu/osu/" \
-v "$HOME/.local/share/osu/:/home/osu/.local/share/osu/" \
-v "$BASEDIR/import/:$BASEDIR/import/" \
-v "$HOME/.config/pulse/cookie:/run/pulse/cookie" \
-v "${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR}" \
r.sbruder.de/osu \
osu \
$@