Skip to content
Snippets Groups Projects
Commit 0c912073 authored by Vladimir Kulikovskiy's avatar Vladimir Kulikovskiy
Browse files

RUN added everywhere

parent 97cd042f
No related branches found
No related tags found
No related merge requests found
......@@ -4,25 +4,23 @@ FROM docker.km3net.de/base/centos-full:7
# install GCC v5
# add additional repo
yum install -y centos-release-scl
RUN yum install -y centos-release-scl
# get devtoolset from this repo
yum install -y devtoolset-4-gcc* devtoolset-4-gcc-gfortran devtoolset-4-binutils
RUN yum install -y devtoolset-4-gcc* devtoolset-4-gcc-gfortran devtoolset-4-binutils
. /opt/rh/devtoolset-4/enable
# create folder for additional non-standard CentOS7 software
mkdir $HOME/OMGsim
RUN mkdir $HOME/OMGsim
# Make libconfig
cd $HOME/OMGsim && wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz && tar xf libconfig-1.7.2.tar.gz -C /tmp && rm libconfig-1.7.2.tar.gz
export LIBCONFIG_ROOT=`pwd`/libconfig-1.7.2 && cd /tmp/libconfig-1.7.2/ && ./configure --prefix $LIBCONFIG_ROOT && make && make install && cd -
rm -rf /tmp/libconfig-1.7.2/
export LD_LIBRARY_PATH=${LIBCONFIG_ROOT}/lib:${LD_LIBRARY_PATH}
export CPLUS_INCLUDE_PATH=${LIBCONFIG_ROOT}/include
RUN cd $HOME/OMGsim && wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz && tar xf libconfig-1.7.2.tar.gz -C /tmp && rm libconfig-1.7.2.tar.gz
RUN export LIBCONFIG_ROOT=`pwd`/libconfig-1.7.2 && cd /tmp/libconfig-1.7.2/ && ./configure --prefix $LIBCONFIG_ROOT && make && make install && cd -
RUN rm -rf /tmp/libconfig-1.7.2/
RUN export LD_LIBRARY_PATH=${LIBCONFIG_ROOT}/lib:${LD_LIBRARY_PATH}
RUN export CPLUS_INCLUDE_PATH=${LIBCONFIG_ROOT}/include
# Make Geant4
yum install -y libX11-devel libXmu-devel motif motif-devel
cd $HOME/OMGsim && wget http://cern.ch/geant4-data/releases/geant4.10.01.p03.tar.gz && tar xf geant4.10.01.p03.tar.gz
mkdir geant4.10.01.p03-build && cd geant4.10.01.p03-build && cmake -DCMAKE_INSTALL_PREFIX=../geant4.10.01.p03-install ../geant4.10.01.p03 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_XM=ON && make -j4 install > /dev/null
RUN yum install -y libX11-devel libXmu-devel motif motif-devel
RUN cd $HOME/OMGsim && wget http://cern.ch/geant4-data/releases/geant4.10.01.p03.tar.gz && tar xf geant4.10.01.p03.tar.gz
RUN mkdir geant4.10.01.p03-build && cd geant4.10.01.p03-build && cmake -DCMAKE_INSTALL_PREFIX=../geant4.10.01.p03-install ../geant4.10.01.p03 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_XM=ON && make -j4 install > /dev/null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment