Quantcast
Channel: Recent Gists from vsoch
Viewing all articles
Browse latest Browse all 30

generate-artifact.sh

$
0
0
generate-artifact.sh
#!/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}

Viewing all articles
Browse latest Browse all 30

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>