NOAA-GSL / ExascaleWorkflowSandbox

Other
2 stars 2 forks source link

Separate bootstrap and base installation #24

Closed christopherwharrop-noaa closed 1 year ago

christopherwharrop-noaa commented 1 year ago

When installing the Spack packages from a build cache on our air-gapped HPC with no internet access, it was discovered that the removal of the compiler bootstrap environment when the base set of packages is installed causes the installation from the mirror to fail. This is because the mirror installation is looking for a compiler that matches Spack specs in the base environment, and it can't find one. Spack seems to be limited in that it can't seem to figure out that the necessary compiler is in the binary build cache in the mirror. This is fixed by (1) moving the bootstrap compiler installation out of the base install script and into its own script and (2) not removing the bootstrap compiler Spack environment after the desired compiler is built from it.

The Dockerfiles for constructing the base environment were updated to call both the bootstrap and the base scripts.

christopherwharrop-noaa commented 1 year ago

@venitahagerty - Wow. Thanks for noticing those. There were actually 4 of them! Should be fixed. Now I just have to wait 4-5 hours for the CI to rerun.