Created
March 9, 2020 08:19
-
-
Save agoose77/2d5cdb63924fe595cb149a09e78e938f 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/root | |
| WORKDIR /usr/src/root | |
| RUN apt-get update | |
| RUN apt-get install -y aria2 git wget build-essential binutils libx11-dev libxft-dev libxext-dev libpng-dev libjpeg-dev libxpm-dev cmake libgsl-dev python3.8-dev | |
| ## Download ROOT | |
| ARG SOURCE_NAME=root_v6.20.00.source.tar.gz | |
| RUN aria2c -j 5 -x 5 "https://root.cern/download/${SOURCE_NAME}" | |
| RUN tar -xvf "${SOURCE_NAME}" | |
| # Cache name of source folder | |
| RUN f=( root*/ ); mv "${f}" source | |
| ## Build ROOT & Install Python3.8 | |
| RUN mkdir /usr/src/root/build | |
| WORKDIR /usr/src/root/build | |
| RUN cmake ../source -Dpython=ON -Dminuit2=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.8 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.8 -Dmathmore=ON -Dtvma=OFF -Dsqlite=OFF -Dveccore=ON -Dssl=OFF -Droofit=OFF -Dtmva=OFF -Dhttp=OFF | |
| RUN cmake --build . -j "$(nproc)" | |
| RUN cpack -G DEB -D CPACK_PACKAGE_CONTACT="Angus" -D CPACK_PACKAGING_INSTALL_PREFIX=/opt/root | |
| RUN deb_files=( root*.deb ); apt-get install $(realpath "${deb_files}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment