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

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

commit e0bedd77c77c87aaceab045b15e16c734091eca9
Author: Mykola_Bodnar1 <bodnarmyk...@gmail.com>
AuthorDate: Wed Dec 4 17:36:52 2019 +0200

    [DLAB-1359] - Superset creation fails fixed
---
 infrastructure-provisioning/src/general/conf/dlab.ini | 2 ++
 infrastructure-provisioning/src/general/lib/os/fab.py | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/conf/dlab.ini 
b/infrastructure-provisioning/src/general/conf/dlab.ini
index e1a6fac..7873b43 100644
--- a/infrastructure-provisioning/src/general/conf/dlab.ini
+++ b/infrastructure-provisioning/src/general/conf/dlab.ini
@@ -275,6 +275,8 @@ ivy_version = 2.4.0
 matplotlib_version = 2.0.2
 ### JupyterLab image
 jupyterlab_image = legionplatformtest\\/jupyterlab:1.0.0-rc21
+### Superset version
+superset_version = 0.35.1
 
 #--- [emr] section contains all parameters that are using for emr provisioning 
---#
 [emr]
diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py 
b/infrastructure-provisioning/src/general/lib/os/fab.py
index bbb5e39..f51d4f9 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -872,7 +872,9 @@ def configure_superset(os_user, keycloak_auth_server_url, 
keycloak_realm_name, k
     try:
         if not exists('/home/{}/incubator-superset'.format(os_user)):
             with cd('/home/{}'.format(os_user)):
-                sudo('git clone https://github.com/apache/incubator-superset/')
+                sudo('wget 
https://github.com/apache/incubator-superset/archive/{}.tar.gz'.format(os.environ['notebook_superset_version']))
+                sudo('tar -xzf 
{}.tar.gz'.format(os.environ['notebook_superset_version']))
+                sudo('ln -sf incubator-superset-{} 
incubator-superset'.format(os.environ['notebook_superset_version']))
         if not exists('/tmp/superset-notebook_installed'):
             sudo('mkdir -p /opt/dlab/templates')
             put('/root/templates', '/opt/dlab', use_sudo=True)


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

Reply via email to