Skip to content
Snippets Groups Projects

feat: install most dependencies in cacheable layer, before adding main

Merged Wouter Deconinck requested to merge cacheable-layer into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -129,7 +129,7 @@ EOF
@@ -129,7 +129,7 @@ EOF
## ========================================================================================
## ========================================================================================
FROM spack as builder
FROM spack as builder
## Setup our custom environment (secret mount for write-enabled mirror)
## 1. Setup our default environment (secret mount for write-enabled mirror)
COPY --from=spack-environment . /opt/spack-environment/
COPY --from=spack-environment . /opt/spack-environment/
ARG ENV=dev
ARG ENV=dev
ENV SPACK_ENV=/opt/spack-environment/${ENV}
ENV SPACK_ENV=/opt/spack-environment/${ENV}
@@ -148,7 +148,7 @@ ccache --show-stats
@@ -148,7 +148,7 @@ ccache --show-stats
ccache --zero-stats
ccache --zero-stats
EOF
EOF
## Setup our custom environment with custom versions (on top of cached layer)
## 2. Setup our environment with custom versions (on top of cached layer)
ARG JUGGLER_VERSION=""
ARG JUGGLER_VERSION=""
ARG EICRECON_VERSION=""
ARG EICRECON_VERSION=""
ADD https://eicweb.phy.anl.gov/api/v4/projects/EIC%2Fjuggler/repository/tree?ref=${JUGGLER_VERSION} /tmp/juggler.json
ADD https://eicweb.phy.anl.gov/api/v4/projects/EIC%2Fjuggler/repository/tree?ref=${JUGGLER_VERSION} /tmp/juggler.json
Loading