Created
April 12, 2022 15:25
-
-
Save JohnAtl/e97bae0a5b67398085bdde3d965ac60a to your computer and use it in GitHub Desktop.
Singularity file that may create a Singularity container with nipype, pybids, seaborn, and jupyter notebooks
This file contains hidden or 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
Bootstrap: docker | |
From: nipype/nipype:latest | |
# This is the adjusted (fixed) build recipe for the issue above. | |
# sudo singularity build swist Singularity.swist | |
%labels | |
Maintainer GT | |
Version v1.0 | |
%environment | |
. /opt/conda/bin/activate neuro | |
%post | |
# Install nano | |
apt-get update && apt-get install -y nano | |
# conda installs to /opt/miniconda-latest, so link to the expected location | |
ln -s /opt/miniconda-latest /opt/conda | |
echo ". /opt/conda/etc/profile.d/conda.sh" >>$SINGULARITY_ENVIRONMENT | |
echo "conda activate neuro" >>$SINGULARITY_ENVIRONMENT | |
# Install into conda environment | |
. /opt/conda/bin/activate neuro && | |
/opt/conda/bin/conda install --name neuro -y seaborn && | |
/opt/conda/bin/conda install --name neuro -y jupyter && | |
/opt/conda/envs/neuro/bin/pip install pybids | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment