spack/share/spack
Massimiliano Culpo 6063600a7b
containerize: pin the Spack version used in a container (#21910)
This PR permits to specify the `url` and `ref` of the Spack instance used in a container recipe simply by expanding the YAML schema as outlined in #20442:
```yaml
container:
  images:
    os: amazonlinux:2
    spack:
      ref: develop
      resolve_sha: true
```
The `resolve_sha` option, if true, verifies the `ref` by cloning the Spack repository in a temporary directory and transforming any tag or branch name to a commit sha. When this new ability is leveraged an additional "bootstrap" stage is added, which builds an image with Spack setup and ready to install software. The Spack repository to be used can be customized with the `url` keyword under `spack`.

Modifications:
- [x] Permit to pin the version of Spack, either by branch or tag or sha
- [x] Added a few new OSes (centos:8, amazonlinux:2, ubuntu:20.04, alpine:3, cuda:11.2.1)
- [x] Permit to print the bootstrap image as a standalone
- [x] Add documentation on the new part of the schema
- [x] Add unit tests for different use cases
2021-10-25 13:09:27 -07:00
..
bash fix setup-env.sh on older linux zsh (#21721) 2021-03-10 09:44:50 -08:00
bootstrap/github-actions Bootstrap clingo from binaries (#22720) 2021-08-18 11:14:02 -07:00
csh copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
docker Build container images on Github Actions and push to multiple registries (#26247) 2021-09-30 23:34:47 +02:00
docs/docker/module-file-tutorial copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
gitlab E4S amd64 CI: add parsec (#26906) 2021-10-22 15:02:47 -06:00
keys update tutorial public key 2021-04-14 23:53:07 -07:00
logo add artisanal handcrafted SVG Spack logo. (#6165) 2017-11-06 22:42:16 -08:00
qa Add spack env activate --temp (#25388) 2021-10-11 06:56:03 -04:00
templates containerize: pin the Spack version used in a container (#21910) 2021-10-25 13:09:27 -07:00
setup-env.csh Introduce a SPACK_PYTHON environment variable (#21222) 2021-02-12 10:52:44 -08:00
setup-env.fish setup-env: allow users to skip slow parts (#24545) 2021-07-08 17:07:26 +02:00
setup-env.sh setup-env: allow users to skip slow parts (#24545) 2021-07-08 17:07:26 +02:00
setup-tutorial-env.sh Tab to spaces (#22362) 2021-03-18 06:20:06 +00:00
spack-completion.bash containerize: pin the Spack version used in a container (#21910) 2021-10-25 13:09:27 -07:00