You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by my...@apache.org on 2020/05/27 11:07:29 UTC
[incubator-dlab] branch DLAB-515 updated: [DLAB-515]- Rstudio fixed
This is an automated email from the ASF dual-hosted git repository.
mykolabodnar pushed a commit to branch DLAB-515
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-515 by this push:
new 6c0f1c7 [DLAB-515]- Rstudio fixed
6c0f1c7 is described below
commit 6c0f1c7b8488abcc26760f7c67e263ae6aae087e
Author: bodnarmykola <bo...@gmail.com>
AuthorDate: Wed May 27 14:07:01 2020 +0300
[DLAB-515]- Rstudio fixed
---
infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 3 +++
1 file changed, 3 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 990afe4..39abcd2 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -129,6 +129,9 @@ def install_rstudio(os_user, local_spark_path, rstudio_pass, rstudio_version):
sudo(
'sed -i \'/\[Service\]/a Environment=\"HTTPS_PROXY={}\"\' /etc/systemd/system/rstudio-server.service'.format(
https_proxy))
+ java_home = run("update-alternatives --query java | grep -o \'/.*/java-8.*/jre\'").splitlines()[0]
+ sudo('sed -i \'/\[Service\]/ a\Environment=\"JAVA_HOME={}\"\' /tmp/jupyter-notebook.service'.format(
+ java_home))
sudo("systemctl daemon-reload")
sudo('touch /home/{}/.Renviron'.format(os_user))
sudo('chown {0}:{0} /home/{0}/.Renviron'.format(os_user))
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org