Skip to content

Instantly share code, notes, and snippets.

@vsoch
Created January 26, 2024 19:44
Show Gist options
  • Save vsoch/16705768ffa55df44d1552f5ac662842 to your computer and use it in GitHub Desktop.
Save vsoch/16705768ffa55df44d1552f5ac662842 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This assumes binding the entire directory with this script and lammps-experiment.yaml
hasGpu="${1:-no}"
path="${2:-./compatibility-spec.json}"
# Note that this is hard coded for amd64, for arm you would wantt o add -arm or ppc64le -ppc
wget --quiet https://github.com/supercontainers/compspec-go/releases/download/1-26-2024-2/compspec
chmod +x compspec
# Download the spec for our compatibility artifact
wget --quiet https://raw.githubusercontent.com/supercontainers/compspec-go/main/examples/lammps-experiment.yaml
# Generate!
./compspec create --in ./lammps-experiment.yaml -a custom.gpu.available=$hasGpu -o ${path}
cat ${path}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment