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

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


The following commit(s) were added to refs/heads/DATALAB-408 by this push:
     new 331f9f8  [DATALAB-408]: added sleep fot testing
331f9f8 is described below

commit 331f9f8b57d6b438cbaff79e707f8ce93f385ef4
Author: leonidfrolov <[email protected]>
AuthorDate: Thu Aug 5 14:58:48 2021 +0300

    [DATALAB-408]: added sleep fot testing
---
 infrastructure-provisioning/src/ssn/scripts/configure_ui.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ui.py 
b/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
index 2896ce4..e43577a 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
@@ -33,6 +33,7 @@ from datalab.ssn_lib import *
 from fabric import *
 from patchwork.files import exists
 from patchwork import files
+import time
 
 parser = argparse.ArgumentParser()
 parser.add_argument('--hostname', type=str, default='')
@@ -153,8 +154,9 @@ def build_ui():
         if args.cloud_provider == 'azure' and 
os.environ['azure_datalake_enable'] == 'true':
             conn.sudo('sed -i "s|\'use_ldap\': true|{}|g" ' + 
args.datalab_path + 
'sources/services/self-service/src/main/resources/webapp/src/dictionary/azure.dictionary.ts'.format(
                     '\'use_ldap\': false'))
-
+        time.sleep(300)
         conn.sudo('bash -c "cd 
{}sources/services/self-service/src/main/resources/webapp/ && echo "N" | npm 
install"'.format(args.datalab_path))
+        conn.sudo('ls -la 
{}sources/services/self-service/src/main/resources/webapp/node_modules/.bin'.format(args.datalab_path))
         manage_npm_pkg('bash -c "cd 
{}sources/services/self-service/src/main/resources/webapp/ && npm run 
build.prod"'.format(args.datalab_path))
         conn.sudo('sudo chown -R {} {}/*'.format(args.os_user, 
args.datalab_path))
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to