generate-artifact.sh
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} |