Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created June 2, 2021 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/664e8a37992b4316c6b15d1a6a9f1548 to your computer and use it in GitHub Desktop.
Save icaoberg/664e8a37992b4316c6b15d1a6a9f1548 to your computer and use it in GitHub Desktop.
Singularity recipe for tokei
#!/bin/bash
# Copyright © 2021 Pittsburgh Supercomputing Center.
# All Rights Reserved.
IMAGE=singularity-tokei-12.1.2.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 icaoberg@psc.edu
WEBSITE https://www.andrew.cmu.edu/~icaoberg
VERSION 12.1.2
%post
apk update
apk add tokei
####################################################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment