Skip to content

Commit

Permalink
install cmake directly
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Jun 19, 2024
1 parent 8ae74b3 commit 6be0f09
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ RUN apt update \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*

RUN <<EOF
curl -sLO https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-x86_64.sh
chmod u+x cmake-3.29.6-linux-x86_64.sh
./cmake-3.29.6-linux-x86_64.sh --skip-license --prefix=/usr/local
EOF

RUN mkdir -p /opt/spack && curl -sL https://github.com/spack/spack/archive/v0.21.0.tar.gz | tar -xz --strip-components 1 -C /opt/spack

RUN echo "source /opt/spack/share/spack/setup-env.sh" > /etc/profile.d/z09_source_spack_setup.sh
Expand All @@ -24,7 +30,6 @@ SHELL ["/bin/bash", "-l", "-c"]
RUN <<EOF
spack install geant4
spack install boost+system+program_options+regex+filesystem
spack install cmake
spack install nlohmann-json
spack uninstall -f -y g4ndl
spack clean -a
Expand Down Expand Up @@ -53,7 +58,7 @@ RUN sed -i 's/ autoload: direct/\ autoload: none/g' /opt/spack/etc/
RUN spack module tcl refresh -y
RUN cp -r /opt/spack/share/spack/modules/$(spack arch) /opt/modules
RUN echo "module use --append /opt/modules" >> /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 nlohmann-json >> /etc/profile.d/z10_load_spack_modules.sh
RUN rm -fr /opt/spack/share/spack/modules/$(spack arch)

ENV ESI_DIR=/esi
Expand Down

0 comments on commit 6be0f09

Please sign in to comment.