You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by bh...@apache.org on 2019/03/13 11:22:20 UTC
[incubator-dlab] branch v2.1-RC2 updated: Deleted toree binaries
from source code and wrote function that downloads those files from
official toree repository
This is an automated email from the ASF dual-hosted git repository.
bhliva pushed a commit to branch v2.1-RC2
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/v2.1-RC2 by this push:
new fbf61c0 Deleted toree binaries from source code and wrote function that downloads those files from official toree repository
fbf61c0 is described below
commit fbf61c046574f016f1312c12a0cc3c4ec201d28e
Author: Dyoma33 <de...@gmail.com>
AuthorDate: Mon Mar 11 13:00:47 2019 +0200
Deleted toree binaries from source code and wrote function that downloads those files from official toree repository
---
.../src/general/files/os/toree-assembly-0.2.0.jar | Bin 25203040 -> 0 bytes
.../src/general/files/os/toree_kernel.tar.gz | Bin 22047671 -> 0 bytes
.../src/ssn/scripts/configure_ssn_node.py | 19 ++++++++++++++++++-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/files/os/toree-assembly-0.2.0.jar b/infrastructure-provisioning/src/general/files/os/toree-assembly-0.2.0.jar
deleted file mode 100644
index 812e4e7..0000000
Binary files a/infrastructure-provisioning/src/general/files/os/toree-assembly-0.2.0.jar and /dev/null differ
diff --git a/infrastructure-provisioning/src/general/files/os/toree_kernel.tar.gz b/infrastructure-provisioning/src/general/files/os/toree_kernel.tar.gz
deleted file mode 100644
index 7f5b462..0000000
Binary files a/infrastructure-provisioning/src/general/files/os/toree_kernel.tar.gz and /dev/null differ
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
index b9247b8..c616ffa 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
@@ -136,6 +136,20 @@ def configure_ssl_certs(hostname, custom_ssl_cert):
print('Failed to configure SSL certificates: ', str(err))
sys.exit(1)
+def download_toree():
+ toree_path = /opt/dlab/sources/infrastructure-provisioning/src/general/files/os/
+ download_link = https://archive.apache.org/dist/incubator/toree/0.2.0-incubating/toree/toree-0.2.0-incubating-bin.tar.gz
+ try
+ run('cd {}'.format(toree_path))
+ run('cd {0} && wget {1}'.format(toree_path, download_link))
+ run('mv {0}toree-0.2.0-incubating-bin.tar.gz {0}toree-kernel.tar.gz'.format(toree_path))
+ run('tar xvf toree-kernel.tar.gz')
+ run('mv {0}toree-0.2.0-incubating/lib/toree-assembly-0.2.0-incubating.jar {0}toree-assembly-0.2.0.jar'.format(toree_path))
+ run('rm -rf {}toree-0.2.0-incubating'.format(toree_path))
+ except Exception as err:
+ traceback.print_exc()
+ print('Failed to download toree: ', str(err))
+ sys.exit(1)
##############
# Run script #
@@ -192,4 +206,7 @@ if __name__ == "__main__":
cp_gitlab_scripts(args.dlab_path)
print("Ensuring safest ssh ciphers")
- ensure_ciphers()
\ No newline at end of file
+ ensure_ciphers()
+
+ print("Downloading Apache Toree")
+ download_toree()
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org