From 622994fc099117758ea487f8bca6e148bde4048d Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 1 Aug 2024 11:31:43 -0400 Subject: [PATCH] install opticks dependencies directly or via Spack --- Dockerfile | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 754f940..dd74d2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ ARG DEBIAN_FRONTEND=noninteractive # Install Spack package manager RUN apt update \ && apt install -y build-essential ca-certificates coreutils curl environment-modules gfortran git gpg lsb-release python3 python3-distutils python3-venv unzip zip \ - libglm-dev libglfw3-dev libimgui-dev libglew-dev libglu1-mesa-dev \ libssl-dev python-is-python3 \ cuda-nvcc-11-8 libcurand-dev-11-8 \ libxinerama-dev libxcursor-dev libxi-dev \ @@ -23,14 +22,21 @@ RUN echo "source /opt/spack/share/spack/setup-env.sh" > /etc/profile.d/z09_sourc SHELL ["/bin/bash", "-l", "-c"] -RUN <> /etc/profile.d/z10_load_spack_modules.sh -RUN spack module tcl loads geant4 xerces-c clhep boost cmake nlohmann-json >> /etc/profile.d/z10_load_spack_modules.sh +RUN spack module tcl loads geant4 xerces-c clhep boost cmake mesa glew glfw glm glu nlohmann-json >> /etc/profile.d/z10_load_spack_modules.sh RUN rm -fr /opt/spack/share/spack/modules/$linux-ubuntu22.04-x86_64_v3 +RUN mkdir -p /opt/bcm && curl -sL https://github.com/boost-cmake/bcm/archive/refs/heads/master.tar.gz | tar -xz --strip-components 1 -C /opt/bcm \ + && cmake -B /tmp/build/bcm -S /opt/bcm && cmake --build /tmp/build/bcm --target install + +RUN mkdir -p /opt/plog && curl -sL https://github.com/SergiusTheBest/plog/archive/refs/tags/1.1.10.tar.gz | tar -xz --strip-components 1 -C /opt/plog \ + && cmake -B /tmp/build/plog -S /opt/plog && cmake --build /tmp/build/plog --target install + # Set up non-interactive shells by sourcing all of the scripts in /et/profile.d/ RUN cat <<"EOF" > /etc/bash.nonint if [ -d /etc/profile.d ]; then