Skip to content

Commit

Permalink
Added version 0.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Dec 24, 2023
1 parent 53e8021 commit b979b4f
Show file tree
Hide file tree
Showing 7 changed files with 132 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 0.8.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM rust:slim-buster

LABEL "MAINTAINER"="icaoberg"
LABEL "EMAIL"="icaoberg@psc.edu"
LABEL "SUPPORT"="help@psc.edu"
LABEL "REPOSITORY"="http://github.com/pscedu/singularity-dust"
LABEL "COPYRIGHT"="Copyright © 2021-2023 Pittsburgh Supercomputing Center. All Rights Reserved."
LABEL "VERSION"="0.8.6"

RUN cargo install --version 0.8.6 du-dust && \
ln -s /usr/local/cargo/bin/dust /usr/local/bin/dust
13 changes: 13 additions & 0 deletions 0.8.6/Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Bootstrap: docker
From: rust:slim-buster

%labels
MAINTAINER icaoberg
EMAIL icaoberg@psc.edu
SUPPORT help@psc.edu
REPOSITORY https://github.com/icaoberg/singularity-dust
VERSION 0.8.6

%post
cargo install --version 0.8.6 du-dust
ln -s /usr/local/cargo/bin/dust /usr/local/bin/dust
21 changes: 21 additions & 0 deletions 0.8.6/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

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

PACKAGE=dust
VERSION=0.8.6
IMAGE=singularity-$PACKAGE-$VERSION.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
18 changes: 18 additions & 0 deletions 0.8.6/dust
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

VERSION=0.8.6
PACKAGE=dust
TOOL=$PACKAGE
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 "$@"
41 changes: 41 additions & 0 deletions 0.8.6/modulefile.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
--
-- dust 0.8.6 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Other"
-- "Description: du + rust = dust. Like du but more intuitive."
-- "Keywords: singularity utilities"

whatis("Name: dust")
whatis("Version: 0.8.6")
whatis("Category: Other")
whatis("URL: https://www.psc.edu/resources/software")
whatis("Description: du + rust = dust. Like du but more intuitive.")

help([[
du + rust = dust. Like du but more intuitive.
To load the module type
> module load dust/0.8.6
To unload the module type
> module unload dust/0.8.6
Documentation
-------------
For help, type
> dust --help
Repository
----------
Tools included in this module are
* dust
]])

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

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

PACKAGE=dust
VERSION=0.8.6
IMAGE=singularity-$PACKAGE-$VERSION.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
7 changes: 7 additions & 0 deletions 0.8.6/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -x

tree .

singularity exec singularity-dust-0.8.6.sif dust .

0 comments on commit b979b4f

Please sign in to comment.