-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
132 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,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 |
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,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 |
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,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 |
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=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 "$@" |
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,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) |
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,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 |
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
tree . | ||
|
||
singularity exec singularity-dust-0.8.6.sif dust . |