diff --git a/10.2.0/Singularity b/10.2.0/Singularity new file mode 100644 index 0000000..37a8b86 --- /dev/null +++ b/10.2.0/Singularity @@ -0,0 +1,19 @@ +Bootstrap: docker +From: gnuoctave/octave:10.2.0 + +%labels + MAINTAINER icaoberg, luism + EMAIL icaoberg@psc.edu, luism@psc.edu + SUPPORT help@psc.edu + WEBSITE http://github.com/pscedu/singularity-octave + COPYRIGHT Copyright © 2024-2025, Pittsburgh Supercomputing Center. All Rights Reserved. + VERSION 10.2.0 + +%post + apt-get update + apt-get install -y gnuplot pandoc vim imagemagick ffmpeg + apt-get clean + apt-get autoclean + +%runscript + octave-cli "$@" diff --git a/10.2.0/build.sh b/10.2.0/build.sh new file mode 100755 index 0000000..8449199 --- /dev/null +++ b/10.2.0/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +IMAGE=singularity-octave-10.2.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 + diff --git a/10.2.0/ffmpeg b/10.2.0/ffmpeg new file mode 100755 index 0000000..6fe361d --- /dev/null +++ b/10.2.0/ffmpeg @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +VERSION=10.2.0 +PACKAGE=octave +TOOL=ffmpeg +DIRECTORY=$(dirname "$0") + +STORAGES=(/ocean /bil /hive /local) + +OPTIONS="" +for STORAGE in "" +do + if [ -d "" ]; then + OPTIONS=" -B " + fi +done + +if id | grep -q hubmap && [ -d "/hive" ]; then + OPTIONS=" -B /hive" +fi + +if id | grep -q bil && [ -d "/bil" ]; then + OPTIONS=" -B /bil" +fi + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif octave -W "$@" diff --git a/10.2.0/gnuplot b/10.2.0/gnuplot new file mode 100755 index 0000000..ec3d027 --- /dev/null +++ b/10.2.0/gnuplot @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +VERSION=10.2.0 +PACKAGE=octave +TOOL=gnuplot +DIRECTORY=$(dirname "$0") + +STORAGES=(/ocean /bil /hive /local) + +OPTIONS="" +for STORAGE in "" +do + if [ -d "" ]; then + OPTIONS=" -B " + fi +done + +if id | grep -q hubmap && [ -d "/hive" ]; then + OPTIONS=" -B /hive" +fi + +if id | grep -q bil && [ -d "/bil" ]; then + OPTIONS=" -B /bil" +fi + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@" diff --git a/10.2.0/modulefile.lua b/10.2.0/modulefile.lua new file mode 100644 index 0000000..5812626 --- /dev/null +++ b/10.2.0/modulefile.lua @@ -0,0 +1,43 @@ +-- +-- octave 10.2.0 modulefile +-- +-- "URL: https://www.psc.edu/resources/software" +-- "Category: Other" +-- "Description: GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations." +-- "Keywords: singularity utilities" + +whatis("Name: octave") +whatis("Version: 10.2.0") +whatis("Category: Other") +whatis("URL: https://www.psc.edu/resources/software") +whatis("Description: GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations.") + +help([[ +GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations. + +To load the module type + +> module load octave/10.2.0 + +To unload the module type + +> module unload octave/10.2.0 + +Tools included in this module are + +* octave-cli +* octave +* gnuplot +* pandoc + +For simplicty, this container also contains + +* ffmpeg +* vim +* imagemagick +]]) + +local package = "octave" +local version = "10.2.0" +local base = pathJoin("/opt/packages",package,version) +prepend_path("PATH", base) diff --git a/10.2.0/octave b/10.2.0/octave new file mode 100755 index 0000000..cfa79b0 --- /dev/null +++ b/10.2.0/octave @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +VERSION=10.2.0 +PACKAGE=octave +TOOL=octave +DIRECTORY=$(dirname "$0") + +STORAGES=(/ocean /bil /hive /local /jet) + +OPTIONS="" +for STORAGE in "" +do + if [ -d "" ]; then + OPTIONS=" -B " + fi +done + +if id | grep -q hubmap && [ -d "/hive" ]; then + OPTIONS=" -B /hive" +fi + +if id | grep -q bil && [ -d "/bil" ]; then + OPTIONS=" -B /bil" +fi + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif octave -W "$@" diff --git a/10.2.0/octave-cli b/10.2.0/octave-cli new file mode 100755 index 0000000..6a00706 --- /dev/null +++ b/10.2.0/octave-cli @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +VERSION=10.2.0 +PACKAGE=octave +TOOL=octave-cli +DIRECTORY=$(dirname "$0") + +STORAGES=(/ocean /bil /hive /local) + +OPTIONS="" +for STORAGE in "" +do + if [ -d "" ]; then + OPTIONS=" -B " + fi +done + +if id | grep -q hubmap && [ -d "/hive" ]; then + OPTIONS=" -B /hive" +fi + +if id | grep -q bil && [ -d "/bil" ]; then + OPTIONS=" -B /bil" +fi + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@" diff --git a/10.2.0/pandoc b/10.2.0/pandoc new file mode 100755 index 0000000..04143c9 --- /dev/null +++ b/10.2.0/pandoc @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +VERSION=10.2.0 +PACKAGE=octave +TOOL=pandoc +DIRECTORY=$(dirname "$0") + +STORAGES=(/ocean /bil /hive /local) + +OPTIONS="" +for STORAGE in "" +do + if [ -d "" ]; then + OPTIONS=" -B " + fi +done + +if id | grep -q hubmap && [ -d "/hive" ]; then + OPTIONS=" -B /hive" +fi + +if id | grep -q bil && [ -d "/bil" ]; then + OPTIONS=" -B /bil" +fi + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@" diff --git a/10.2.0/rbuild.sh b/10.2.0/rbuild.sh new file mode 100755 index 0000000..e78859e --- /dev/null +++ b/10.2.0/rbuild.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +IMAGE=singularity-octave-10.2.0.sif +DEFINITION=Singularity + +if [ -f $IMAGE ]; then + rm -fv $IMAGE +fi + +if [ -f $DEFINITION ]; then + singularity build --remote $IMAGE $DEFINITION +fi + +if [ -f $IMAGE ]; then + exit 0 +else + exit 1 +fi diff --git a/10.2.0/test.sh b/10.2.0/test.sh new file mode 100755 index 0000000..587c1a6 --- /dev/null +++ b/10.2.0/test.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -x # Print commands for debugging + +VERSION=10.2.0 +PACKAGE=octave diff --git a/10.2.0/vim b/10.2.0/vim new file mode 100755 index 0000000..c889215 --- /dev/null +++ b/10.2.0/vim @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright © 2024-2025 Pittsburgh Supercomputing Center. +# All Rights Reserved. + +VERSION=10.2.0 +PACKAGE=octave +TOOL=vim +DIRECTORY=$(dirname "$0") + +STORAGES=(/ocean /bil /hive /local) + +OPTIONS="" +for STORAGE in "" +do + if [ -d "" ]; then + OPTIONS=" -B " + fi +done + +if id | grep -q hubmap && [ -d "/hive" ]; then + OPTIONS=" -B /hive" +fi + +if id | grep -q bil && [ -d "/bil" ]; then + OPTIONS=" -B /bil" +fi + +singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif octave -W "$@" diff --git a/6.2.0/.ignore b/6.2.0/.ignore new file mode 100644 index 0000000..e69de29 diff --git a/6.3.0/.ignore b/6.3.0/.ignore new file mode 100644 index 0000000..e69de29 diff --git a/6.4.0/.ignore b/6.4.0/.ignore new file mode 100644 index 0000000..e69de29 diff --git a/7.1.0/.ignore b/7.1.0/.ignore new file mode 100644 index 0000000..e69de29 diff --git a/7.2.0/.ignore b/7.2.0/.ignore new file mode 100644 index 0000000..e69de29 diff --git a/7.3.0/.ignore b/7.3.0/.ignore new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index ad980dd..611155b 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ Copy the * `SIF` file * and the `octave-cli`, `pandoc` and `gnuplot` scripts -to `/opt/packages/octave/6.3.0`. +to `/opt/packages/octave/10.2.0`. -Copy the file `modulefile.lua` to `/opt/modulefiles/octave` as `6.3.0.lua`. +Copy the file `modulefile.lua` to `/opt/modulefiles/octave` as `10.2.0.lua`. ## Building the image using the recipe @@ -44,6 +44,6 @@ bash ./test.sh ``` --- -Copyright © 2020-2021 Pittsburgh Supercomputing Center. All Rights Reserved. +Copyright © 2020-2025 Pittsburgh Supercomputing Center. All Rights Reserved. The [Biomedical Applications Group](https://www.psc.edu/biomedical-applications/) at the [Pittsburgh Supercomputing Center](http://www.psc.edu) in the [Mellon College of Science](https://www.cmu.edu/mcs/) at [Carnegie Mellon University](http://www.cmu.edu).