Skip to content

Commit

Permalink
Added version 2.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Nov 24, 2023
1 parent c673ba0 commit 57a849c
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 2.11.1/Singularity
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
19 changes: 19 additions & 0 deletions 2.11.1/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-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
34 changes: 34 additions & 0 deletions 2.11.1/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 2.11.1/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 2.11.1/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 2.11.1/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 "$@"

0 comments on commit 57a849c

Please sign in to comment.