From 9072279aa7e87f964aa11b6b33d3c38daf239205 Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Mon, 3 Jul 2017 11:54:47 +0200 Subject: [PATCH] contaimer will be removed after use --- roles/keystone/scripts/initialize_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/keystone/scripts/initialize_db.sh b/roles/keystone/scripts/initialize_db.sh index 0f56b5f..62b2d5d 100644 --- a/roles/keystone/scripts/initialize_db.sh +++ b/roles/keystone/scripts/initialize_db.sh @@ -1,6 +1,6 @@ #!/bin/bash # Start a mariadb container to use its mysql client to initialize the keystone database. -docker run -i mariadb:10.1.22 mysql -uroot -pgeheim --host "$1" << EOF +docker run --rm -i mariadb:10.1.22 mysql -uroot -pgeheim --host "$1" << EOF 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';