daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Jun 29th, 2018 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # MySQL
  2.  
  3. sudo docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=supersecret -d mysql:5.5
  4.  
  5. sudo docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > initdb.sql
  6.  
  7. sudo docker run -it --link some-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"supersecret"'
  8.  
  9. `create database guacamole_db`
  10.  
  11. sudo docker exec -i some-mysql mysql -uroot -psupersecret guacamole_db < initdb.sql
  12.  
  13. sudo docker run -it --link some-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"supersecret"'
  14.  
  15. `grant all privileges on guacamole_db.* to guacamole_user@'%' identified by 'supersecret';
  16. flush privileges;`
  17.  
  18. # guacamole
  19.  
  20. sudo docker run --name some-guacd -d guacamole/guacd
  21.  
  22. sudo docker run --name some-guacamole \
  23. --link some-guacd:guacd \
  24. --link some-mysql:mysql \
  25. -e MYSQL_DATABASE=guacamole_db \
  26.  MYSQL_USER=guacamole_user MYSQL_PASSWORD=supersecret -d -p 8080:8080 guacamole/guacamole
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top