deployment.rst 1.62 KB
Newer Older
BorjaEst's avatar
BorjaEst committed
1
2
3
4
Deployment
==================================

To deploy the the application using **udocker** at the **Runtime machine** 
5
you need the o3skim container image.
BorjaEst's avatar
BorjaEst committed
6

7
8
9
The easiest way to deploy in your **Runtime machine**  is by pulling the image
from a remote registry. You can use the official registry at synergyimk_ or use 
the instructions at :doc:`build` to create your image and uploaded at your own registry.
BorjaEst's avatar
BorjaEst committed
10

11
.. _synergyimk: https://hub.docker.com/r/synergyim
BorjaEst's avatar
BorjaEst committed
12

13
Once you decide from which registry download, pull the image that image registry.
BorjaEst's avatar
BorjaEst committed
14
15
16
17
18
19
For example, to pull it from the synergy-imk official registry use:

.. code-block:: bash

    $ udocker pull synergyimk/o3skim
    ...
20
    Downloading layer: sha256:......
BorjaEst's avatar
BorjaEst committed
21
22
    ...

23
24
25
26
27
28
Note it is also possible to use `udocker load`_ to import images generated by 
`docker save`_.

.. _`udocker load`: https://indigo-dc.gitbook.io/udocker/user_manual#1-4-basic-flow
.. _`docker save`: https://docs.docker.com/engine/reference/commandline/save

BorjaEst's avatar
BorjaEst committed
29

30
31
Once the image is downloaded or imported, create the local container.
For example, if it was downloaded from synergyimk registry you can use:
BorjaEst's avatar
BorjaEst committed
32
33
34
35
36
37

.. code-block:: bash

    $ udocker create --name=o3skim synergyimk/o3skim
    fa42a912-b0d4-3bfb-987f-1c243863802d

38
39
40
41
42
43
44
45
46
47
48
49
50
51
Check the containers 
available at the **Runtime machine**: 

.. code-block:: bash

    $ udocker ps
    CONTAINER ID                         P M NAMES              IMAGE               
    ...
    fa42a912-b0d4-3bfb-987f-1c243863802d . W ['o3skim']         synergyimk/o3skim:latest


Now you are ready to start using the container as `o3skim`. Read how to use the 
:doc:`cli` as first steps to skim your data.