Forked from an inaccessible project.
-
Vladimir Kulikovskiy authoredVladimir Kulikovskiy authored
omgsim:4.10.01 1.43 KiB
# Machine to install OMGsim with Geant4.10.01.p03
FROM docker.km3net.de/base/centos-full:7
MAINTAINER Vladimir Kulikovskiy <vkulikovskiy@km3net.de>
# install GCC v5
# add additional repo
RUN yum install -y centos-release-scl
# get devtoolset from this repo
RUN yum install -y devtoolset-4-gcc* devtoolset-4-gcc-gfortran devtoolset-4-binutils
RUN . /opt/rh/devtoolset-4/enable
# create folder for additional non-standard CentOS7 software
RUN mkdir $HOME/OMGsim
# Make libconfig
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 && \
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
# Make Geant4 and dependencies
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 && rm 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