diff --git a/localhost/caskd/archlinux/prismlauncher/Containerfile b/localhost/caskd/archlinux/prismlauncher/Containerfile new file mode 100644 index 0000000..19a649c --- /dev/null +++ b/localhost/caskd/archlinux/prismlauncher/Containerfile @@ -0,0 +1,19 @@ +# Main image +FROM localhost/caskd/archlinux/graphical:latest + +USER yaybuild +RUN --network=host yay -Sy --noconfirm \ + jdk21-openjdk \ + jdk17-openjdk \ + jdk8-openjdk \ + prismlauncher + +USER root +RUN userdel yaybuild +RUN rm -rfv /home/yaybuild + +WORKDIR /home/user +ADD start.sh . +USER user + +CMD ["./start.sh"] diff --git a/localhost/caskd/archlinux/prismlauncher/runner.sh b/localhost/caskd/archlinux/prismlauncher/runner.sh new file mode 100755 index 0000000..6d65587 --- /dev/null +++ b/localhost/caskd/archlinux/prismlauncher/runner.sh @@ -0,0 +1,16 @@ +#!/bin/sh +podman create \ + --replace \ + --name prismlauncher \ + --read-only \ + --userns=keep-id:uid=10000 \ + --network=host \ + -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 "$(realpath ~/.local/share/PrismLauncher)"':/home/user/.local/share/PrismLauncher' \ + localhost/caskd/archlinux/prismlauncher:latest diff --git a/localhost/caskd/archlinux/prismlauncher/start.sh b/localhost/caskd/archlinux/prismlauncher/start.sh new file mode 100755 index 0000000..4654c2a --- /dev/null +++ b/localhost/caskd/archlinux/prismlauncher/start.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# For some reason primslauncher crashes without dbus +export $(dbus-launch) +exec prismlauncher diff --git a/localhost/config.mk b/localhost/config.mk index e30a22f..936d156 100644 --- a/localhost/config.mk +++ b/localhost/config.mk @@ -54,6 +54,9 @@ localhost/caskd/archlinux/terraria/${BUILD_ID_OUT}: \ #localhost/caskd/archlinux/prismlauncher/${BUILD_ID_OUT}: \ # $(GRAPHICALDEPS) +localhost/caskd/archlinux/prismlauncher/${BUILD_ID_OUT}: \ + $(GRAPHICALDEPS) + localhost/caskd/archlinux/osu-lazer/${BUILD_ID_OUT}: \ $(GRAPHICALDEPS)