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 11779ac  [DATALAB-408]: added removal of node_modules directory before 
npm install
11779ac is described below

commit 11779ac7a2cb5beabf434c3c06ccfaa848d361db
Author: leonidfrolov <[email protected]>
AuthorDate: Thu Aug 5 16:16:48 2021 +0300

    [DATALAB-408]: added removal of node_modules directory before npm install
---
 infrastructure-provisioning/src/ssn/scripts/configure_ui.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ui.py 
b/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
index e43577a..78e0eb9 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ui.py
@@ -154,9 +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('rm -rf 
{}sources/services/self-service/src/main/resources/webapp/node_modules'.format(
+            args.datalab_path))
         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