Skip to content
Snippets Groups Projects
centos-full-root6.20.04:7 3.03 KiB
Newer Older
FROM docker.km3net.de/base/centos:7
 MAINTAINER Tamas Gal <tgal@km3net.de>

 RUN yum install -y centos-release-scl epel-release
Tamas Gal's avatar
Tamas Gal committed
 RUN yum install -y man sed cygpath grep test csh tar vim lftp zsh \
Tamas Gal's avatar
Tamas Gal committed
                    bzip2-devel gzip libproxy libgpg-error openssh-server \
                    openssl-devel \
Tamas Gal's avatar
Tamas Gal committed
                    && yum clean -y all
Tamas Gal's avatar
Tamas Gal committed
 RUN yum install -y flex pakchois boost-devel rpmdevtools \
Tamas Gal's avatar
Tamas Gal committed
                    cmake3 fftw-devel log4cpp log4cpp-devel libxml2 \
                    libxml2-devel gsl gsl-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 python3-devel && pip3 install -U pip setuptools && pip3 install numpy
Kay Graf's avatar
Kay Graf committed
 RUN yum install -y ghostscript doxygen texlive texlive-*.noarch && yum clean -y all
Tamas Gal's avatar
Tamas Gal committed
 RUN rpmkeys --import "http://pool.sks-keyservers.net/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef" && \
Tamas Gal's avatar
Tamas Gal committed
     su -c 'curl http://download.mono-project.com/repo/centos7-stable.repo | tee /etc/yum.repos.d/mono-centos7-stable.repo' && \
Tamas Gal's avatar
Tamas Gal committed
     yum install -y mono-devel && \
     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

Tamas Gal's avatar
Tamas Gal committed
 RUN cd / && \
Tamas Gal's avatar
Tamas Gal committed
     curl -L https://lhapdf.hepforge.org/downloads\?f\=old/lhapdf-5.9.1.tar.gz > lhapdf-5.9.1.tar.gz && \
Tamas Gal's avatar
Tamas Gal committed
     tar xzvf lhapdf-5.9.1.tar.gz && \
     cd lhapdf-5.9.1 && \
     ./configure --prefix=/usr/local && \
     make && make install
Tamas Gal's avatar
Tamas Gal committed
# Pythia 6.4.28 (using script in GENIE)
# https://root-forum.cern.ch/t/root-with-pythia6-and-pythia8/19211/4
 RUN cd /tmp && \
     wget https://root.cern.ch/download/pythia6.tar.gz && \
     tar zxvf 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 && \
Tamas Gal's avatar
Tamas Gal committed
     rm -rf pythia6/pythia6416.f && \
Tamas Gal's avatar
Tamas Gal committed
     cd pythia6 && \
     ./makePythia6.linuxx8664 && \
Tamas Gal's avatar
Tamas Gal committed
     mv libPythia6.so /usr/local/lib && \
Tamas Gal's avatar
Tamas Gal committed
     cd .. && \
     rm -rf pythia*
Tamas Gal's avatar
Tamas Gal committed

Tamas Gal's avatar
Tamas Gal committed
 RUN export ROOT_VERSION=6.20.04 && \
     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 .. -DCMAKE_INSTALL_PREFIX=/usr/local \
               -DPYTHON_EXECUTABLE=$(which python3) \
               -Dpythia6=ON \
Tamas Gal's avatar
Tamas Gal committed
               -DPYTHIA6_LIBRARY=/usr/local/lib/libPythia6.so && \
Tamas Gal's avatar
Tamas Gal committed
     make && \
     make install && \
     cd .. && \
     rm -rf root-*
Kay Graf's avatar
Kay Graf committed

 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/*