Newer
Older
FROM docker.km3net.de/base/centos-full-root6-pythia
MAINTAINER Vladimir Kulikovskiy <vkulikovskiy@km3net.de>
#Now we are going to install GENIE-HEDIS (needed for gSeaGen)
#it looks for libgfortran in /usr/lib64, otherwise linking will fail
RUN ln -s /lib64/libgfortran.so.3 /usr/lib64/libgfortran.so
RUN cd / && mkdir genie && cd genie && \
git clone -b apfel https://github.com/pochoarus/GENIE-HEDIS.git genie_generator && \
echo "export GENIE=/genie/genie_generator" >> /etc/profile.d/genie.sh && \
echo 'export PATH=$PATH:$GENIE/bin' >> /etc/profile.d/genie.sh && \
echo 'if [ -z "$LD_LIBRARY_PATH" ]; then export LD_LIBRARY_PATH=$GENIE/lib; else LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GENIE/lib; fi' >> /etc/profile.d/genie.sh && \
source /etc/profile.d/root_env.sh && source /etc/profile.d/genie.sh && cd $GENIE && \
./configure --prefix=${GENIE}/install --enable-geom-drivers --enable-flux-drivers && \
make && make install
#Now we are going to install GENIE-Reweight (needed for gSeaGen)
RUN cd /genie && \
git clone -b R-1_00_00 https://github.com/GENIE-MC/Reweight.git genie_reweight && \
cd genie_reweight && \
echo "export GENIE_REWEIGHT=/genie/genie_reweight" >> /etc/profile.d/genie.sh && \
source /etc/profile.d/root_env.sh && source /etc/profile.d/genie.sh && cd /genie/genie_reweight \
./configure && make && make install