Skip to content

Commit d476c20

Browse files
Use Spack's gnupg 2.4 for amazon-linux-2 (#18)
1 parent 90f32f4 commit d476c20

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

Dockerfiles/e4s-amazonlinux-2.dockerfile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ RUN yum update -y \
1616
gcc-gfortran \
1717
gettext \
1818
git \
19-
gpg \
2019
iputils \
2120
jq \
2221
libffi-devel \
@@ -47,10 +46,23 @@ RUN python3 -m pip install --upgrade pip setuptools wheel \
4746
&& python3 -m pip install gnureadline 'boto3<=1.20.35' 'botocore<=1.23.46' pyyaml pytz minio requests clingo \
4847
&& rm -rf ~/.cache
4948

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

52-
ENV NVIDIA_VISIBLE_DEVICES=all \
60+
ENV PATH=/bootstrap/runner/view/bin:$PATH \
61+
NVIDIA_VISIBLE_DEVICES=all \
5362
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
5463
LANGUAGE=en_US:en \
5564
LANG=en_US.UTF-8 \
5665
LC_ALL=en_US.UTF-8
66+
67+
CMD ["/bin/bash"]
68+

gpg.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
spack:
2+
view: /bootstrap/runner/view
3+
4+
config:
5+
install_tree:
6+
root: /bootstrap/runner/install
7+
8+
9+
packages:
10+
all:
11+
require:
12+
- one_of:
13+
- target=x86_64
14+
- target=aarch64
15+
- target=ppc64le
16+
17+
specs:
18+

0 commit comments

Comments
 (0)