Sign inSign up

electronioncollider/spack-builder

By electronioncollider

Updated about 4 years ago

Containers to build binary spack buildcache packages on build farms.

Image
0

2.1K

electronioncollider/spack-builder repository overview

The containers in this repository are used to build binary spack buildcache packages on build farms.

The container contains a snapshot of http://github.com/spack/spack and of http://github.com/eic/eic-spack. It is rebuilt automatically upon every commit to the main branch of http://github.com/eic/eic-spack.

Docker

When using docker, the internal mirror "local" at /spack/mirror must be bound to a host directory.

docker run -v /tmp/mirror:/spack/mirror --rm -it electronioncollider/spack-builder:centos7 bash -c "spack install libelf && spack buildcache create --rebuild-index -m local -a libelf"
Singularity

When using singularity, you must open the container as writable, but you do not need to bind directories: you can use any mirror defined in your host configuration (with -m), or a regular directory (with -d).

singularity run -w docker://electronioncollider/spack-builder:centos7 bash -c "spack install libelf && spack buildcache create --rebuild-index -m local -a libelf"

or

singularity run --no-home -w docker://electronioncollider/spack-builder:centos7 bash -c "spack install libelf && spack buildcache create --rebuild-index -d ~/mirror -a libelf"
Notes
  • We use 'spack buildcache create' with -a (--allow-root) to allow the root string in the binaries after RPATH substitution. This fixes a few packages (such as libelf).
  • We use singularity with --no-home to avoid pulling in host system external package definitions.

Tag summary

Content type

Image

Digest

sha256:9f3340f14

Size

199.1 MB

Last updated

about 4 years ago

docker pull electronioncollider/spack-builder:ubuntu20.04