Commit 867cc294 authored by Daniele Venzano's avatar Daniele Venzano

Add volume support in application descritpions

parent 0382f419
......@@ -290,7 +290,7 @@ class ContainerOptions:
def add_volume_bind(self, path, mountpoint, readonly=False):
self.volume_binds.append(path + ":" + mountpoint + ":" + "ro" if readonly else "rw")
self.volume_binds.append(path + ":" + mountpoint + ":" + ("ro" if readonly else "rw"))
def get_volumes(self):
return self.volumes
......@@ -93,6 +93,9 @@ class PlatformManager:
raise ZoeException("cannot find variable to substitute in expression {}".format(env_value))
copts.add_env_variable(env_name, env_value)
for path, mountpoint, readonly in process_description.volumes:
copts.add_volume_bind(path, mountpoint, readonly)
# The same dictionary is used for templates in the command
if process_description.command is not None:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment