Created
January 26, 2024 19:44
-
-
Save vsoch/16705768ffa55df44d1552f5ac662842 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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