diff --git a/base/centos-full-root6-pythia:7 b/base/centos-full-root6-pythia:7 new file mode 100644 index 0000000000000000000000000000000000000000..0e0a2beffb5e30d01386a1387a626269f78b2caa --- /dev/null +++ b/base/centos-full-root6-pythia:7 @@ -0,0 +1,54 @@ +FROM centos:7.4.1708 + MAINTAINER Vladimir Kulikovskiy <vkulikovskiy@km3net.de> + + RUN yum install -y man sed cygpath grep test && yum clean -y all + RUN yum install -y csh git subversion tar vim wget zsh && yum clean -y all + RUN yum install -y ant bison compat-gcc-34-g77 flex flex-devel gcc gcc-c++ gcc-gfortran gdb glibc-static make pakchois cmake boost-devel rpmdevtools && yum clean -y all + RUN yum install -y bzip2-devel gzip && yum clean -y all + RUN yum install -y fftw-devel libgpg-error libproxy openssh-server openssl-devel && yum clean -y all + RUN yum install -y gtk2-devel libX11 libX11-common libX11-devel libXext libXext-devel libXft libXft-devel libXpm libXpm-devel && yum clean -y all + RUN yum install -y doxygen texlive texlive-*.noarch && yum clean -y all + + RUN curl -L http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.8-x86_64-cc7-gcc48-opt.tgz > clhep.tgz && tar -C /usr/local/ --strip-components=1 -xvzf clhep.tgz + + 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 + + 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 + + RUN yum install -y log4cpp log4cpp-devel libxml2 libxml2-devel gsl gsl-devel +#lhapdf + RUN cd / && curl -L https://lhapdf.hepforge.org/downloads/\?f\=lhapdf-5.9.1.tar.gz > lhapdf-5.9.1.tar.gz && \ + tar xzvf lhapdf-5.9.1.tar.gz && cd lhapdf-5.9.1 && \ + ./configure --prefix=/usr/local && make && make install +#Pythia 6.4.28 (using script in GENIE) +#https://root-forum.cern.ch/t/root-with-pythia6-and-pythia8/19211/4 + RUN cd / && wget https://root.cern.ch/download/pythia6.tar.gz && \ + tar zxvf pythia6.tar.gz && rm -rf pythia6.tar.gz && \ + wget --no-check-certificate http://www.hepforge.org/archive/pythia6/pythia-6.4.28.f.gz && \ + gzip -d pythia-6.4.28.f.gz && mv pythia-6.4.28.f pythia6/pythia6428.f && rm -rf pythia6/pythia6416.f && \ + mv pythia6 pythia6428 && cd pythia6428 && \ + ./makePythia6.linuxx8664 && echo "export PYTHIA6=/pythia6428" > /etc/profile.d/genie.sh + + #ROOT6 + RUN source /etc/profile.d/genie.sh && cd / && rm -rf /usr/local/root && \ + export ROOT_VERSION=6.14.06 && \ + cd /tmp && \ + wget https://root.cern.ch/download/root_v$ROOT_VERSION.source.tar.gz && \ + tar xvzf root_v$ROOT_VERSION.source.tar.gz && cd root-$ROOT_VERSION && \ + mkdir obj && cd obj && \ + cmake3 .. -Dpythia6=ON -DPYTHIA6_LIBRARY=/pythia6428/libPythia6.so && \ + make && \ + cd .. && \ + mv obj /opt/root-$ROOT_VERSION && \ + rm -rf /tmp/root* && \ + echo "cd /opt/root-$ROOT_VERSION && source bin/thisroot.sh && cd -" >> /etc/profile.d/root_env.sh && cd \ No newline at end of file diff --git a/base/centos-full:7 b/base/centos-full:7 index 3159209a7f6fbb007e7d9e88abd85a9ba933e4e6..72389b548f799e8d15cca183376c26e9034ded83 100644 --- a/base/centos-full:7 +++ b/base/centos-full:7 @@ -12,8 +12,14 @@ FROM centos:7.4.1708 RUN yum install -y librabbitmq-devel && yum clean -y all RUN yum install -y doxygen ghostscript texlive texlive-*.noarch && yum clean -y all - RUN curl -L http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.8-x86_64-cc7-gcc48-opt.tgz > clhep.tgz && tar -C /usr/local/ --strip-components=1 -xvzf clhep.tgz + RUN curl -L http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.8-x86_64-cc7-gcc48-opt.tgz > clhep.tgz && tar -C /usr/local/ --strip-components=1 -xvzf clhep.tgz RUN curl -L https://root.cern.ch/download/root_v5.34.36.Linux-centos7-x86_64-gcc4.8.tar.gz > root.tar.gz && tar xvf root.tar.gz -C /usr/local/ && rm root.tar.gz RUN sed -i 's/-std=c++11//g' /usr/local/root/bin/root-config RUN echo "source /usr/local/root/bin/thisroot.sh" >> /etc/bashrc + RUN echo "/usr/sbin/sshd" >> /etc/bashrc + RUN /usr/bin/ssh-keygen -A + RUN ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa -q + RUN cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + RUN ssh-keyscan -H -t rsa localhost,$(hostname -i) >> ~/.ssh/known_hosts + RUN chmod 700 ~/.ssh && chmod 600 ~/.ssh/* diff --git a/base/genie-root5:3.0.2 b/base/genie-root5:3.0.2 new file mode 100644 index 0000000000000000000000000000000000000000..d37d73c989be3a64a5aaf467d60c477904d511ee --- /dev/null +++ b/base/genie-root5:3.0.2 @@ -0,0 +1,63 @@ +FROM centos:7.4.1708 + MAINTAINER Vladimir Kulikovskiy <vkulikovskiy@km3net.de> + + RUN yum install -y man sed cygpath grep test && yum clean -y all + RUN yum install -y csh git subversion tar vim wget lftp zsh && yum clean -y all + RUN yum install -y ant bison compat-gcc-34-g77 flex flex-devel gcc gcc-c++ gcc-gfortran gdb glibc-static make pakchois cmake boost-devel rpmdevtools strace && yum clean -y all + RUN yum install -y bzip2-devel gzip && yum clean -y all + RUN yum install -y fftw-devel libgpg-error libproxy openssh-server openssl-devel && yum clean -y all + RUN yum install -y gtk2-devel libX11 libX11-common libX11-devel libXext libXext-devel libXft libXft-devel libXpm libXpm-devel && yum clean -y all + RUN yum install -y epel-release && yum clean -y all + RUN yum install -y python-devel python-pip && yum clean -y all + RUN yum install -y librabbitmq-devel && yum clean -y all + RUN yum install -y doxygen ghostscript && yum clean -y all + + RUN curl -L http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.8-x86_64-cc7-gcc48-opt.tgz > clhep.tgz && tar -C /usr/local/ --strip-components=1 -xvzf clhep.tgz + + RUN yum install -y log4cpp log4cpp-devel libxml2 libxml2-devel gsl gsl-devel +#lhapdf + RUN cd / && curl -L https://lhapdf.hepforge.org/downloads/\?f\=lhapdf-5.9.1.tar.gz > lhapdf-5.9.1.tar.gz && \ + tar xzvf lhapdf-5.9.1.tar.gz && cd lhapdf-5.9.1 && \ + ./configure --prefix=/usr/local && make && make install +#Pythia 6.4.28 (using script in GENIE) +#https://root-forum.cern.ch/t/root-with-pythia6-and-pythia8/19211/4 + RUN cd / && wget https://root.cern.ch/download/pythia6.tar.gz && \ + tar zxvf pythia6.tar.gz && rm -rf pythia6.tar.gz && \ + wget --no-check-certificate http://www.hepforge.org/archive/pythia6/pythia-6.4.28.f.gz && \ + gzip -d pythia-6.4.28.f.gz && mv pythia-6.4.28.f pythia6/pythia6428.f && rm -rf pythia6/pythia6416.f && \ + mv pythia6 pythia6428 && cd pythia6428 && \ + ./makePythia6.linuxx8664 && echo "export PYTHIA6=/pythia6428" > /etc/profile.d/genie.sh + +#ROOT with PYTHIA (Pythia libs need to be compiled) +#remove existing ROOT installation +#ROOT5 + RUN source /etc/profile.d/genie.sh && cd / && rm -rf /usr/local/root && \ + curl -L https://root.cern.ch/download/root_v5.34.36.source.tar.gz > root.tar.gz && \ + tar xvf root.tar.gz -C /usr/local/ && rm root.tar.gz && cd /usr/local/root && \ + ./configure --fail-on-missing --with-pythia6-libdir=$PYTHIA6 --enable-pythia6 --enable-cxx11 && \ + make && \ + echo "cd /usr/local/root && source bin/thisroot.sh && cd -" >> /etc/profile.d/root_env.sh && cd + +#GENIE +#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 https://github.com/GENIE-MC/Generator.git genie_generator && \ + cd genie_generator && git checkout R-3_00_02 && \ + 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 && make && make install +#GENIE REWEIGHT + RUN cd /genie && git clone https://github.com/GENIE-MC/Reweight.git genie_reweight && \ + cd genie_reweight && git checkout R-1_00_00 && \ + 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 + + RUN echo "/usr/sbin/sshd" >> /etc/bashrc + RUN /usr/bin/ssh-keygen -A + RUN ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa -q + RUN cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + RUN ssh-keyscan -H -t rsa localhost,$(hostname -i) >> ~/.ssh/known_hosts + RUN chmod 700 ~/.ssh && chmod 600 ~/.ssh/* diff --git a/base/genie:3.0.2 b/base/genie:3.0.2 new file mode 100644 index 0000000000000000000000000000000000000000..3ed322d6f8f56341e9edb29e7904544357b7aba9 --- /dev/null +++ b/base/genie:3.0.2 @@ -0,0 +1,65 @@ +FROM centos:7.4.1708 + MAINTAINER Vladimir Kulikovskiy <vkulikovskiy@km3net.de> + + RUN yum install -y man sed cygpath grep test && yum clean -y all + RUN yum install -y csh git subversion tar vim wget zsh && yum clean -y all + RUN yum install -y ant bison compat-gcc-34-g77 flex flex-devel gcc gcc-c++ gcc-gfortran gdb glibc-static make pakchois cmake boost-devel rpmdevtools && yum clean -y all + RUN yum install -y bzip2-devel gzip && yum clean -y all + RUN yum install -y fftw-devel libgpg-error libproxy openssh-server openssl-devel && yum clean -y all + RUN yum install -y gtk2-devel libX11 libX11-common libX11-devel libXext libXext-devel libXft libXft-devel libXpm libXpm-devel && yum clean -y all + RUN yum install -y doxygen && yum clean -y all + + RUN curl -L http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.2.0.8-x86_64-cc7-gcc48-opt.tgz > clhep.tgz && tar -C /usr/local/ --strip-components=1 -xvzf clhep.tgz + + RUN yum install -y python-devel && yum clean -y all + + 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 + + RUN yum install -y log4cpp log4cpp-devel libxml2 libxml2-devel gsl gsl-devel +#lhapdf + RUN cd / && curl -L https://lhapdf.hepforge.org/downloads/\?f\=lhapdf-5.9.1.tar.gz > lhapdf-5.9.1.tar.gz && \ + tar xzvf lhapdf-5.9.1.tar.gz && cd lhapdf-5.9.1 && \ + ./configure --prefix=/usr/local && make && make install +#Pythia 6.4.28 (using script in GENIE) +#https://root-forum.cern.ch/t/root-with-pythia6-and-pythia8/19211/4 + RUN cd / && wget https://root.cern.ch/download/pythia6.tar.gz && \ + tar zxvf pythia6.tar.gz && rm -rf pythia6.tar.gz && \ + wget --no-check-certificate http://www.hepforge.org/archive/pythia6/pythia-6.4.28.f.gz && \ + gzip -d pythia-6.4.28.f.gz && mv pythia-6.4.28.f pythia6/pythia6428.f && rm -rf pythia6/pythia6416.f && \ + mv pythia6 pythia6428 && cd pythia6428 && \ + ./makePythia6.linuxx8664 && echo "export PYTHIA6=/pythia6428" > /etc/profile.d/genie.sh + + #ROOT6 + RUN source /etc/profile.d/genie.sh && cd / && rm -rf /usr/local/root && \ + export ROOT_VERSION=6.14.06 && \ + cd /tmp && \ + wget https://root.cern.ch/download/root_v$ROOT_VERSION.source.tar.gz && \ + tar xvzf root_v$ROOT_VERSION.source.tar.gz && cd root-$ROOT_VERSION && \ + mkdir obj && cd obj && \ + cmake3 .. -Dpythia6=ON -DPYTHIA6_LIBRARY=/pythia6428/libPythia6.so && \ + make && \ + cd .. && \ + mv obj /opt/root-$ROOT_VERSION && \ + rm -rf /tmp/root* && \ + echo "cd /opt/root-$ROOT_VERSION && source bin/thisroot.sh && cd -" >> /etc/profile.d/root_env.sh && cd + + +#GENIE +#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 https://github.com/GENIE-MC/Generator.git genie_generator && \ + cd genie_generator && git checkout R-3_00_02 && \ + 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 && make && make install +#GENIE REWEIGHT + RUN cd /genie && git clone https://github.com/GENIE-MC/Reweight.git genie_reweight && \ + cd genie_reweight && git checkout R-1_00_00 && \ + 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 \ No newline at end of file