This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2840
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2840 by this push:
new 9ff14cbc6 [DATALAB-2840]: changed how nodejs is installed
9ff14cbc6 is described below
commit 9ff14cbc629cd09e2f73a6cd56c58b21d13150e4
Author: leonidfrolov <[email protected]>
AuthorDate: Mon Jun 6 17:05:07 2022 +0300
[DATALAB-2840]: changed how nodejs is installed
---
infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
index fd368da0a..35433a25d 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -382,9 +382,8 @@ def install_build_dep():
'cd /opt/ && sudo wget
http://mirrors.sonic.net/apache/maven/maven-{0}/{1}/binaries/apache-maven-{1}-bin.zip
'
'&& sudo unzip apache-maven-{1}-bin.zip && sudo mv
apache-maven-{1} maven'.format(
maven_version.split('.')[0], maven_version))
- datalab.fab.conn.sudo('bash -c "curl --silent --location
https://deb.nodesource.com/setup_16.x | bash -"')
datalab.fab.conn.sudo('curl -o-
https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash')
- datalab.fab.conn.run('source ~/.bashrc && nvm install v16.15.0')
+ datalab.fab.conn.sudo('''bash -c -l 'export NVM_DIR="$HOME/.nvm"
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && [ -s
"$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" && nvm install
v16.15.0' ''')
datalab.fab.conn.sudo('npm config set unsafe-perm=true')
datalab.fab.conn.sudo('touch
{}tmp/build_dep_ensured'.format(os.environ['ssn_datalab_path']))
except Exception as err:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]