Reviewed-on: #7 Co-authored-by: Romain BOULLARD <romain.boullard@protonmail.com>
59 lines
2.0 KiB
Docker
59 lines
2.0 KiB
Docker
ARG BASE_BUILDER
|
|
|
|
FROM $BASE_BUILDER
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
git \
|
|
libwayland-dev \
|
|
libxkbcommon-dev \
|
|
lsb-release \
|
|
pkg-config \
|
|
software-properties-common \
|
|
wayland-protocols \
|
|
weston \
|
|
xvfb
|
|
|
|
ENV PATH="/root/.local/bin:${PATH}"
|
|
|
|
# Headless Wayland test setup: a pre-created, correctly-permissioned XDG_RUNTIME_DIR (required
|
|
# by Wayland clients/compositors) plus a weston-run wrapper mirroring xvfb-run's ergonomics -
|
|
# starts Weston's headless backend, runs the given command against it, then tears it down.
|
|
RUN mkdir -p -m 700 /tmp/xdg-runtime
|
|
ENV XDG_RUNTIME_DIR=/tmp/xdg-runtime
|
|
|
|
COPY weston-run /usr/local/bin/weston-run
|
|
RUN chmod +x /usr/local/bin/weston-run
|
|
|
|
# Install LLVM 22 and symlink tools
|
|
RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
|
|
&& chmod +x /tmp/llvm.sh \
|
|
&& /tmp/llvm.sh 22 all \
|
|
&& for f in /usr/lib/llvm-22/bin/*; do \
|
|
ln -sf "$f" "/usr/local/bin/$(basename "$f")"; \
|
|
done \
|
|
&& rm -f /tmp/llvm.sh*
|
|
|
|
# Install Infer
|
|
RUN VERSION=1.3.0; \
|
|
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
|
|
| tar -C /opt -xJ && \
|
|
ln -s "/opt/infer-linux-x86_64-v$VERSION/bin/infer" /usr/bin/infer
|
|
|
|
# Install pipx and Conan
|
|
RUN pipx install conan \
|
|
&& pipx install gcovr
|
|
|
|
# Install Vulkan SDK 1.4.350.0
|
|
RUN wget -q https://sdk.lunarg.com/sdk/download/1.4.350.0/linux/vulkansdk-linux-x86_64-1.4.350.0.tar.xz \
|
|
-O /tmp/vulkansdk.tar.xz \
|
|
&& mkdir -p /opt/vulkan \
|
|
&& tar -xf /tmp/vulkansdk.tar.xz -C /opt/vulkan \
|
|
&& rm /tmp/vulkansdk.tar.xz
|
|
|
|
ENV VULKAN_SDK=/opt/vulkan/1.4.350.0/x86_64
|
|
ENV PATH="${VULKAN_SDK}/bin:${PATH}"
|
|
ENV LD_LIBRARY_PATH="${VULKAN_SDK}/lib:${LD_LIBRARY_PATH}"
|
|
ENV VK_LAYER_PATH="${VULKAN_SDK}/share/vulkan/explicit_layer.d"
|
|
ENV VK_ADD_LAYER_PATH="${VULKAN_SDK}/share/vulkan/explicit_layer.d"
|
|
ENV PKG_CONFIG_PATH="${VULKAN_SDK}/lib/pkgconfig/:${PKG_CONFIG_PATH}" |