You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dm...@apache.org on 2019/04/30 08:48:37 UTC

[incubator-dlab] branch docker-script updated: [DLAB-docker-script] Added conditional for azure_auth.json.

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

dmysakovets pushed a commit to branch docker-script
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/docker-script by this push:
     new b1f4eab  [DLAB-docker-script] Added conditional for azure_auth.json.
b1f4eab is described below

commit b1f4eab9c7fa4a34979e183d4b0a1c57795e466a
Author: Dyoma33 <de...@gmail.com>
AuthorDate: Tue Apr 30 11:48:23 2019 +0300

    [DLAB-docker-script] Added conditional for azure_auth.json.
---
 infrastructure-provisioning/src/ssn/templates/docker_build.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/templates/docker_build.py b/infrastructure-provisioning/src/ssn/templates/docker_build.py
index 5d0f30b..8dacf7a 100644
--- a/infrastructure-provisioning/src/ssn/templates/docker_build.py
+++ b/infrastructure-provisioning/src/ssn/templates/docker_build.py
@@ -51,7 +51,8 @@ def image_build(src_path, node):
             cloud_provider = 'aws'
         elif local("uname -r | awk -F '-' '{print $3}'", capture=True).stdout == 'azure':
             cloud_provider = 'azure'
-            local('cp /home/dlab-user/keys/azure_auth.json {}base/azure_auth.json'.format(src_path))
+            if not exists('{}base/azure_auth.json'.format(src_path)):
+                local('cp /home/dlab-user/keys/azure_auth.json {}base/azure_auth.json'.format(src_path))
         else:
             cloud_provider = 'gcp'
         with lcd(src_path):


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