Files
CI-Images/images/vulkan/Dockerfile
T
SubQ 8ad0c484aa
Build CI images / build (linux-native) (push) Successful in 11s
Build CI images / build (nixos) (push) Successful in 1m4s
Build CI images / build (vulkan) (push) Successful in 17s
Build CI images / build (windows-clang) (push) Successful in 1m44s
Build CI images / build (windows-gcc) (push) Successful in 24s
Add Node.js to the runner images
2026-12-06 07:46:44 +03:00

58 lines
2.1 KiB
Docker

# Portable Vulkan test image for the Void research projects.
#
# Hardware GPU: pass the host render node through the runner
# container.options = "--device=/dev/dri"
# and Mesa's RADV driver (vulkan-radeon) uses it. Without a GPU, Mesa's
# lavapipe software driver (vulkan-swrast) still runs the tests:
# VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.json
#
# Arch Linux is the base because it packages GCC 16 (C++26 reflection),
# CMake 4, the Vulkan SDK pieces and every Void dependency in one repository.
# The install is split into several RUN layers so no single image layer gets
# large enough to upset the container registry.
FROM archlinux:base-devel
LABEL org.opencontainers.image.title="Void CI Vulkan" \
org.opencontainers.image.description="GCC 16, CMake 4, Vulkan SDK + Mesa (RADV/lavapipe) and the Void C++ dependencies" \
org.opencontainers.image.source="https://git.faumaray.com/Void/CI-Images"
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
CMAKE_GENERATOR=Ninja \
CCACHE_DIR=/var/cache/ccache
RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm --needed \
base-devel gcc cmake ninja git pkgconf python ccache \
&& pacman -Scc --noconfirm
RUN pacman -S --noconfirm --needed \
vulkan-headers vulkan-icd-loader vulkan-validation-layers vulkan-tools \
mesa vulkan-radeon vulkan-swrast vulkan-mesa-layers \
glslang shaderc shader-slang \
&& pacman -Scc --noconfirm
RUN pacman -S --noconfirm --needed \
glfw gtest boost openssl sqlite libsodium libarchive freetype2 \
libx11 libxcb libxcursor libxrandr libxi libxinerama libxkbcommon \
wayland wayland-protocols \
&& pacman -Scc --noconfirm
RUN pacman -S --noconfirm --needed \
zip unzip jq curl ca-certificates xorg-server-xvfb \
&& pacman -Scc --noconfirm
RUN pacman -S --noconfirm --needed \
nodejs npm \
&& pacman -Scc --noconfirm
RUN git config --system --add safe.directory '*' \
&& useradd --create-home --shell /bin/bash builder \
&& mkdir -p /var/cache/ccache \
&& chown builder:builder /var/cache/ccache
USER builder
WORKDIR /home/builder
CMD ["/bin/bash"]