Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active June 2, 2021 21:26
Show Gist options
  • Save icaoberg/fe2bbd65b7df59ee1459f31e1bfacea8 to your computer and use it in GitHub Desktop.
Save icaoberg/fe2bbd65b7df59ee1459f31e1bfacea8 to your computer and use it in GitHub Desktop.
Singularity recipe for hyperfine
#!/bin/bash
# Copyright © 2021 Pittsburgh Supercomputing Center.
# All Rights Reserved.
IMAGE=singularity-hyperfine-1.11.0.sif
DEFINITION=Singularity
if [ -f $IMAGE ]; then
rm -fv $IMAGE
fi
sudo singularity build $IMAGE $DEFINITION
if [ -f $IMAGE ]; then
exit 0
else
exit 1
fi
Bootstrap: docker
From: alpine:edge
%labels
AUTHOR icaoberg
MAINTAINER [email protected]
WEBSITE https://www.andrew.cmu.edu/~icaoberg
VERSION 1.11.0
%post
apk update
apk add hyperfine
####################################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment