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
commit 973ca438163f4da47230308dab9e5d885f6df583 Author: Oleksandr_Isniuk <i.oleksa...@gmail.com> AuthorDate: Tue May 14 13:38:56 2019 +0300 add cron reboot job and autorestart to dockers --- infrastructure-provisioning/src/ssn/scripts/configure_docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py index 3952400..ea3ee1c 100644 --- a/infrastructure-provisioning/src/ssn/scripts/configure_docker.py +++ b/infrastructure-provisioning/src/ssn/scripts/configure_docker.py @@ -114,7 +114,8 @@ def configure_guacamole(): sudo('mkdir /tmp/scripts') sudo('cp initdb.sql /tmp/scripts') sudo('mkdir /opt/mysql') - 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)) + 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 guacamole.* TO 'guacamole';" > /opt/mysql/dock-query.sql""".format(mysql_pass)) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org