containerize: ensure bootstrap images contain all system dependencies (#36818)

This also makes `spack bootstrap status` exit 1 if some dependency is missing
This commit is contained in:
Jonathon Anderson
2023-08-09 02:46:59 -05:00
committed by GitHub
parent 3d733da70a
commit 9aa3b4619b
9 changed files with 27 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ RUN yum update -y \
gcc-gfortran \
git \
gnupg2 \
hg \
hostname \
iproute \
make \
@@ -18,6 +19,7 @@ RUN yum update -y \
python3-pip \
python3-setuptools \
unzip \
zstd \
&& pip3 install boto3 \
&& rm -rf /var/cache/yum \
&& yum clean all

View File

@@ -39,7 +39,9 @@ WORKDIR /root
SHELL ["docker-shell"]
# Creates the package cache
RUN spack bootstrap now && spack spec hdf5+mpi
RUN spack bootstrap now \
&& spack bootstrap status --optional \
&& spack spec hdf5+mpi
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
CMD ["interactive-shell"]

View File

@@ -13,6 +13,7 @@ RUN yum update -y \
git \
gnupg2 \
hostname \
hg \
iproute \
make \
patch \
@@ -20,6 +21,7 @@ RUN yum update -y \
python3-pip \
python3-setuptools \
unzip \
zstd \
&& pip3 install boto3 \
&& rm -rf /var/cache/yum \
&& yum clean all

View File

@@ -15,13 +15,16 @@ RUN dnf update -y \
gcc-gfortran \
git \
gnupg2 \
hg \
hostname \
iproute \
make \
svn \
patch \
python3.11 \
python3.11-setuptools \
unzip \
zstd \
&& python3.11 -m ensurepip \
&& pip3.11 install boto3 \
&& rm -rf /var/cache/dnf \

View File

@@ -9,12 +9,16 @@ RUN zypper ref && \
gcc-c++\
gcc-fortran\
make\
mercurial\
git\
gzip\
patch\
python3-base \
python3-boto3\
subversion\
tar\
unzip\
xz\
zstd\
&& zypper clean
{% endblock %}

View File

@@ -22,10 +22,13 @@ RUN apt-get -yqq update \
iproute2 \
locales \
make \
mercurial \
subversion \
python3 \
python3-pip \
python3-setuptools \
unzip \
zstd \
&& locale-gen en_US.UTF-8 \
&& pip3 install boto3 \
&& rm -rf /var/lib/apt/lists/*