Skip to content

Commit

Permalink
Fix url for buildcaches (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Nov 7, 2023
1 parent 474d2c5 commit 30c2992
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM ubuntu:22.04 AS stage

ENV DEBIAN_FRONTEND=noninteractive \
REMOTE_BUILDCACHE_URL="s3://spack-binaries/releases/v0.21/tutorial"
ENV DEBIAN_FRONTEND=noninteractive

# Install AWS cli
RUN apt-get update -y && \
Expand All @@ -16,24 +15,22 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2

# Download the buildcache
RUN mkdir /mirror
RUN aws --region us-east-1 --no-sign-request s3 sync s3://spack-binaries/releases/v0.20/tutorial /mirror
RUN aws --region us-east-1 --no-sign-request s3 sync s3://spack-binaries/releases/v0.21/tutorial /mirror
RUN rm -rf /mirror/buid_cache/_pgp
# TODO: Get the keys from aws as soon as they're fixed
# RUN aws --region us-east-1 --no-sign-request s3 sync s3://spack-binaries/releases/v0.20/build_cache/_pgp /mirror/build_cache/_pgp
COPY tutorial.pub /mirror/build_cache/_pgp/78F3726939CA1B94893B66E8BC86F6FB94429164.pub

FROM ghcr.io/spack/tutorial-ubuntu-22.04:latest

ENV DEBIAN_FRONTEND=noninteractive

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 apt-get remove -y gcc-12 && \
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 && \
apt-get -y autoremove --purge && \
Expand Down

0 comments on commit 30c2992

Please sign in to comment.