Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates base image, add eamxx files/pkgs #6

Merged
merged 3 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions ghci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM spack/ubuntu-jammy:0.22.1
FROM spack/ubuntu-jammy:0.22.2

LABEL org.opencontainers.image.description="E3SM ghci container is mainly for testing on github actions"

ARG GCC_VERSION=11.4.0
ARG MPICH_VERSION=3.4.3
Expand Down Expand Up @@ -45,6 +47,9 @@ RUN mkdir -p /opt/spack-environment \
&& echo " - othpkgs:" \
&& echo " - cmake" \
&& echo " - cprnc" \
&& echo " - yaml-cpp" \
&& echo " - fmt" \
&& echo " - spdlog" \
&& echo " " \
&& echo " specs:" \
&& echo " - szip" \
Expand All @@ -69,20 +74,22 @@ RUN mkdir -p /opt/spack-environment \
&& echo "") > /opt/spack-environment/spack.yaml

# TODO: do these intervene with each other?
# https://cache.spack.io/tag/v0.22.1/
RUN spack mirror add v0.22.1 https://binaries.spack.io/v0.22.1
# https://cache.spack.io/tag/v0.22.2/
RUN spack mirror add v0.22.2 https://binaries.spack.io/v0.22.2
RUN spack buildcache keys --install --trust
# https://cache.spack.io/tag/v0.22.1/?stack=e4s
RUN spack mirror add v0.22.1-e4s https://binaries.spack.io/v0.22.1/e4s
RUN spack mirror add v0.22.2-e4s https://binaries.spack.io/v0.22.2/e4s
RUN spack buildcache keys --install --trust
# https://cache.spack.io/tag/v0.22.1/?stack=root#
RUN spack mirror add v0.22.1-root https://binaries.spack.io/v0.22.1/root
# https://cache.spack.io/tag/v0.22.2/?stack=root#
RUN spack mirror add v0.22.2-root https://binaries.spack.io/v0.22.2/root
RUN spack buildcache keys --install --trust
# https://oaciss.uoregon.edu/e4s/inventory.html
RUN spack mirror add E4S-24.0 https://cache.e4s.io/24.0
RUN spack buildcache keys -it
RUN spack mirror add E4S https://cache.e4s.io
RUN spack buildcache keys -it

# TODO: add e4s inventory when they support ubuntu 22.04+
# # https://oaciss.uoregon.edu/e4s/inventory.html
# RUN spack mirror add E4S-24.0 https://cache.e4s.io/24.0
# RUN spack buildcache keys -it
# RUN spack mirror add E4S https://cache.e4s.io
# RUN spack buildcache keys -it

RUN cd /opt/spack-environment && spack env activate . && spack install --fail-fast && spack gc -y

Expand All @@ -92,10 +99,6 @@ RUN cd /opt/spack-environment && \
ENV INPUT_DATA_DIR=/projects/e3sm/inputdata
RUN mkdir -p $INPUT_DATA_DIR

RUN mkdir -p /projects/e3sm/inputdata/atm/cam/physprops/
RUN wget https://web.lcrc.anl.gov/public/e3sm/inputdata/atm/cam/physprops/p3_lookup_table_1.dat-v4.1.2
RUN mv p3_lookup_table_1.dat-v4.1.2 /projects/e3sm/inputdata/atm/cam/physprops/

ENV USER=ghciocitester

RUN git config --global user.email "${USER}@${USER}.${USER}"
Expand Down
Loading