2017-05-11 15:55:05 +02:00
|
|
|
#!/bin/bash
|
2017-05-15 09:18:54 +02:00
|
|
|
# Start a mariadb container to use its mysql client to initialize the keystone database.
|
2017-06-14 10:58:38 +02:00
|
|
|
docker run -i mariadb:10.1.22 mysql -uroot -pgeheim --host "$1" << EOF
|
2017-05-11 15:55:05 +02:00
|
|
|
CREATE DATABASE IF NOT EXISTS keystone;
|
|
|
|
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'keystone';
|
|
|
|
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'keystone';
|
|
|
|
EOF
|