You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/06/02 20:07:52 UTC
[incubator-dlab] 02/02: [DLAB-1810]: added some luarocks
dependencies
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1810
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 4c1ee4f77a42beb606a6d29182e0c01f1d9e54ea
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Jun 2 23:07:21 2020 +0300
[DLAB-1810]: added some luarocks dependencies
---
.../src/deeplearning/scripts/configure_deep_learning_node.py | 3 +++
infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/deeplearning/scripts/configure_deep_learning_node.py b/infrastructure-provisioning/src/deeplearning/scripts/configure_deep_learning_node.py
index 2c1f450..b64dc6d 100644
--- a/infrastructure-provisioning/src/deeplearning/scripts/configure_deep_learning_node.py
+++ b/infrastructure-provisioning/src/deeplearning/scripts/configure_deep_learning_node.py
@@ -84,6 +84,9 @@ def install_itorch(os_user):
if not exists('/home/{}/.ensure_dir/itorch_ensured'.format(os_user)):
run('git clone https://github.com/facebook/iTorch.git')
with cd('/home/{}/iTorch/'.format(os_user)):
+ run('luarocks install luacrypto')
+ run('luarocks install uuid')
+ run('luarocks install lzmq')
run('luarocks make')
sudo('cp -rf /home/{0}/.ipython/kernels/itorch/ /home/{0}/.local/share/jupyter/kernels/'.format(os_user))
sudo('chown -R {0}:{0} /home/{0}/.local/share/jupyter/'.format(os_user))
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 3ee8110..1b42737 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -238,10 +238,10 @@ def ensure_python2_libraries(os_user):
if not exists('/home/' + os_user + '/.ensure_dir/python2_libraries_ensured'):
try:
try:
- manage_pkg('-y install', 'remote', 'libssl-dev python-virtualenv')
+ manage_pkg('-y install', 'remote', 'libssl1.0-dev python-virtualenv')
except:
sudo('pip2 install virtualenv --no-cache-dir')
- manage_pkg('-y install', 'remote', 'libssl-dev')
+ manage_pkg('-y install', 'remote', 'libssl1.0-dev')
try:
sudo('pip2 install tornado=={0} ipython ipykernel=={1} --no-cache-dir' \
.format(os.environ['notebook_tornado_version'], os.environ['notebook_ipykernel_version']))
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org