You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2022/06/06 11:10:52 UTC

[incubator-datalab] branch DATALAB-2840 created (now c2dfdfcad)

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

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


      at c2dfdfcad [DATALAB-2840]: changed how nodejs is installed

This branch includes the following new commits:

     new c2dfdfcad [DATALAB-2840]: changed how nodejs is installed

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org


[incubator-datalab] 01/01: [DATALAB-2840]: changed how nodejs is installed

Posted by lf...@apache.org.
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

commit c2dfdfcad97999748bc8888bded9241eea326fad
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Jun 6 14:10:38 2022 +0300

    [DATALAB-2840]: changed how nodejs is installed
---
 .../src/general/lib/os/debian/notebook_lib.py                        | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 53ea073ab..7f7724ca2 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -474,8 +474,9 @@ 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('curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -')
-        manage_pkg('-y install', 'remote', 'nodejs')
+        datalab.fab.conn.sudo('curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash')
+        datalab.fab.conn.sudo('source ~/.bashrc')
+        datalab.fab.conn.sudo('nvm install v16.15.0')
         datalab.fab.conn.sudo('touch /home/{}/.ensure_dir/nodejs_ensured'.format(os_user))
 
 def install_os_pkg(requisites):


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org