Skip to content

Commit

Permalink
Added version 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Nov 12, 2022
1 parent 15a8c5e commit b5fb0d2
Show file tree
Hide file tree
Showing 9 changed files with 188 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 7.3.0/Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Bootstrap: docker
From: gnuoctave/octave:7.3.0

%labels
MAINTAINER icaoberg
EMAIL [email protected]
SUPPORT [email protected]
WEBSITE http://github.com/pscedu/singularity-octave
COPYRIGHT Copyright © 2022, Pittsburgh Supercomputing Center. All Rights Reserved.
VERSION 7.3.0

%post
apt-get update
apt-get install -y gnuplot pandoc vim imagemagick ffmpeg
apt-get clean
apt-get autoclean
20 changes: 20 additions & 0 deletions 7.3.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Copyright © 2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-octave-7.3.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

21 changes: 21 additions & 0 deletions 7.3.0/gnuplot
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright © 2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

VERSION=7.3.0
PACKAGE=octave
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 "$@"
42 changes: 42 additions & 0 deletions 7.3.0/modulefile.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
--
-- octave 7.3.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: 7.3.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/7.3.0
To unload the module type
> module unload octave/7.3.0
Tools included in this module are
* octave-cli
* gnuplot
* pandoc
For simplicty, this container also contains
* ffmpeg
* vim
* imagemagick
]])

local package = "octave"
local version = "7.3.0"
local base = pathJoin("/opt/packages",package,version)
prepend_path("PATH", base)
21 changes: 21 additions & 0 deletions 7.3.0/octave
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright © 2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

VERSION=7.3.0
PACKAGE=octave
TOOL=octave
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 octave -W "$@"
21 changes: 21 additions & 0 deletions 7.3.0/octave-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright © 2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

VERSION=7.3.0
PACKAGE=octave
TOOL=octave-cli
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 "$@"
21 changes: 21 additions & 0 deletions 7.3.0/pandoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright © 2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

VERSION=7.3.0
PACKAGE=octave
TOOL=pandoc
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 "$@"
21 changes: 21 additions & 0 deletions 7.3.0/rbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright © 2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-octave-7.3.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
5 changes: 5 additions & 0 deletions 7.3.0/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

singularity exec singularity-octave-7.3.0.sif octave-cli --help
singularity exec singularity-octave-7.3.0.sif pandoc --help
singularity exec singularity-octave-7.3.0.sif gnuplot --help

0 comments on commit b5fb0d2

Please sign in to comment.