Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pscedu/singularity-visidata
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Oct 17, 2024
2 parents d28ad73 + 7eda08d commit 3ea19aa
Show file tree
Hide file tree
Showing 14 changed files with 130 additions and 1 deletion.
Empty file added 2.10.2/.ignore
Empty file.
Empty file added 2.11.1/.ignore
Empty file.
Empty file added 2.11/.ignore
Empty file.
Empty file added 2.4/.ignore
Empty file.
Empty file added 2.6.1/.ignore
Empty file.
Empty file added 2.7.1/.ignore
Empty file.
Empty file added 2.8/.ignore
Empty file.
29 changes: 29 additions & 0 deletions 3.0.2/Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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/v3.0.2
sh -c 'yes | pip install -vvv .'
rm -rfv visidata
pip install --upgrade pip
pip install xlrd openpyxl

%runscript
vd "$@"
19 changes: 19 additions & 0 deletions 3.0.2/build.sh
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-3.0.2.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
34 changes: 34 additions & 0 deletions 3.0.2/modulefile.lua
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)
19 changes: 19 additions & 0 deletions 3.0.2/rbuild.sh
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
10 changes: 10 additions & 0 deletions 3.0.2/test.sh
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 .
18 changes: 18 additions & 0 deletions 3.0.2/vd
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 "$@"

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ bash ./test.sh
```

---
Copyright © 2020-2023 Pittsburgh Supercomputing Center. All Rights Reserved.
Copyright © 2020-2024 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).

0 comments on commit 3ea19aa

Please sign in to comment.