-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Bootstrap: docker | ||
From: python:3.8-alpine | ||
|
||
%labels | ||
AUTHOR icaoberg | ||
EMAIL [email protected] | ||
SUPPORT [email protected] | ||
REPOSITORY http://gitub.com/pscedu/singularity-visidata | ||
COPYRIGHT Copyright © 2021-2023 Pittsburgh Supercomputing Center. All Rights Reserved. | ||
VERSION 2.11.1 | ||
|
||
%environment | ||
export TERM="xterm-256color" | ||
|
||
%post | ||
apk update | ||
apk add git man-pages mandoc | ||
pip install requests python-dateutil wcwidth tabulate | ||
mkdir -p /opt/visidata | ||
git clone https://github.com/saulpw/visidata.git | ||
cd visidata | ||
git checkout tags/v2.11.1 | ||
sh -c 'yes | pip install -vvv .' | ||
rm -rfv visidata | ||
pip install --upgrade pip | ||
pip install xlrd openpyxl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Copyright © 2021-2022 Pittsburgh Supercomputing Center. | ||
# All Rights Reserved. | ||
|
||
IMAGE=singularity-visidata-2.11.1.1.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-- | ||
-- visidata 2.11.1 modulefile | ||
-- | ||
-- "URL: https://www.psc.edu/resources/software" | ||
-- "Category: Other" | ||
-- "Description: VisiData is an interactive multitool for tabular data." | ||
|
||
whatis("Name: visidata") | ||
whatis("Version: 2.11.1") | ||
whatis("Category: Other") | ||
whatis("URL: https://www.psc.edu/resources/software") | ||
whatis("Description: VisiData is an interactive multitool for tabular data.") | ||
|
||
help([[ | ||
VisiData is an interactive multitool for tabular data. | ||
To load the module type | ||
> module load visidata/2.11.1 | ||
To unload the module type | ||
> module unload visidata/2.11.1 | ||
Tools included in this module are | ||
* vd | ||
]]) | ||
|
||
local package = "visidata" | ||
local version = "2.11.1" | ||
local base = pathJoin("/opt/packages",package,version) | ||
prepend_path("PATH", base) | ||
prepend_path("MANPATH", base) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Copyright © 2021-2022 Pittsburgh Supercomputing Center. | ||
# All Rights Reserved. | ||
|
||
IMAGE=singularity-visidata-2.11.1.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
shopt -s expand_aliases | ||
|
||
DIRECTORY=$(pwd) | ||
alias vd='singularity exec "$DIRECTORY"/singularity-visidata-2.8.sif vd' | ||
|
||
tree . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
VERSION=2.11.1 | ||
PACKAGE=visidata | ||
TOOL=vd | ||
DIRECTORY=$(dirname $0) | ||
|
||
PERSISTENT_FILE_STORAGE=/ocean | ||
if [ -d $PERSISTENT_FILE_STORAGE ]; then | ||
OPTIONS="-B $PERSISTENT_FILE_STORAGE" | ||
fi | ||
|
||
if [ -d /local ]; then | ||
OPTIONS=$OPTIONS" -B /local" | ||
fi | ||
|
||
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@" | ||
|