Created
March 9, 2020 08:19
-
-
Save agoose77/ecce014953850755b90b3c67f690348b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| FROM ubuntu:19.10 | |
| SHELL ["/bin/bash", "-c"] | |
| RUN mkdir /usr/src/geant4 | |
| WORKDIR /usr/src/geant4 | |
| RUN apt-get update | |
| RUN apt-get install -y --no-install-recommends aria2 wget build-essential binutils cmake libxerces-c-dev libxmu-dev libexpat1-dev freeglut3 freeglut3-dev mesa-utils | |
| ## Download ROOT | |
| ARG SOURCE_NAME=geant4.10.06.p01.tar.gz | |
| RUN aria2c -j 5 -x 5 "http://geant4-data.web.cern.ch/geant4-data/releases/${SOURCE_NAME}" | |
| RUN tar -xvf "${SOURCE_NAME}" | |
| # Cache name of source folder | |
| RUN f=( geant*/ ); mv "${f}" source | |
| WORKDIR /usr/src/geant4/source | |
| RUN wget https://gist.github.com/agoose77/fba2fc5504933b7fb2c5b8c3cfd93529/raw -O- | patch -p1 | |
| # Build | |
| RUN mkdir build | |
| WORKDIR /usr/src/geant4/build | |
| RUN cmake -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON ../source | |
| RUN cmake --build . -j "$(nproc)" | |
| RUN cpack -G DEB -D CPACK_PACKAGE_CONTACT=Angus | |
| WORKDIR /usr/src/geant4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment