Guest User

Untitled

a guest
Nov 21st, 2020
14
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM amazonlinux:2
  2. ENV roothome=/mnt/cern_root/root
  3. ENV CHROOT=/mnt/cern_root/chroot
  4. ENV PATH=${CHROOT}/usr/local/sbin:${CHROOT}/usr/local/bin:${CHROOT}/usr/sbin:${CHROOT}/usr/bin:${CHROOT}/sbin:${CHROOT}/bin:$PATH
  5. ENV LD_LIBRARY_PATH=${CHROOT}/usr/lib64:${CHROOT}/usr/lib:/usr/lib64:/usr/lib:$LD_LIBRARY_PATH
  6.  
  7. RUN mkdir -p ${CHROOT}/etc/ && cp -r /etc/yum ${CHROOT}/etc/yum && \
  8. yum install -y make gcc-c++ gcc binutils \
  9. python3 python3-devel openssl11 --installroot=${CHROOT} --releasever=/ && \
  10. ln -s ${CHROOT}/usr/lib64/libtinfo.so.6 ${CHROOT}/usr/lib64/libtinfo.so.5
  11.  
  12. RUN yum install -y git tar gzip && yum groupinstall -y 'Development Tools' && mkdir /root_src
  13. ENV PATH=/opt/cmake/cmake-3.18.3-Linux-x86_64/bin:$PATH
  14. RUN mkdir /opt/cmake && cd /tmp && \
  15. curl -L https://github.com/Kitware/CMake/releases/download/v3.18.3/cmake-3.18.3-Linux-x86_64.tar.gz -o /opt/cmake/cmake.tar.gz && \
  16. cd /opt/cmake && \
  17. tar xf cmake.tar.gz && \
  18. ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake && \
  19. cmake --version
  20.  
  21. RUN git clone --branch v6-22-00-patches https://github.com/root-project/root.git /root_src
  22.  
  23. RUN mkdir -p /mnt/cern_root/root_install && mkdir -p /mnt/cern_root/root && cd /mnt/cern_root/root \
  24. && cmake \
  25. -Dbuiltin_tbb=ON \
  26. -Dminimal=ON \
  27. -Dasimage=OFF \
  28. -Dclad=OFF \
  29. -Dcocoa=OFF \
  30. -Dcudnn=OFF \
  31. -Ddataframe=ON \
  32. -Ddavix=OFF \
  33. -Dexceptions=ON \
  34. -Dfftw3=OFF \
  35. -Dfitsio=OFF \
  36. -Dgdml=OFF \
  37. -Dgfal=OFF \
  38. -Dhttp=OFF \
  39. -Dimt=OFF \
  40. -Dmathmore=OFF \
  41. -Dmlp=OFF \
  42. -Dmysql=OFF \
  43. -Dopengl=OFF \
  44. -Doracle=OFF \
  45. -Dpgsql=OFF \
  46. -Dpyroot=ON \
  47. -Dpythia6=OFF \
  48. -Dpythia8=OFF \
  49. -Droofit=OFF \
  50. -Droot7=OFF \
  51. -Druntime_cxxmodules=ON \
  52. -Dshared=OFF \
  53. -Dspectrum=OFF \
  54. -Dsqlite=OFF \
  55. -Dssl=OFF \
  56. -Dtmva=OFF \
  57. -Dtmva-cpu=OFF \
  58. -Dtmva-pymva=OFF \
  59. -Dvdt=OFF \
  60. -Dwebgui=OFF \
  61. -Dx11=OFF \
  62. -Dxft=OFF \
  63. -Dbuiltin_freetype=OFF \
  64. -Dxml=OFF \
  65. -Dxrootd=OFF \
  66. -DCMAKE_MAKE_PROGRAM=make \
  67. -DCMAKE_BUILD_TYPE=Debug \
  68. -DCMAKE_INSTALL_PREFIX=/mnt/cern_root/root_install /root_src
  69.  
  70. RUN cd /mnt/cern_root/root && cmake --build . --target install -- -j1
  71.  
  72. CMD . ${roothome}/bin/thisroot.sh && root -b
RAW Paste Data