Skip to content

Commit

Permalink
Updated version 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Dec 28, 2024
1 parent b5fb0d2 commit d34f2d1
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 8 deletions.
5 changes: 4 additions & 1 deletion 7.3.0/Singularity
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ From: gnuoctave/octave:7.3.0
EMAIL [email protected]
SUPPORT [email protected]
WEBSITE http://github.com/pscedu/singularity-octave
COPYRIGHT Copyright © 2022, Pittsburgh Supercomputing Center. All Rights Reserved.
COPYRIGHT Copyright © 2024, 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

%runscript
octave-cli "$@"
2 changes: 1 addition & 1 deletion 7.3.0/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

IMAGE=singularity-octave-7.3.0.sif
Expand Down
21 changes: 21 additions & 0 deletions 7.3.0/ffmpeg
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

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

VERSION=7.3.0
PACKAGE=octave
TOOL=ffmpeg
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 "$@"
12 changes: 10 additions & 2 deletions 7.3.0/gnuplot
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

VERSION=7.3.0
Expand All @@ -13,9 +13,17 @@ STORAGES=(/ocean /bil /hive /local)
OPTIONS=""
for STORAGE in "${STORAGES[@]}"
do
if [ -d "$STORAGE" ]; then
if [ -d "$STORAGE" ]; then
OPTIONS=$OPTIONS" -B $STORAGE"
fi
done

if id | grep -q hubmap && [ -d "/hive" ]; then
OPTIONS=$OPTIONS" -B /hive"
fi

if id | grep -q bil && [ -d "/bil" ]; then
OPTIONS=$OPTIONS" -B /bil"
fi

singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"
1 change: 1 addition & 0 deletions 7.3.0/modulefile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ To unload the module type
Tools included in this module are
* octave-cli
* octave
* gnuplot
* pandoc
Expand Down
2 changes: 1 addition & 1 deletion 7.3.0/octave
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

VERSION=7.3.0
Expand Down
2 changes: 1 addition & 1 deletion 7.3.0/octave-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

VERSION=7.3.0
Expand Down
2 changes: 1 addition & 1 deletion 7.3.0/pandoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

VERSION=7.3.0
Expand Down
2 changes: 1 addition & 1 deletion 7.3.0/rbuild.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

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

IMAGE=singularity-octave-7.3.0.sif
Expand Down
21 changes: 21 additions & 0 deletions 7.3.0/vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

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

VERSION=7.3.0
PACKAGE=octave
TOOL=vim
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 "$@"

0 comments on commit d34f2d1

Please sign in to comment.