Skip to content

Commit

Permalink
Use Spack's gnupg 2.4 for amazon-linux-2 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackgalbreath committed Mar 9, 2023
1 parent 90f32f4 commit d476c20
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Dockerfiles/e4s-amazonlinux-2.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ RUN yum update -y \
gcc-gfortran \
gettext \
git \
gpg \
iputils \
jq \
libffi-devel \
Expand Down Expand Up @@ -47,10 +46,23 @@ RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install gnureadline 'boto3<=1.20.35' 'botocore<=1.23.46' pyyaml pytz minio requests clingo \
&& rm -rf ~/.cache

CMD ["/bin/bash"]
COPY gpg.yaml /spack.yaml
RUN git clone https://github.com/spack/spack /spack \
&& export SPACK_ROOT=/spack \
&& . /spack/share/spack/setup-env.sh \
&& time spack -e . concretize -f | tee concretize.log \
&& spack -e . install \
&& spack -e . gc -y \
&& spack clean -a \
&& mv concretize.log spack.yaml /bootstrap/runner/. \
&& rm -rf /spack /spack.yaml /spack.lock /.spack-env /root/.spack

ENV NVIDIA_VISIBLE_DEVICES=all \
ENV PATH=/bootstrap/runner/view/bin:$PATH \
NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
LANGUAGE=en_US:en \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8

CMD ["/bin/bash"]

18 changes: 18 additions & 0 deletions gpg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
spack:
view: /bootstrap/runner/view

config:
install_tree:
root: /bootstrap/runner/install


packages:
all:
require:
- one_of:
- target=x86_64
- target=aarch64
- target=ppc64le

specs:
- 'gnupg@2.4:'

0 comments on commit d476c20

Please sign in to comment.