Skip to content

Commit

Permalink
update CentOS 7 images (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmk0 authored Jul 7, 2020
1 parent 3009424 commit ac2bd3a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
18 changes: 13 additions & 5 deletions centos7-lcg95apython3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ FROM ${REGISTRY}/centos7:${TAG}
LABEL description="CERN CentOS 7 with Acts dependencies from LCG 95apython3"
LABEL maintainer="Paul Gessinger <[email protected]>"
# increase whenever any of the RUN commands change
LABEL version="2"
LABEL version="3"

ENV LCG_RELEASE 95apython3
ENV LCG_PLATFORM x86_64-centos7-gcc8-opt
ENV LCG_PLATFORM_BASE x86_64-centos7
ENV LCG_PLATFORM ${LCG_PLATFORM_BASE}-gcc8-opt
ENV LCGCMAKE_BRANCH LCG_95a

# Add the LCG rpm repository as described here
#
Expand All @@ -19,9 +21,9 @@ RUN yum-config-manager --add-repo https://lcgpackages.web.cern.ch/lcgpackages/rp
&& yum -y install \
LCG_${LCG_RELEASE}_Boost_1.69.0_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_CMake_3.11.1_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_cmaketools_1.8_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_DD4hep_01_10_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_eigen_3.3.7_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_gcc_8.2.0_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_Geant4_10.05_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_lcgenv_1.3.8_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_ninja_1.7.2.gcc0ea.kitware.dyndep_${LCG_PLATFORM//-/_}.noarch \
Expand All @@ -30,14 +32,20 @@ RUN yum-config-manager --add-repo https://lcgpackages.web.cern.ch/lcgpackages/rp
LCG_${LCG_RELEASE}_tbb_2019_U1_${LCG_PLATFORM//-/_}.noarch \
&& yum -y clean all

# Add missing directory links so the view creating script finds the compiler
RUN mkdir --parents /opt/lcg/LCG_${LCG_RELEASE}/gcc/8 \
&& ln --relative --symbolic --verbose \
/opt/lcg/gcc/8.2.0-3fa06/${LCG_PLATFORM_BASE} \
/opt/lcg/LCG_${LCG_RELEASE}/gcc/8/${LCG_PLATFORM_BASE}

# Create the LCG view. Use a fixed location since there is only one
# release/platform combination. This way, images with different
# configurations (including different compilers) can be easily substituted
# without needing to know the specific contents.
RUN git clone https://gitlab.cern.ch/sft/lcgcmake.git lcgcmake \
--branch=${LCGCMAKE_BRANCH} --depth=1 \
&& lcgcmake/cmake/scripts/create_lcg_view.py \
-l /opt/lcg \
-r ${LCG_RELEASE} \
-l /opt/lcg/LCG_${LCG_RELEASE} \
-p ${LCG_PLATFORM} \
/opt/lcg_view \
&& rm -rf lcgcmake
18 changes: 13 additions & 5 deletions centos7-lcg96/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ FROM ${REGISTRY}/centos7:${TAG}
LABEL description="CERN CentOS 7 with Acts dependencies from LCG 96"
LABEL maintainer="Paul Gessinger <[email protected]>"
# increase whenever any of the RUN commands change
LABEL version="2"
LABEL version="3"

ENV LCG_RELEASE 96
ENV LCG_PLATFORM x86_64-centos7-gcc8-opt
ENV LCG_PLATFORM_BASE x86_64-centos7
ENV LCG_PLATFORM ${LCG_PLATFORM_BASE}-gcc8-opt
ENV LCGCMAKE_BRANCH LCG_96

# Add the LCG rpm repository as described here
#
Expand All @@ -19,9 +21,9 @@ RUN yum-config-manager --add-repo https://lcgpackages.web.cern.ch/lcgpackages/rp
&& yum -y install \
LCG_${LCG_RELEASE}_Boost_1.70.0_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_CMake_3.14.3_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_cmaketools_1.8_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_DD4hep_01_10_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_eigen_3.3.7_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_gcc_8.2.0_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_Geant4_10.05.p01_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_hepmc3_3.1.1_${LCG_PLATFORM//-/_}.noarch \
LCG_${LCG_RELEASE}_lcgenv_1.3.8_${LCG_PLATFORM//-/_}.noarch \
Expand All @@ -31,14 +33,20 @@ RUN yum-config-manager --add-repo https://lcgpackages.web.cern.ch/lcgpackages/rp
LCG_${LCG_RELEASE}_tbb_2019_U7_${LCG_PLATFORM//-/_}.noarch \
&& yum -y clean all

# Add missing directory links so the view creating script finds the compiler
RUN mkdir --parents /opt/lcg/LCG_${LCG_RELEASE}/gcc/8 \
&& ln --relative --symbolic --verbose \
/opt/lcg/gcc/8.2.0-3fa06/${LCG_PLATFORM_BASE} \
/opt/lcg/LCG_${LCG_RELEASE}/gcc/8/${LCG_PLATFORM_BASE}

# Create the LCG view. Use a fixed location since there is only one
# release/platform combination. This way, images with different
# configurations (including different compilers) can be easily substituted
# without needing to know the specific contents.
RUN git clone https://gitlab.cern.ch/sft/lcgcmake.git lcgcmake \
--branch=${LCGCMAKE_BRANCH} --depth=1 \
&& lcgcmake/cmake/scripts/create_lcg_view.py \
-l /opt/lcg \
-r ${LCG_RELEASE} \
-l /opt/lcg/LCG_${LCG_RELEASE} \
-p ${LCG_PLATFORM} \
/opt/lcg_view \
&& rm -rf lcgcmake

0 comments on commit ac2bd3a

Please sign in to comment.