Quantcast
Viewing latest article 30
Browse Latest Browse All 30

generate-artifact.sh

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 latest article 30
Browse Latest Browse All 30

Trending Articles