Skip to content

Commit

Permalink
Add singularity README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuch committed Apr 6, 2021
1 parent 79caa72 commit dffc82e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions singularity/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Build Singularity Container

This is the procedure we used to build singularity containers. The singularity recipes were generated
with [neurodocker](https://github.com/ReproNim/neurodocker).

Build Python package:
`python setup.py bdist_wheel`

Build singularity recipe:
`neurodocker generate singularity -b nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 -p apt --copy ./dist/fourier_image_transformers-0.2.0-py3-none-any.whl /fourier_image_transformers-0.2.0-py3-none-any.whl --miniconda create_env=fit conda_install='python=3.7 astra-toolbox pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch -c astra-toolbox/label/dev' pip_install='/fourier_image_transformers-0.2.0_zero-py3-none-any.whl' activate=true --entrypoint "/neurodocker/startup.sh python" > v0.2.0.Singularity`

Build singularity container:
`sudo singularity build fit_v0.2.0.simg v0.2.0.Singularity`

0 comments on commit dffc82e

Please sign in to comment.