Skip to content

Commit

Permalink
ghci-0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mahf708 committed Oct 15, 2024
1 parent 2e63097 commit 2ba103e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 188 deletions.
28 changes: 1 addition & 27 deletions ghci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
FROM spack/ubuntu-jammy:0.22.2

LABEL org.opencontainers.image.source=https://github.com/E3SM-Project/containers
LABEL org.opencontainers.image.description="E3SM ghci container is mainly for testing on github actions"
LABEL org.opencontainers.image.licenses=BSD-3-Clause
FROM ghcr.io/e3sm-project/containers-inputdata-files:main

ARG GCC_VERSION=11.4.0
ARG MPICH_VERSION=4.2.1
Expand Down Expand Up @@ -104,9 +100,6 @@ RUN cd /opt/spack-environment && spack env activate . && spack install --fail-fa
RUN cd /opt/spack-environment && \
spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh

ENV INPUT_DATA_DIR=/projects/e3sm/inputdata
RUN mkdir -p $INPUT_DATA_DIR

ENV USER=ghciocitester

RUN git config --global user.email "${USER}@${USER}.${USER}"
Expand All @@ -118,25 +111,6 @@ ENV TZ=America/Los_Angeles
ENV LANGUAGE=en_US:en \
LANG=en_US.UTF-8

# TODO: move this to a separate image (i.e., above is "base", below is "full")?
RUN mkdir -p /app/ \
&& (echo "" \
&& echo "cat /app/files.txt | while read -r line; do" \
&& echo " file_url=\$line" \
&& echo " file_loc=\${line//https\:\/\/web\.lcrc\.anl\.gov\/public\/e3sm\/inputdata/${INPUT_DATA_DIR}}" \
&& echo " mkdir -p \$( dirname -- \"\$file_loc\")" \
&& echo " touch \"\$file_loc\"" \
&& echo " echo \"downloading from \$file_url\"" \
&& echo " echo \"downloading to \$file_loc\"" \
&& echo " wget -q -O \"\$file_loc\" \"\$file_url\"" \
&& echo "done" \
&& echo "") > /app/download.sh

RUN chmod +x /app/download.sh

COPY files.txt /app/files.txt
RUN /app/download.sh

# TODO: maybe add a test here or in the workflow?

ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l"]
160 changes: 0 additions & 160 deletions ghci/files.txt

This file was deleted.

2 changes: 1 addition & 1 deletion ghci/readme
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Design notes
- the container is based on spack/ubuntu-jammy:0.22.2
- the container relies on binary cache to accelerate builds
- the container is based on gcc 11, native to ubuntu 22.04 (jammy)
- the container has mpich 3.4.3, to ensure compatibility with craympich
- the container has mpich 4.2.1, likely incompatibile with craympich
- the container houses within it (~10 GB of) data files from the inputdata server

0 comments on commit 2ba103e

Please sign in to comment.