This directory provides the docker recipe for the Spack package index on https://packages.spack.io
- On each merge to
develop, DockerHub builds a new imagespack/packages.spack.iowhich is configured in: - https://cloud.docker.com/u/spack/repository/docker/spack/packages.spack.io/builds/edit
The API is a simple, file-based JSON index.
A specific package can be queried via the URI syntax:
https://packages.spack.io/api/:firstLetter/:packageName.json
which will return a HTTP status code 200 with a JSON file for all valid packages (content from spack list --format version_json) and HTTP status code 404 for all other package names.
Examples:
There is also the full index available at once under https://packages.spack.io/api/packages.json
Current down-stream dependencies are, e.g. the https://shields.io service:
Execute in your local Spack source root directory:
docker build -t spack/packages.spack.io:latest -f share/spack/docker/package-index/Dockerfile .Startup a local HTTP server on http://localhost:8080 via:
docker run -p 8080:80 spack/packages.spack.io:latest