This repository contains Spack packages for the EIC.
While we encourage the inclusion of Spack packages in the upstream repository, we realize that some packages may not be mature enough or have too small of a user base to be accepted there.
Installing Spack is outside the scope of this repository, but described in the Spack Getting Started page.
- Clone this repository:
git clone https://github.com/eic/eic-spack.git
- Add this repository to your Spack configuration:
spack repo add eic-spack
- Find an EIC Spack package:
spack find eic-smear
- Install an EIC Spack package:
spack install eic-smear
If this is the first package you install, it will also install all dependencies.
- Load the EIC Spack package:
spack load eic-smear
- Unload the EIC Spack package:
spack unload eic-smear
- Unload all Spack packages:
spack unload -a
- Create and activate a new Spack environment:
spack env create eic-smear
spack env activate eic-smear
- Install an EIC Spack package:
spack install eic-smear
If you already installed this package earlier, this will go very quick.
- Deactivate the Spack environment:
spack env deactivate
You can verify with which root
inside and outside the environment that you did indeed use a different installation base.
Once you have a Spack environment setup, you can easily turn it into a Docker container recipe from any directory with an environment spack.yaml file:
cd $SPACK_ROOT/var/spack/environments/eic-smear/
spack containerize > Dockerfile