From 71cf273e77f38d79a8004bfd4847f4d589beceda Mon Sep 17 00:00:00 2001
From: Vladimir Kulikovskiy <vkulikovskiy@km3net.de>
Date: Wed, 4 Mar 2020 12:04:48 +0100
Subject: [PATCH] Update km3sim:4.10.05

---
 base/km3sim:4.10.05 | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/base/km3sim:4.10.05 b/base/km3sim:4.10.05
index 89a695b..dd31ccf 100644
--- a/base/km3sim:4.10.05
+++ b/base/km3sim:4.10.05
@@ -16,8 +16,25 @@ FROM docker.km3net.de/base/centos-full:7
     cmake -DCMAKE_INSTALL_PREFIX=/usr/local/geant4.10.05_install -DGEANT4_USE_GDML=ON -DGEANT4_INSTALL_DATA=ON -DXERCESC_INCLUDE_DIR=/usr/include/xercesc/ -DXERCESC_LIBRARY=/usr/lib64/ ../geant4.10.05 && \
     make -j4 > make.log && make install > make_install.log && cd .. && rm -rf geant4.10.05_build geant4.10.05
  RUN echo "export G4DIR=/usr/local/geant4.10.05_install" >> /etc/bashrc
- 
- # ROOT6
+
+#python 3.6 installtion for ROOT
+ RUN yum install -y centos-release-scl
+ RUN yum install -y rh-python36
+ RUN echo 'export LD_LIBRARY_PATH=/opt/rh/rh-python36/root/usr/lib64:$LD_LIBRARY_PATH' >> /etc/profile.d/python36.sh
+ RUN echo "export X_SCLS=rh-python36" >> /etc/profile.d/python36.sh
+ RUN echo 'export PATH=/opt/rh/rh-python36/root/usr/bin:$PATH' >> /etc/profile.d/python36.sh
+ RUN echo 'export XDG_DATA_DIRS=/opt/rh/rh-python36/root/usr/share:/usr/local/share:/usr/share' >> /etc/profile.d/python36.sh
+ RUN echo 'export PKG_CONFIG_PATH=/opt/rh/rh-python36/root/usr/lib64/pkgconfig' >> /etc/profile.d/python36.sh
+ RUN source /etc/profile.d/python36.sh && pip install -U pip setuptools
+
+#cmake3 installation for ROOT
+ RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+ RUN rpm -ivh epel-release-latest-7.noarch.rpm
+ RUN yum install -y cmake3
+ RUN rm -rf epel-release-latest-7.noarch.rpm
+
+
+# ROOT6
  RUN export ROOT_VERSION=6.18.04 && \
      source /etc/profile.d/python36.sh && \
      cd /tmp && \
-- 
GitLab