Add prismlauncher
This commit is contained in:
parent
0383433a85
commit
8584ff15d2
|
@ -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"]
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# For some reason primslauncher crashes without dbus
|
||||
export $(dbus-launch)
|
||||
exec prismlauncher
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue