-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
FROM ubuntu:23.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV NVIDIA_DRIVER_CAPABILITIES compute,graphics,utility | ||
|
||
# Install Vulkan | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
libxext6 \ | ||
libvulkan1 \ | ||
libvulkan-dev \ | ||
vulkan-tools \ | ||
wget \ | ||
gnupg \ | ||
software-properties-common \ | ||
lsb-release \ | ||
cmake \ | ||
git \ | ||
build-essential \ | ||
libxrandr-dev \ | ||
libhdf5-dev \ | ||
libxinerama-dev \ | ||
libxcursor-dev \ | ||
libxi-dev \ | ||
pkg-config \ | ||
libgtk-3-dev | ||
|
||
# Add the LunarG signing key | ||
RUN wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | tee /etc/apt/trusted.gpg.d/lunarg.asc | ||
|
||
# Add the Vulkan SDK repository for Ubuntu 22.04 (Jammy) | ||
RUN wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.3.275-jammy.list https://packages.lunarg.com/vulkan/1.3.275/lunarg-vulkan-1.3.275-jammy.list | ||
|
||
# Update apt package list and install the Vulkan SDK | ||
RUN apt-get update && apt-get install -y vulkan-sdk | ||
|
||
# Clone the repository | ||
RUN git clone --recurse-submodules https://github.com/hz-b/rayx.git -b development \ | ||
&& cd rayx \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake -B . -S .. -DCMAKE_BUILD_TYPE=Release \ | ||
&& cmake --build . --config Release | ||
|
||
RUN ./rayx/build/bin/release/rayx-core-tst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.8' | ||
services: | ||
vulkan-docker-test: | ||
build: . | ||
environment: | ||
- DISPLAY=:0 | ||
# Removed the volumes line since it's not needed for WSLg | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: 1 | ||
capabilities: [gpu] |