Skip to content

Commit

Permalink
Merge c8967db into b152f5c
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego committed Jun 25, 2020
2 parents b152f5c + c8967db commit 018ae4a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions reana_commons/config.py
Expand Up @@ -8,6 +8,7 @@

"""REANA Commons configuration."""

import json
import logging
import os

Expand Down Expand Up @@ -224,6 +225,35 @@
)
"""Name of the shared CEPHFS PVC which will be used by all REANA jobs."""

REANA_JOB_HOSTPATH_MOUNTS = json.loads(os.getenv("REANA_JOB_HOSTPATH_MOUNTS", "[]"))
"""List of dictionaries composed of name, hostPath and mountPath.
- ``name``: name of the mount.
- ``hostPath``: path in the Kubernetes cluster host nodes that will be mounted into job pods.
- ``mountPath``: path inside job pods where hostPath will get mounted.
This is optional, by default the same path as the hostPath will be used
This configuration should be used only when one knows for sure that the
specified locations exist in all the cluster nodes. For example, in Minikube:
.. code-block::
$ minikube mount $HOME/mydata:/usr/local/share/mydata
And pass the following configuration:
.. code-block::
REANA_JOB_HOSTPATH_MOUNTS = [
{"name": "mydata",
"hostPath": "/usr/local/share/mydata",
"mountPath": "/mydata"},
]
This way all jobs will have ``/mydata`` mounted with the content of
``/usr/local/share/mydata`` in the Minikube Kubernetes node.
"""

REANA_WORKFLOW_UMASK = 0o0002
"""Umask used for workflow worksapce."""

Expand Down

0 comments on commit 018ae4a

Please sign in to comment.