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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
