Skip to content

Commit

Permalink
added debian dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacey committed Jun 14, 2023
1 parent 31130d7 commit 52418a6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions Dockerfiles/Debian/Dockerfile
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"]
2 changes: 1 addition & 1 deletion Dockerfiles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cd NGLBuild/build
./NGLTests -g
```

## [Fedora](Fedora/Dockerfile))
## [Fedora](Fedora/Dockerfile)

This is a basic fedora image with the required packages installed. It is based on the latest fedora image.

Expand Down

0 comments on commit 52418a6

Please sign in to comment.