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 2e49780  Update configure_docker.py
2e49780 is described below

commit 2e497802c593619edc41bec402b6ed86098081bd
Author: i.oleksandr <i.oleksa...@gmail.com>
AuthorDate: Mon May 13 15:44:20 2019 +0300

    Update configure_docker.py
---
 infrastructure-provisioning/src/ssn/scripts/configure_docker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py 
b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
index a7d013c..b235a6d 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py
@@ -117,7 +117,7 @@ def configure_guacamole():
         sudo('docker run --name guac-mysql --restart unless-stopped -v 
/tmp/scripts:/tmp/scripts -v /opt/mysql:/var/lib/mysql -e 
MYSQL_ROOT_PASSWORD={} -d mysql:latest'.format(mysql_pass))
         time.sleep(180)
         sudo('touch /opt/mysql/dock-query.sql')
-        sudo("""echo "CREATE DATABASE guacamole; CREATE USER 'guacamole' 
IDENTIFIED BY '{}'; GRANT SELECT,INSERT,UPDATE,DELETE ON guacamolala7.* TO 
'guacamolala7';" > /opt/mysql/dock-query.sql""".format(mysql_pass))
+        sudo("""echo "CREATE DATABASE guacamole; CREATE USER 'guacamole' 
IDENTIFIED BY '{}'; GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole.* TO 
'guacamole';" > /opt/mysql/dock-query.sql""".format(mysql_pass))
         sudo('docker exec -i guac-mysql /bin/bash -c "mysql -u root -p{} < 
/var/lib/mysql/dock-query.sql"'.format(mysql_pass))
         sudo('docker exec -i guac-mysql /bin/bash -c "cat 
/tmp/scripts/initdb.sql | mysql -u root -p{} guacamole"'.format(mysql_pass))
         sudo("docker run --name guacamole --restart unless-stopped --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")


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

Reply via email to