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 6bbfd77ce [DATALAB-2840]: returned and commented old nodejs
installation process
6bbfd77ce is described below
commit 6bbfd77ce34cf33366bc97a0cbec2982c5863e89
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Jun 7 14:10:11 2022 +0300
[DATALAB-2840]: returned and commented old nodejs installation process
---
infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 2 ++
infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 2 ++
2 files changed, 4 insertions(+)
diff --git
a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 7ec98c1b4..b37c8de83 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -474,6 +474,8 @@ def install_nodejs(os_user):
if not
exists(datalab.fab.conn,'/home/{}/.ensure_dir/nodejs_ensured'.format(os_user)):
if os.environ['conf_cloud_provider'] == 'gcp' and
os.environ['application'] == 'deeplearning':
datalab.fab.conn.sudo('add-apt-repository --remove
ppa:deadsnakes/ppa -y')
+ #datalab.fab.conn.sudo('bash -c "curl --silent --location
https://deb.nodesource.com/setup_16.x | bash -"')
+ #manage_pkg('-y install', 'remote', 'nodejs')
datalab.fab.conn.sudo(
'curl -o-
https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash')
datalab.fab.conn.run(
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 e83fb7184..a1c6e9887 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -382,6 +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 -"')
+ #manage_pkg('-y install', 'remote', 'nodejs')
datalab.fab.conn.sudo(
'curl -o-
https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash')
datalab.fab.conn.run('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 16.15.0')
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]