File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ RUN yum update -y \
16
16
gcc-gfortran \
17
17
gettext \
18
18
git \
19
- gpg \
20
19
iputils \
21
20
jq \
22
21
libffi-devel \
@@ -47,10 +46,23 @@ RUN python3 -m pip install --upgrade pip setuptools wheel \
47
46
&& python3 -m pip install gnureadline 'boto3<=1.20.35' 'botocore<=1.23.46' pyyaml pytz minio requests clingo \
48
47
&& rm -rf ~/.cache
49
48
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
51
59
52
- ENV NVIDIA_VISIBLE_DEVICES=all \
60
+ ENV PATH=/bootstrap/runner/view/bin:$PATH \
61
+ NVIDIA_VISIBLE_DEVICES=all \
53
62
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
54
63
LANGUAGE=en_US:en \
55
64
LANG=en_US.UTF-8 \
56
65
LC_ALL=en_US.UTF-8
66
+
67
+ CMD ["/bin/bash" ]
68
+
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments