You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/02/03 12:47:49 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: changed local in deploy datalab

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
     new cb4ff55  [DATALAB-2091]: changed local in deploy datalab
cb4ff55 is described below

commit cb4ff55ad5325fc0133c06b497e3e8fcd3afe6f4
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Feb 3 14:47:34 2021 +0200

    [DATALAB-2091]: changed local in deploy datalab
---
 infrastructure-provisioning/scripts/deploy_datalab.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/infrastructure-provisioning/scripts/deploy_datalab.py b/infrastructure-provisioning/scripts/deploy_datalab.py
index a8e39fa..b772f8d 100644
--- a/infrastructure-provisioning/scripts/deploy_datalab.py
+++ b/infrastructure-provisioning/scripts/deploy_datalab.py
@@ -196,25 +196,25 @@ def generate_docker_command():
     return docker_command.join(command)
 
 
-def build_docker_images(args):
+def build_docker_images(args,c):
     # Building base and ssn docker images
-    local('cd {2}; sudo docker build --build-arg OS={0} --build-arg SRC_PATH="infrastructure-provisioning/src/" --file '
+    c.local('cd {2}; sudo docker build --build-arg OS={0} --build-arg SRC_PATH="infrastructure-provisioning/src/" --file '
               'infrastructure-provisioning/src/general/files/{1}/'
               'base_Dockerfile -t docker.datalab-base .'.format(args.conf_os_family, args.conf_cloud_provider, args.workspace_path))
-    local('cd {2}; sudo docker build --build-arg OS={0} --file infrastructure-provisioning/src/general/files/{1}/'
+    c.local('cd {2}; sudo docker build --build-arg OS={0} --file infrastructure-provisioning/src/general/files/{1}/'
               'ssn_Dockerfile -t docker.datalab-ssn .'.format(args.conf_os_family, args.conf_cloud_provider, args.workspace_path))
 
 
-def deploy_datalab(args):
+def deploy_datalab(args,c):
     # Creating SSN node
     docker_command = generate_docker_command()
-    local(docker_command)
+    c.local(docker_command)
 
 
-def terminate_datalab(args):
+def terminate_datalab(args,c):
     # Dropping datalab environment with selected infrastructure tag
     docker_command = generate_docker_command()
-    local(docker_command)
+    c.local(docker_command)
 
 
 if __name__ == "__main__":


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org