Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
2e52f40b
Commit
2e52f40b
authored
6 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Adds singularity discussion to the docs
parent
9739cbc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#48025
passed with warnings
6 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
containers/Singularity.0.3.6
+1
-0
1 addition, 0 deletions
containers/Singularity.0.3.6
docs/containers.txt
+99
-0
99 additions, 0 deletions
docs/containers.txt
docs/index.txt
+1
-0
1 addition, 0 deletions
docs/index.txt
with
101 additions
and
0 deletions
containers/Singularity.0.3.6
+
1
−
0
View file @
2e52f40b
...
...
@@ -9,6 +9,7 @@ container, providing the bilby_script and any additional arguments. E.g.,
%post
export PATH="/opt/conda/bin:$PATH"
pip install pandas == 0.23 # Tempory fix for issue with saving h5 files
pip install bilby==0.3.6
%runscript
...
...
This diff is collapsed.
Click to expand it.
docs/containers.txt
0 → 100644
+
99
−
0
View file @
2e52f40b
.. _containers:
==========
Containers
==========
Containers package software together, providing all the neccersery dependencies
to run :code:`bilby`. Using containers can help eliminate
installation/dependency issues, as well as ensure things are run in a
standardized, reproducible environment. For a general introduction to
containers, see `the docker documentation
<https://www.docker.com/resources/what-container>`_.
We provide two sorts of containers for :code:`bilby`
* `Docker images <https://hub.docker.com/r/bilbydev/bilby/tags/>`_, and
* `Singularity images <https://www.singularity-hub.org/collections/2047>`_
Both of these are industry standard software, see `this page for getting
started with Docker <https://docs.docker.com/get-started/>`_ and `this page for
getting started with singularity
<https://www.sylabs.io/guides/3.0/user-guide/quick_start.html>`_.
While Docker is better known throughout software development, singularity
is often preferred in science applications as it focusses on reproducibility,
makes interacting with your home file system easy, and is typically preferred
by cluster admins as it does not require root-priveledges as run time.
Running a bilby script with Singularity
---------------------------------------
Once you have singularity installed, you can pull (or download) the bilby
image by running the command
.. code-block:: console
$ singularity pull shub://lscsoft/bilby:0.3.6
This will download a file :code:`lscsoft-bilby-master-0.3.6.simg`, you can
rename this file as you wish, for the sake of this example let's rename it
.. code-block:: console
$ mv lscsoft-bilby-master-0.3.6.simg bilby.simg
Next, we start the container interactively
.. code-block:: console
$ singularity shell -B $PWD bilby.simg
This will drop you into the container with the current working directory
available. So, for example, if you had a bilby script :code:`script.py` that
you wished to run, simply do
.. code-block:: console
$ python script.py
from inside the container. Note, this :code:`python` is **not** your system
installed python, but that of the container. To check this, from inside the
container run
.. code-block:: console
$ which python
/opt/conda/bin/python
$ python --version
Python 3.7.2
The benefit of the container is that it has all the neccersery software
is preinstalled, circumventing any dependency issues.
.. note::
**Version numbers** -
In the example above, we pull the :code:`0.3.6` version of bilby. To see a
list of all available versions held on singularity-hub head to `the main
bilby page <https://www.singularity-hub.org/collections/2047>`_.
.. note::
**Issues with interactive matplotlib backends** - If you experience issues
with backends, these can be caused due to the container trying to use an
interactive matplotlib backend. You may wish to start the container with the
command :code:`DISPLAY= singularity shell bilby.simg` to force a
non-interactive backend to be used.
.. note::
**Binding your local directory** - in the examples above, we gave the flag
:code:`-B $PWD`. This can be neglected if you are working in your
home directory.
This diff is collapsed.
Click to expand it.
docs/index.txt
+
1
−
0
View file @
2e52f40b
...
...
@@ -21,5 +21,6 @@ Welcome to bilby's documentation!
conversion
writing-documentation
hyperparameters
containers
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment