Skip to content

Commit

Permalink
updates base image, add eamxx files/pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
mahf708 committed Sep 23, 2024
1 parent beb549d commit c502671
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 109 deletions.
29 changes: 18 additions & 11 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 Down
Loading

0 comments on commit c502671

Please sign in to comment.