Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use spack to install gpg 2.4 for amazon-linux-2 #18

Merged
merged 3 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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:'