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 e59bf524f [DATALAB-2840]: specified nodejs version
e59bf524f is described below
commit e59bf524f572da363cbf0a789c475aec8365ca6f
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Jun 7 10:55:04 2022 +0300
[DATALAB-2840]: specified nodejs version
---
.../src/general/lib/os/debian/notebook_lib.py | 2 --
infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py | 6 ++++--
2 files changed, 4 insertions(+), 4 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 7715d2c7e..53ecc961a 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,6 @@ 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 -s -O
https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.15.0-1nodesource1_amd64.deb')
datalab.fab.conn.sudo('dpkg -i nodejs_16.15.0-1nodesource1_amd64.deb
&& rm nodejs_16.15.0-1nodesource1_amd64.deb')
datalab.fab.conn.sudo('touch
/home/{}/.ensure_dir/nodejs_ensured'.format(os_user))
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 a8d4a4920..2093f1896 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/ssn_lib.py
@@ -382,8 +382,10 @@ 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=16.15.0')
+ datalab.fab.conn.sudo(
+ 'curl -s -O
https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.15.0-1nodesource1_amd64.deb')
+ datalab.fab.conn.sudo(
+ 'dpkg -i nodejs_16.15.0-1nodesource1_amd64.deb && rm
nodejs_16.15.0-1nodesource1_amd64.deb')
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]