diff --git a/5.4.10/Dockerfile b/5.4.10/Dockerfile new file mode 100644 index 0000000..f1e1809 --- /dev/null +++ b/5.4.10/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine:edge + +LABEL "MAINTAINER"="icaoberg" +LABEL "EMAIL"="icaoberg@psc.edu" +LABEL "SUPPORT"="help@psc.edu" +LABEL "REPOSITORY"="http://github.com/pscedu/singularity-gnuplot" +LABEL "COPYRIGHT"="Copyright © 2021-2023 Pittsburgh Supercomputing Center. All Rights Reserved." +LABEL "VERSION"="5.4.10" + +RUN apk add --update gnuplot diff --git a/5.4.10/Singularity b/5.4.10/Singularity new file mode 100644 index 0000000..92271f6 --- /dev/null +++ b/5.4.10/Singularity @@ -0,0 +1,16 @@ +Bootstrap: docker +From: alpine:edge + +%labels + AUTHOR icaoberg + EMAIL icaoberg@psc.edu + SUPPORT help@psc.edu + WEBSITE http://github.com/icaoberg/singularity-gnuplot + COPYRIGHT Copyright © 2021-2023 Pittsburgh Supercomputing Center. All Rights Reserved. + VERSION 5.4.10-patch-level-1 + +%post + apk add --update gnuplot + +%runscript + gnuplot "$@" diff --git a/5.4.10/build.sh b/5.4.10/build.sh new file mode 100755 index 0000000..ec1b20a --- /dev/null +++ b/5.4.10/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Copyright © 2021-2023 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +IMAGE=singularity-gnuplot-5.4.10.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 diff --git a/5.4.10/dbuild.sh b/5.4.10/dbuild.sh new file mode 100755 index 0000000..8a640d5 --- /dev/null +++ b/5.4.10/dbuild.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Copyright © 2021-2023 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +docker build -t icaoberg/gnuplot:5.4.10 . diff --git a/5.4.10/gnuplot b/5.4.10/gnuplot new file mode 100755 index 0000000..ce30cdd --- /dev/null +++ b/5.4.10/gnuplot @@ -0,0 +1,18 @@ +#!/bin/bash + +VERSION=5.4.10 +PACKAGE=gnuplot +TOOL=gnuplot +DIRECTORY=$(dirname $0) + +STORAGES=(/ocean /bil /hive /local) + +OPTIONS="" +for STORAGE in "${STORAGES[@]}" +do + if [ -d "$STORAGE" ]; then + OPTIONS=$OPTIONS" -B $STORAGE" + fi +done + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@" diff --git a/5.4.10/modulefile.lua b/5.4.10/modulefile.lua new file mode 100644 index 0000000..e3b0a03 --- /dev/null +++ b/5.4.10/modulefile.lua @@ -0,0 +1,40 @@ +-- +-- gnuplot 5.4.10 modulefile +-- +-- "URL: https://www.psc.edu/resources/software" +-- "Category: Other" +-- "Description: gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits." +-- "Keywords: singularity utilities" + +whatis("Name: gnuplot") +whatis("Version: 5.4.10") +whatis("Category: Other") +whatis("URL: https://www.psc.edu/resources/software") +whatis("Description: gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits.") + +help([[ +gnuplot is a command-line and GUI program that can generate two- and three-dimensional plots of functions, data, and data fits. + +To load the module type + +> module load gnuplot/5.4.10 + +To unload the module type + +> module unload gnuplot/5.4.10 + +Documentation +------------- +For help, type + +> gnuplot --help + +Tools included in this module are + +* gnuplot +]]) + +local package = "gnuplot" +local version = "5.4.10" +local base = pathJoin("/opt/packages",package,version) +prepend_path("PATH", base) diff --git a/5.4.10/rbuild.sh b/5.4.10/rbuild.sh new file mode 100755 index 0000000..c0d60d8 --- /dev/null +++ b/5.4.10/rbuild.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Copyright © 2021-2023 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +IMAGE=singularity-gnuplot-5.4.10.sif +DEFINITION=Singularity + +if [ -f $IMAGE ]; then + rm -fv $IMAGE +fi + +singularity build --remote $IMAGE $DEFINITION + +if [ -f $IMAGE ]; then + exit 0 +else + exit 1 +fi diff --git a/5.4.10/test.sh b/5.4.10/test.sh new file mode 100755 index 0000000..50bfbf0 --- /dev/null +++ b/5.4.10/test.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./singularity-gnuplot-5.4.10.sif --help