diff --git a/README.md b/README.md new file mode 100755 index 0000000..2563af2 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# singularity-ncdu + +Singularity recipe for [ncdu](https://dev.yorhel.nl/ncdu). + +## Building the image using the recipe +### To build the image locally +Run the script `build.sh` to build image locally. + +``` +bash ./build.sh +``` +--- +[![PSC](http://www.andrew.cmu.edu/user/icaoberg/images/logos/psc.png)](http://www.psc.edu) + +[icaoberg](http://www.andrew.cmu.edu/~icaoberg) at the [Pittsburgh Supercomputing Center](http://www.psc.edu) in the [Mellon College of Science](https://www.cmu.edu/ncdus/) at [Carnegie Mellon University](http://www.cmu.edu). diff --git a/Singularity b/Singularity new file mode 100755 index 0000000..18bc504 --- /dev/null +++ b/Singularity @@ -0,0 +1,19 @@ +Bootstrap: docker +From: alpine:edge + +%labels + AUTHOR icaoberg + MAINTAINER icaoberg@psc.edu + WEBSITE http://www.andrew.cmu.edu/~icaoberg + VERSION 1.13 + +#################################################################################### +%appinstall ncdu + apk update + apk add ncdu + +%apphelp ncdu + ncdu --help + +%apprun ncdu + ncdu "$@" diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d7a4415 --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +VERSION=1.13 +IMAGE=singularity-ncdu-"$VERSION".sif +DEFINITION=Singularity + +if [ -f $IMAGE ]; then + rm -fv $IMAGE +fi + +sudo singularity build $IMAGE $DEFINITION