forked from spack/spack-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (32 loc) · 1.35 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (32 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:22.04 AS stage
ENV DEBIAN_FRONTEND=noninteractive
# Install AWS cli
RUN apt-get update -y && \
apt-get install -y \
# Requirements for AWS cli
unzip less groff curl && \
apt-get autoremove --purge && \
apt-get clean
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && ./aws/install && aws --version
# Download the buildcache
RUN mkdir /mirror
RUN aws --region us-east-1 --no-sign-request s3 sync s3://spack-binaries/releases/v0.22/tutorial /mirror
# RUN aws --region us-east-1 --no-sign-request s3 sync s3://spack-binaries/releases/v0.22/build_cache/_pgp /mirror/build_cache/_pgp
# COPY tutorial.pub /mirror/build_cache/_pgp/78F3726939CA1B94893B66E8BC86F6FB94429164.pub
FROM ghcr.io/spack/tutorial-ubuntu-22.04:v2023-10-30
COPY --from=stage /mirror /mirror
RUN chmod -R go+r /mirror
COPY /packages.yaml /etc/spack/packages.yaml
COPY /config.yaml /etc/spack/config.yaml
COPY /concretizer.yaml /etc/spack/concretizer.yaml
RUN DEBIAN_FRONTEND=noninteractive apt-get remove -y gcc-12 && \
apt-get update -y && \
apt-get install -y --no-install-recommends emacs bash-completion less jq && \
apt-get -y autoremove --purge && \
apt-get clean
RUN useradd -ms /bin/bash spack && \
chmod -R go+r /etc/spack
USER spack
WORKDIR /home/spack
ENTRYPOINT [ "bash" ]