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 2020/01/21 14:52:23 UTC

[incubator-dlab] 01/01: [DLAB-1375] Fixed issue with superset from ami creation

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

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

commit dddec592ddb13e7116c311e48eaffab78c85f103
Author: Demyan Mysakovets <de...@gmail.com>
AuthorDate: Tue Jan 21 16:51:51 2020 +0200

    [DLAB-1375] Fixed issue with superset from ami creation
---
 infrastructure-provisioning/src/general/lib/os/fab.py                   | 2 +-
 .../src/general/scripts/gcp/superset_configure.py                       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 7a07130..6d8e994 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -202,7 +202,7 @@ def configure_docker(os_user):
                   stable"')
             sudo('apt-get update')
             sudo('apt-cache policy docker-ce')
-            sudo('apt-get install -y docker-ce={}~ce-0~ubuntu'.format(docker_version))
+            sudo('apt-get install -y docker-ce={}~ce~3-0~ubuntu'.format(docker_version))
             sudo('touch /home/{}/.ensure_dir/docker_ensured'.format(os_user))
     except Exception as err:
         print('Failed to configure Docker:', str(err))
diff --git a/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py b/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py
index cdcafea..35972cf 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/superset_configure.py
@@ -241,7 +241,7 @@ if __name__ == "__main__":
         GCPActions().remove_instance(notebook_config['instance_name'], notebook_config['zone'])
         sys.exit(1)
 
-    if notebook_config['shared_image_enabled'] == 'true':
+    if notebook_config['image_enabled'] == 'true':
         try:
             print('[CREATING IMAGE]')
             primary_image_id = GCPMeta().get_image_by_name(notebook_config['expected_primary_image_name'])


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