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 2019/12/02 13:19:04 UTC

[incubator-dlab] 01/01: [DLAB-1339] - Superset starting fails (previous it was stopped) fixed

This is an automated email from the ASF dual-hosted git repository.

mykolabodnar pushed a commit to branch DLAB-1339
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit f1ea46247d0b792ae1d58d7f900199551f95bc38
Author: Mykola_Bodnar1 <bo...@gmail.com>
AuthorDate: Mon Dec 2 15:18:39 2019 +0200

    [DLAB-1339] - Superset starting fails (previous it was stopped) fixed
---
 .../src/superset/scripts/configure_superset_node.py       | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/infrastructure-provisioning/src/superset/scripts/configure_superset_node.py b/infrastructure-provisioning/src/superset/scripts/configure_superset_node.py
index 05fce7e..03d8e99 100644
--- a/infrastructure-provisioning/src/superset/scripts/configure_superset_node.py
+++ b/infrastructure-provisioning/src/superset/scripts/configure_superset_node.py
@@ -42,8 +42,11 @@ parser.add_argument('--keycloak_client_secret', type=str, default='')
 parser.add_argument('--edge_instance_private_ip', type=str, default='')
 parser.add_argument('--edge_instance_public_ip', type=str, default='')
 parser.add_argument('--superset_name', type=str, default='')
+parser.add_argument('--ip_adress', type=str, default='')
 args = parser.parse_args()
 
+gitlab_certfile = os.environ['conf_gitlab_certfile']
+
 ##############
 # Run script #
 ##############
@@ -68,6 +71,18 @@ if __name__ == "__main__":
     if not ensure_docker_compose(args.dlab_path, args.os_user):
         sys.exit(1)
 
+    # INSTALL UNGIT
+    print("Install nodejs")
+    install_nodejs(args.os_user)
+    print("Install ungit")
+    install_ungit(args.os_user, args.superset_name, args.edge_instance_private_ip)
+    if exists('/home/{0}/{1}'.format(args.os_user, gitlab_certfile)):
+        install_gitlab_cert(args.os_user, gitlab_certfile)
+
+        # INSTALL INACTIVITY CHECKER
+    print("Install inactivity checker")
+    install_inactivity_checker(args.os_user, args.ip_adress)
+
     # PREPARE SUPERSET
     try:
         configure_superset(args.os_user, args.keycloak_auth_server_url, args.keycloak_realm_name,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org