diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-05-24 23:33:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 21:33:52 +0000 |
commit | ba907defcae98d965fc8dec4b83eb528838d4959 (patch) | |
tree | b9b0732dd8f8d0aa7a94b6f491308ae718c4e143 /.github/dependabot.yml | |
parent | 87b078d1f32158339081b66201484c40a54b1ce2 (diff) | |
download | spack-ba907defcae98d965fc8dec4b83eb528838d4959.tar.gz spack-ba907defcae98d965fc8dec4b83eb528838d4959.tar.bz2 spack-ba907defcae98d965fc8dec4b83eb528838d4959.tar.xz spack-ba907defcae98d965fc8dec4b83eb528838d4959.zip |
Add a command to generate a local mirror for bootstrapping (#28556)
This PR builds on #28392 by adding a convenience command to create a local mirror that can be used to bootstrap Spack. This is to overcome the inconvenience in setting up this mirror manually, which has been reported when trying to setup Spack on air-gapped systems.
Using this PR the user can create a bootstrapping mirror, on a machine with internet access, by:
% spack bootstrap mirror --binary-packages /opt/bootstrap
==> Adding "clingo-bootstrap@spack+python %apple-clang target=x86_64" and dependencies to the mirror at /opt/bootstrap/local-mirror
==> Adding "gnupg@2.3: %apple-clang target=x86_64" and dependencies to the mirror at /opt/bootstrap/local-mirror
==> Adding "patchelf@0.13.1:0.13.99 %apple-clang target=x86_64" and dependencies to the mirror at /opt/bootstrap/local-mirror
==> Adding binary packages from "https://github.com/alalazo/spack-bootstrap-mirrors/releases/download/v0.1-rc.2/bootstrap-buildcache.tar.gz" to the mirror at /opt/bootstrap/local-mirror
To register the mirror on the platform where it's supposed to be used run the following command(s):
% spack bootstrap add --trust local-sources /opt/bootstrap/metadata/sources
% spack bootstrap add --trust local-binaries /opt/bootstrap/metadata/binaries
The mirror has to be moved over to the air-gapped system, and registered using the commands shown at prompt. The command has options to:
1. Add pre-built binaries downloaded from Github (default is not to add them)
2. Add development dependencies for Spack (currently the Python packages needed to use spack style)
* bootstrap: refactor bootstrap.yaml to move sources metadata out
* bootstrap: allow adding/removing custom bootstrapping sources
This operation can be performed from the command line since
new subcommands have been added to `spack bootstrap`
* Add --trust argument to spack bootstrap add
* Add a command to generate a local mirror for bootstrapping
* Add a unit test for mirror creation
Diffstat (limited to '.github/dependabot.yml')
0 files changed, 0 insertions, 0 deletions