https://haampie.github.io/isc-2025
ISC 2025, Hamburg — Harmen Stoppels
# Basic package
spack install python
# Specific version
spack install python@3.11
# With variants
spack install python@3.11+optimizations~debug
# With dependencies
spack install numpy ^python@3.11 ^openblas
# spack.yaml
spack:
specs:
- python@3.11
- numpy
- scipy
$ spack env create myenv
$ spack env activate myenv
$ spack install
Sharing Spack builds with other Spack users
spack install should use itThe same binaries, now for everyone
spack install from the cachedocker run them!Turns your existing binaries into runnable containers:
$ spack -e . buildcache push --base-image ubuntu:24.04
glibc is compatible)
# Dockerfile
FROM ubuntu:24.04
RUN apt-get update && ...
RUN spack install python numpy
Build locally → Write Dockerfile → docker build → Build again
$ spack install python numpy # Build locally
$ spack buildcache push --base-image ubuntu:24.04 ...
Build once → Containerize existing binaries → Done!
$ spack -e . add julia vim
$ spack -e . install
$ spack -e . buildcache push \
--tag julia-and-vim \
--base-image ubuntu:24.04 \
ghcr
spack install from fast binary cachesdocker run the same binaries