You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by io...@apache.org on 2019/05/10 14:20:35 UTC
[incubator-dlab] branch DLAB-3 updated: change ssn primary drive
size first configuration of guacamole
This is an automated email from the ASF dual-hosted git repository.
ioleksandr pushed a commit to branch DLAB-3
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-3 by this push:
new 0d22e40 change ssn primary drive size first configuration of guacamole
0d22e40 is described below
commit 0d22e40e892b5381aa3f32722c1a00c232d919e6
Author: Oleksandr_Isniuk <i....@gmail.com>
AuthorDate: Fri May 10 17:20:28 2019 +0300
change ssn primary drive size
first configuration of guacamole
---
infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
index ce10c62..e15bd17 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py
@@ -160,7 +160,10 @@ def configure_guacamole():
sudo('docker exec -it guac-mysql /bin/bash -c "mysql -u root -p{} < /var/lib/mysql/query.mysql"'.format(mysql_pass))
sudo('docker exec -it guac-mysql /bin/bash -c "cat /tmp/scripts/initdb.sql | mysql -u root -p{} guacamole"'.format(mysql_pass))
sudo("docker run --name guacamole --link guacd:guacd --link guac-mysql:mysql -e MYSQL_DATABASE='guacamole' -e MYSQL_USER='guacamole' -e MYSQL_PASSWORD='guacamole' -d -p 8080:8080 guacamole/guacamole")
-
+ except Exception as err:
+ traceback.print_exc()
+ print('Failed to configure guacamole: ', str(err))
+ sys.exit(1)
##############
# Run script #
@@ -219,5 +222,8 @@ if __name__ == "__main__":
print("Ensuring safest ssh ciphers")
ensure_ciphers()
+ print("Configuring guacamole")
+ configure_guacamole()
+
print("Configuring docker_build script")
docker_build_script()
\ 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