-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
7f81499
commit 504b94a
Showing
2 changed files
with
51 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,7 @@ | ||
You can build a [sansa](https://github.com/dellytools/sansa) singularity container (SIF file) using | ||
|
||
`sudo singularity build sansa.sif sansa.def` | ||
|
||
Once you have built the container you can run analysis using | ||
|
||
`singularity exec sansa.sif sansa --help` |
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,44 @@ | ||
# Build image | ||
BootStrap: library | ||
From: ubuntu:22.04 | ||
Stage: build | ||
|
||
%post | ||
apt-get -y update | ||
apt-get install -y autoconf build-essential cmake g++ gfortran git libcurl4-gnutls-dev hdf5-tools libboost-date-time-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev libbz2-dev libhdf5-dev libncurses-dev liblzma-dev zlib1g-dev libdeflate-dev | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* | ||
cd /opt | ||
git clone --recursive https://github.com/dellytools/sansa.git | ||
cd /opt/sansa/ | ||
make STATIC=1 all | ||
make install | ||
|
||
|
||
# Final image | ||
BootStrap: library | ||
From: alpine:latest | ||
Stage: final | ||
|
||
%files from build | ||
/opt/sansa/bin/sansa /bin/sansa | ||
|
||
%post | ||
SANSAVERSION=`./bin/sansa --version` | ||
echo "export SANSAVERSION=\"${SANSAVERSION}\"" >> $SINGULARITY_ENVIRONMENT | ||
CREATEDATE=`date` | ||
echo "export CREATEDATE=\"${CREATEDATE}\"" >> $SINGULARITY_ENVIRONMENT | ||
|
||
%environment | ||
export PATH=/bin:$PATH | ||
|
||
%runscript | ||
sansa | ||
|
||
%labels | ||
Singularity definition file version v0.0.1 | ||
|
||
%help | ||
This is a container running sansa. | ||
You can run sansa on files inside the directory where you start | ||
the container, i.e.: singularity exec sansa.sif sansa --help |