Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions 10.2.0/Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Bootstrap: docker
From: gnuoctave/octave:10.2.0

%labels
MAINTAINER icaoberg, luism
EMAIL [email protected], [email protected]
SUPPORT [email protected]
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 "$@"
20 changes: 20 additions & 0 deletions 10.2.0/build.sh
Original file line number Diff line number Diff line change
@@ -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

29 changes: 29 additions & 0 deletions 10.2.0/ffmpeg
Original file line number Diff line number Diff line change
@@ -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 "$@"
29 changes: 29 additions & 0 deletions 10.2.0/gnuplot
Original file line number Diff line number Diff line change
@@ -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 "$@"
43 changes: 43 additions & 0 deletions 10.2.0/modulefile.lua
Original file line number Diff line number Diff line change
@@ -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)
29 changes: 29 additions & 0 deletions 10.2.0/octave
Original file line number Diff line number Diff line change
@@ -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 "$@"
29 changes: 29 additions & 0 deletions 10.2.0/octave-cli
Original file line number Diff line number Diff line change
@@ -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 "$@"
29 changes: 29 additions & 0 deletions 10.2.0/pandoc
Original file line number Diff line number Diff line change
@@ -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 "$@"
21 changes: 21 additions & 0 deletions 10.2.0/rbuild.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions 10.2.0/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -x # Print commands for debugging

VERSION=10.2.0
PACKAGE=octave
29 changes: 29 additions & 0 deletions 10.2.0/vim
Original file line number Diff line number Diff line change
@@ -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 "$@"
Empty file added 6.2.0/.ignore
Empty file.
Empty file added 6.3.0/.ignore
Empty file.
Empty file added 6.4.0/.ignore
Empty file.
Empty file added 7.1.0/.ignore
Empty file.
Empty file added 7.2.0/.ignore
Empty file.
Empty file added 7.3.0/.ignore
Empty file.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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).
Loading