Commit 6b6102a6 authored by Daniele Venzano's avatar Daniele Venzano

Add an environment variable to all containers with the workspace path location

parent bd8200aa
......@@ -103,6 +103,7 @@ def _spawn_service(execution: Execution, service: Service, env_subst_dict: dict)
fswk = ZoeFSWorkspace()
if fswk.can_be_attached():
copts.add_volume_bind(fswk.get_path(execution.user_id), fswk.get_mountpoint(), False)
copts.add_env_variable('ZOE_WORKSPACE', fswk.get_mountpoint())
# The same dictionary is used for templates in the command
if 'command' in service.description:
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