Skip to content

Commit

Permalink
Use spack to install gpg 2.4 for amazon-linux-2
Browse files Browse the repository at this point in the history
  • Loading branch information
zackgalbreath committed Mar 8, 2023
1 parent 90f32f4 commit 6b72be4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
17 changes: 14 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,22 @@ 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 \
&& . /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"]

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

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

concretizer:
reuse: false

packages:
all:
target: [x86_64]

specs:
- 'gnupg@2.4:'

0 comments on commit 6b72be4

Please sign in to comment.