-
Notifications
You must be signed in to change notification settings - Fork 35
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
30 additions
and
1 deletion.
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,29 @@ | ||
#set the base image | ||
FROM debian:latest | ||
# install tools | ||
RUN apt-get update && \ | ||
apt install -y build-essential wget vim cmake ninja-build && \ | ||
apt install -y libgl-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev && \ | ||
apt install -y git curl zip unzip tar pkg-config python3 | ||
# dnf -y groupinstall "Development Tools" && \ | ||
# apt -y install g++ wget vim cmake ninja-build && \ | ||
# dnf -y install mesa-libGL-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel | ||
|
||
|
||
WORKDIR /home/ncca | ||
ENV HOME /home/ncca | ||
# download and install vcpkg | ||
RUN git clone https://github.com/Microsoft/vcpkg.git ~/vcpkg && \ | ||
cd ~/vcpkg && \ | ||
./bootstrap-vcpkg.sh | ||
|
||
RUN VCPKG_FORCE_SYSTEM_BINARIES=1 /home/ncca/vcpkg/vcpkg install gtest glm \ | ||
gl3w glfw3 rapidjson rapidxml fmt freetype openimageio | ||
|
||
RUN git clone --depth 1 https://github.com:/NCCA/NGL ~/NGLBuild && \ | ||
cd ~/NGLBuild/ && \ | ||
cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake -G Ninja -B build -S . &&\ | ||
cd build && cmake --build . | ||
RUN cd ~/NGLBuild/build && ./NGLTests -g | ||
# set default command | ||
ENTRYPOINT ["/bin/bash"] |
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