Add 32bit libraries and such to graphical layer and base heroic launcher on it

This commit is contained in:
Alex D. 2024-09-30 06:57:59 +00:00
parent 2aa363a20e
commit 858b419aca
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
5 changed files with 69 additions and 21 deletions

View File

@ -1,8 +1,27 @@
# Main image
FROM localhost/caskd/archlinux/yay:latest
# Enable multilib
RUN printf '%s\n%s\n' '[multilib]' 'Include = /etc/pacman.d/mirrorlist' | tee -a /etc/pacman.conf
USER yaybuild
# Build lib32 gperftools
RUN --network=host yay -Sy --noconfirm \
lib32-gperftools
# Build game capture vklayer
RUN --network=host yay -Sy --noconfirm \
obs-vkcapture-git
USER root
# Install mesa
RUN --network=host pacman -Sy --noconfirm \
gperftools \
lib32-mesa \
lib32-pulseaudio \
lib32-vkd3d \
lib32-vulkan-icd-loader \
lib32-vulkan-radeon \
libinput \
libx11 \
libxcb \
@ -14,4 +33,5 @@ RUN --network=host pacman -Sy --noconfirm \
noto-fonts \
pulseaudio \
vulkan-icd-loader \
vulkan-radeon
vulkan-radeon \
vulkan-tools

View File

@ -0,0 +1,20 @@
# Main image
FROM localhost/caskd/archlinux/graphical:latest
USER yaybuild
# Build heroic-launcher
RUN --network=host yay -Sy --noconfirm \
heroic-games-launcher
# Build native engine override compat tool
#RUN --network=host yay -Sy --noconfirm \
# luxtorpeda-git
USER root
RUN userdel yaybuild
RUN rm -rfv /home/yaybuild
WORKDIR /home/user
USER user
CMD ["heroic"]

View File

@ -0,0 +1,23 @@
#!/bin/sh
podman create \
--replace \
--name heroic \
--read-only \
--network=host \
--userns=keep-id:uid=10000 \
--shm-size=8g \
--restart=on-failure:5 \
-e DISPLAY="$DISPLAY" \
-v '/sys:/sys' \
-v '/dev:/dev' \
-v '/run/pulse:/run/pulse' \
-v '/tmp/.X11-unix:/tmp/.X11-unix' \
-v '/etc/resolv.conf:/etc/resolv.conf:ro' \
-v 'heroic_data:/home/user:U' \
-v "$(realpath ~/Sources/Configs/Heroic)"':/home/user/.config/heroic/' \
-v "$(realpath ~/Media/Games/Heroic)"':/home/user/gamelib/' \
localhost/caskd/archlinux/heroic
#--cap-add=sys_nice \
#-v '/tmp/monado_comp_ipc:/tmp/monado_comp_ipc' \
#--mount 'type=tmpfs,tmpfs-size=128M,chown=true,dst=/home/steam/.cache' \
#--mount 'type=tmpfs,tmpfs-size=16M,chown=true,dst=/home/steam/.steam' \

View File

@ -1,41 +1,22 @@
# Main image
FROM localhost/caskd/archlinux/graphical:latest
# Enable multilib
RUN printf '%s\n%s\n' '[multilib]' 'Include = /etc/pacman.d/mirrorlist' | tee -a /etc/pacman.conf
USER yaybuild
# Build proton-ge-custom
RUN --network=host yay -Sy --noconfirm \
# proton-ge-custom
proton-ge-custom-bin
# proton-ge-custom
# Build native engine override compat tool
#RUN --network=host yay -Sy --noconfirm \
# luxtorpeda-git
# Build lib32 gperftools
RUN --network=host yay -Sy --noconfirm \
lib32-gperftools
# Build game capture vklayer
RUN --network=host yay -Sy --noconfirm \
obs-vkcapture-git
USER root
RUN userdel yaybuild
RUN rm -rfv /home/yaybuild
# Install steam-native-runtime and mesa plus other libs
RUN --network=host pacman -Sy --noconfirm \
gperftools \
lib32-mesa \
lib32-pulseaudio \
lib32-vkd3d \
lib32-vulkan-icd-loader \
lib32-vulkan-radeon \
mesa \
vulkan-tools \
steam-native-runtime
WORKDIR /home/user

View File

@ -60,6 +60,10 @@ localhost/caskd/archlinux/osu-lazer/${BUILD_ID_OUT}: \
localhost/caskd/archlinux/steam/${BUILD_ID_OUT}: \
$(GRAPHICALDEPS)
localhost/caskd/archlinux/heroic/${BUILD_ID_OUT}: \
$(GRAPHICALDEPS)
# Game-data
# Others