-
Notifications
You must be signed in to change notification settings - Fork 6
Add Singularity definitions for DataStreamCLI and dependencies #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| *.sif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| SCRIPT_DIR=$(dirname "$(realpath "$0")") | ||
| VERSIONS_FILE="${SCRIPT_DIR}/../versions.yml" | ||
|
|
||
| DEPS_VERSION=$(grep 'datastream-deps' "$VERSIONS_FILE" | sed 's/.*: *"\(.*\)"/\1/') | ||
| DS_VERSION=$(grep '^datastream:' "$VERSIONS_FILE" | sed 's/.*: *"\(.*\)"/\1/') | ||
|
|
||
| echo "Building DataStreamCLI Singularity images..." | ||
| echo " datastream-deps version: ${DEPS_VERSION}" | ||
| echo " datastream version: ${DS_VERSION}" | ||
|
|
||
| sed "s|^From: awiciroh/datastream:.*|From: awiciroh/datastream:${DS_VERSION}|" \ | ||
| datastream.def > datastream_pinned.def | ||
|
|
||
| singularity build --fakeroot datastream.sif datastream_pinned.def | ||
| rm datastream_pinned.def | ||
|
|
||
| singularity build merkdir.sif docker://zwills/merkdir:latest | ||
| singularity build ngiabinabox.sif "docker://awiciroh/ciroh-ngen-image:v${DS_VERSION}" | ||
|
|
||
| echo "All Singularity images built successfully." |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||
| Bootstrap: docker | ||||||
| From: awiciroh/datastream:latest | ||||||
|
|
||||||
| %files | ||||||
| ../ /datastreamcli | ||||||
|
||||||
| ../ /datastreamcli | |
| ../scripts/ /datastreamcli/scripts/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new singularity/ directory lacks a README.md file to document its purpose, usage, and requirements. The docker/ directory has a README.md (docker/README.md) that documents the Docker setup. Following this pattern, a singularity/README.md should be added to explain how to build and use the Singularity images, what each image is for, system requirements (e.g., Singularity/Apptainer version), and how to run DataStreamCLI using the built containers. This is especially important since the PR description mentions this is targeting HPC environments where Singularity is commonly used.