Skip to content
Snippets Groups Projects
Dockerfile 3.64 KiB
Newer Older
  • Learn to ignore specific revisions
  • # dd4hep 
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    #
    FROM  eicweb.phy.anl.gov:4567/containers/image_recipes/geant4_base:latest
    
    LABEL maintainer="Whitney Armstrong <warmstrong@anl.gov>" \
          name="dd4hep_base" \
          group="containers/image_recipes" \
          march="native" \
          basedist="ubuntu" \
          base="geant4_base" \
    
          version="1.12.1"
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
    
    #RUN cd /tmp \
    #      && wget https://cmake.org/files/v3.10/cmake-3.10.1.tar.gz  \
    #      && tar -zxvf cmake-3.10.1.tar.gz \
    #      && cd cmake-3.10.1 && mkdir build && cd build \
    #      && cmake ../. && make -j10 install
    
    # CLHEP is installed in root_base
    #RUN cd /tmp \
    #      && git clone --depth=1 https://gitlab.cern.ch/CLHEP/CLHEP.git \
    #      && mkdir -p builds/clhep_build \
    #      && cd  builds/clhep_build \
    #      && cmake /tmp/CLHEP/.  \
    #      && make -j38 install \
    #      && cd /tmp && rm -rf /tmp/CLHEP && rm -rf /tmp/builds/clhep_build
    
    #
    RUN  cd /tmp \
    
          && apt-get install -y python-yaml \
    
          && source /usr/local/bin/thisroot.sh \
          && source /usr/local/bin/geant4.sh \
          && git clone https://github.com/iLCSoft/LCIO.git \
          && mkdir -p LCIO/build && cd LCIO/build \
          && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local \
          && make -j30  && make -j4 install \
          && cd /tmp && rm -rf /tmp/LCIO 
    
    
    RUN  cd /tmp \
          && source /usr/local/bin/thisroot.sh \
          && source /usr/local/bin/geant4.sh \
    
          && git clone https://eicweb.phy.anl.gov/EIC/podio.git \
    
          && mkdir -p podio/build && cd podio/build \
          && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=17 \
          && make -j30  && make -j4 install \
          && cd /tmp/podio/lcio2 && mkdir build && cd build \
          && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=17 \
          && make -j30  && make -j4 install \
          && cd /tmp/podio/lcio2_tools && mkdir build && cd build \
          && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=17 \
          && make -j30  && make -j4 install \
    
          && cd /tmp && rm -rf /tmp/podio
    
    RUN apt-get update && apt-get remove -y libtbb-dev libtbb2   \
          && cd /tmp \
    
          && git clone https://eicweb.phy.anl.gov/eic_tools/DD4hep.git \
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
          && source /usr/local/bin/thisroot.sh \
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
          && source /usr/local/bin/geant4.sh \
    
          && mkdir -p DD4hep/build && cd DD4hep/build \
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
          && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local  -DCMAKE_CXX_STANDARD=17 -DDD4HEP_USE_GEANT4=ON \
          && make -j30  && make -j4 install \
    
          && cd /tmp && rm -rf /tmp/DD4hep  \
          && apt-get update && apt-get install -y libtbb-dev libtbb2  \
          && apt-get clean -y 
     
    
    #RUN cd /tmp  \
    #      && apt-get install -y libtbb-dev \
    #      && source /usr/local/bin/thisroot.sh \
    #      && source /usr/local/bin/geant4.sh \
    #      && source /usr/local/bin/thisdd4hep.sh \
    #      && git clone https://eicweb.phy.anl.gov/eic_tools/gaudi.git \
    #      && mkdir -p gaudi/build && cd gaudi/build \
    #      && cmake --version \
    #      && cmake ../. -DBoost_NO_BOOST_CMAKE=TRUE  \
    #              -DCMAKE_INSTALL_PREFIX=/usr/local  \
    #              -DGAUDI_USE_SYSTEM_CPP_GSL=OFF \
    #              -DGAUDI_USE_SYSTEM_RANGES_V3=OFF \
    #              -DCMAKE_CXX_STANDARD=17 \
    #      && make -j30  && make -j4 install \
    #      && cd /tmp && rm -rf /tmp/gaudi 
    
    #
    #RUN cd /tmp \
    #      && git clone  https://gitlab.cern.ch/acts/acts-core.git \
    #      && source /usr/local/bin/thisroot.sh \
    #      && source /usr/local/bin/geant4.sh \
    #      && source /usr/local/bin/thisdd4hep.sh \
    #      && mkdir -p acts-core/build && cd acts-core/build \
    #      && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local  -DCMAKE_CXX_STANDARD=17 -DACTS_BUILD_DD4HEP_PLUGIN=ON \
    #      && make -j30  && make -j4 install \
    #      && cd /tmp && rm -rf /tmp/acts-core