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-08-14 16:40:06 +02:00
|
|
|
docker run --rm -i mariadb:10.2 mysql -uroot -p"$MYSQL_ROOT_PASSWORD" --host "$DB_HOST" << 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
|