Skip to content

Commit

Permalink
IG-13196: Set working directory to /User (#8)
Browse files Browse the repository at this point in the history
* Set working directory to /User

* bump version to 0.0.8

* fix yams

* add "working_dir" function
  • Loading branch information
gshatz authored Sep 5, 2019
1 parent c58fdc9 commit 13ac31a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion v3io_gputils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.7'
__version__ = '0.0.8'
5 changes: 5 additions & 0 deletions v3io_gputils/mpijob.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'name': '',
'command': [],
'volumeMounts': [{'name': 'v3io', 'mountPath': '/User'}],
'workingDir': '/User',
'securityContext': {
'capabilities': {'add': ['IPC_LOCK']}},
'resources': {
Expand Down Expand Up @@ -111,6 +112,10 @@ def replicas(self, replicas_num):
self._struct['spec']['replicas'] = replicas_num
return self

def working_dir(self, working_dir):
self._update_container('workingDir', working_dir)
return self

def to_dict(self):
return self._struct

Expand Down

0 comments on commit 13ac31a

Please sign in to comment.