1- FROM spack/ubuntu-jammy:0.22.2
2-
3- LABEL org.opencontainers.image.source=https://github.com/E3SM-Project/containers
4- LABEL org.opencontainers.image.description="E3SM ghci container is mainly for testing on github actions"
5- LABEL org.opencontainers.image.licenses=BSD-3-Clause
1+ FROM ghcr.io/e3sm-project/containers-inputdata-files:main
62
73ARG GCC_VERSION=11.4.0
84ARG MPICH_VERSION=4.2.1
@@ -104,9 +100,6 @@ RUN cd /opt/spack-environment && spack env activate . && spack install --fail-fa
104100RUN cd /opt/spack-environment && \
105101 spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh
106102
107- ENV INPUT_DATA_DIR=/projects/e3sm/inputdata
108- RUN mkdir -p $INPUT_DATA_DIR
109-
110103ENV USER=ghciocitester
111104
112105RUN git config --global user.email "${USER}@${USER}.${USER}"
@@ -118,25 +111,6 @@ ENV TZ=America/Los_Angeles
118111ENV LANGUAGE=en_US:en \
119112 LANG=en_US.UTF-8
120113
121- # TODO: move this to a separate image (i.e., above is "base", below is "full")?
122- RUN mkdir -p /app/ \
123- && (echo "" \
124- && echo "cat /app/files.txt | while read -r line; do" \
125- && echo " file_url=\$ line" \
126- && echo " file_loc=\$ {line//https\:\/\/ web\. lcrc\. anl\. gov\/ public\/ e3sm\/ inputdata/${INPUT_DATA_DIR}}" \
127- && echo " mkdir -p \$ ( dirname -- \"\$ file_loc\" )" \
128- && echo " touch \"\$ file_loc\" " \
129- && echo " echo \" downloading from \$ file_url\" " \
130- && echo " echo \" downloading to \$ file_loc\" " \
131- && echo " wget -q -O \"\$ file_loc\" \"\$ file_url\" " \
132- && echo "done" \
133- && echo "" ) > /app/download.sh
134-
135- RUN chmod +x /app/download.sh
136-
137- COPY files.txt /app/files.txt
138- RUN /app/download.sh
139-
140114# TODO: maybe add a test here or in the workflow?
141115
142116ENTRYPOINT ["/bin/bash" , "--rcfile" , "/etc/profile" , "-l" ]
0 commit comments