Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
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
schwede
openstructure
Commits
e4d7406a
Commit
e4d7406a
authored
6 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
SCHWED-3409: Update install instructions for container images.
parent
f1aae2eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.txt
+1
-1
1 addition, 1 deletion
CHANGELOG.txt
docker/README.rst
+15
-11
15 additions, 11 deletions
docker/README.rst
modules/doc/install.rst
+11
-3
11 additions, 3 deletions
modules/doc/install.rst
singularity/README.rst
+8
-3
8 additions, 3 deletions
singularity/README.rst
with
35 additions
and
18 deletions
CHANGELOG.txt
+
1
−
1
View file @
e4d7406a
Changes in Release <RELEASE NUMBER>
--------------------------------------------------------------------------------
* Introduced recipes to generate Docker and Singularity
container
s.
* Introduced recipes to generate Docker and Singularity
image
s.
* Moved "nonstandard" functions from ost.conop to ost.mol.alg. Mapping
functions CopyResidue, CopyConserved and CopyNonConserved that were
previousely imported from ost.conop are now to be imported from ost.mol.alg.
...
...
This diff is collapsed.
Click to expand it.
docker/README.rst
+
15
−
11
View file @
e4d7406a
...
...
@@ -4,7 +4,7 @@ OST Docker
.. note::
For many docker installations it is required to run docker commands as root. As
this depends on set up, we skip the `sudo` in all commands.
this depends on set up, we skip the
`
`sudo`
`
in all commands.
Build Docker image
------------------
...
...
@@ -23,15 +23,19 @@ or if you downloaded the Dockerfile directly:
docker build --tag <IMAGE NAME> --build-arg OPENSTRUCTURE_VERSION=<VERSION> -f <DOCKERFILE NAME> <PATH TO DOCKERFILE DIR>
You can chose any image name (tag) eg. ost. The `OPENSTRUCTURE_VERSION`
You can chose any image name (tag) eg. ost. The
`
`OPENSTRUCTURE_VERSION`
`
build argument is mandatory and image will not built without it. See
`CHANGELOG <https://git.scicore.unibas.ch/schwede/openstructure/blob/master/CHANGELOG.txt>`_
for current list of available releases.
for current list of available releases. This is not expected to work for
versions which are much older than the most recent one since the dependencies
might have changed, but it should work for a few versions. If you need the
recipe for an older version, we suggest to get an older recipe from the git
history.
Testing the image
-----------------
One can find a exemplary script (`test_docker.py`) in the downloaded directory.
One can find a exemplary script (`
`
test_docker.py`
`
) in the downloaded directory.
To run it do:
.. code-block::
...
...
@@ -39,7 +43,7 @@ To run it do:
cd <PATH TO OST>/docker
docker run --rm -v $(pwd):/home <IMAGE NAME> test_docker.py
As the last line you should see `OST is working!`.
As the last line you should see
`
`OST is working!`
`
.
Run script and action with OST
------------------------------
...
...
@@ -61,7 +65,7 @@ Run script and action with OST
.. code-block:: bash
docker run --rm -v /home/user:/home <IMAGE NAME> home/script.py /home/pdbs/struct.pdb
docker run --rm -v /home/user:/home <IMAGE NAME>
/
home/script.py /home/pdbs/struct.pdb
An easy solution to mount a CWD is to use $(pwd) command in the -v option
of the Docker. For an example see the action exemplary run.
...
...
@@ -83,7 +87,7 @@ To run chosen action do:
docker run --rm <IMAGE NAME> <ACTION NAME>
Here is an example run of compare-structures action
mimicking CAMEO evaluation
:
Here is an example run of
the
compare-structures action:
.. code-block::
...
...
@@ -123,7 +127,7 @@ In order to run OST script do:
Run ost with utility command
###############################
One can also use provided utility bash script `run_docker_ost` to run basic
One can also use provided utility bash script
`
`run_docker_ost`
`
to run basic
scripts and actions:
.. code-block:: bash
...
...
@@ -137,7 +141,7 @@ options. It is useful to link the command to the binary directory eg. in linux:
ln -s <PATH TO OST>/docker/run_docker_ost /usr/bin/run_docker_ost
In order to run an exemplary script (`test_docker.py`) do:
In order to run an exemplary script (`
`
test_docker.py`
`
) do:
.. code-block::
...
...
@@ -170,13 +174,13 @@ the entrypoint:
.. code-block::
sudo
docker run --rm -ti --entrypoint <COMMAND> <IMAGE NAME> [COMMAND OPTIONS]
docker run --rm -ti --entrypoint <COMMAND> <IMAGE NAME> [COMMAND OPTIONS]
Eg. to run molck type:
.. code-block::
sudo
docker run --rm -ti --entrypoint molck <IMAGE NAME> --help
docker run --rm -ti --entrypoint molck <IMAGE NAME> --help
.. note::
...
...
This diff is collapsed.
Click to expand it.
modules/doc/install.rst
+
11
−
3
View file @
e4d7406a
...
...
@@ -4,14 +4,22 @@ Installing OpenStructure From Source
Brief Overview
--------------------------------------------------------------------------------
Compiling OpenStructure consists of several steps that are described below in
more detail. In essence, these steps are:
For a simple and portable way to use OpenStructure we recommend using a
container solution. We provide recipes to build images for
`Docker <https://www.docker.com/>`_ and
`Singularity <https://www.sylabs.io/guides/2.5.1/user-guide>`_.
The latest recipes and instructions can be found on our GitLab site
(`Docker instructions <https://git.scicore.unibas.ch/schwede/openstructure/tree/develop/docker>`_ and
`Singularity instructions <https://git.scicore.unibas.ch/schwede/openstructure/tree/develop/singularity>`_).
If you wish to compile OpenStructure outside of a container, you need to follow
the steps which we describe in detail below. In essence, these steps are:
* Installing the Dependencies
* Checking out the source code from GIT
* Configuring the build with cmake
* Compiling an Linking
Installing the Dependencies
--------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
singularity/README.rst
+
8
−
3
View file @
e4d7406a
...
...
@@ -16,7 +16,12 @@ In order to build OST Singularity image:
Running singularity build command requires root permissions (sudo).
One can chose any name for an image. For the purose of this file we will assume
that the image name is `ost.img`.
that the image name is ``ost.img``.
Here we only keep the recipe for the most recent version of OpenStructure. To
build an image for a different version, you can either adapt the
``OPENSTRUCTURE_VERSION`` variable in the recipe or look in the git history for
an older recipe.
Available apps
--------------
...
...
@@ -58,5 +63,5 @@ Then (in the same terminal window) to invoke IPython app one can just type:
ost_ipython
To make the alias permanent put it into your `.bashrc` file or whatever file you
use to store the aliases.
\ No newline at end of file
To make the alias permanent put it into your ``.bashrc`` file or whatever file
you use to store the aliases.
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