diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-01 11:22:35 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-09-01 11:22:35 +0800 |
commit | f9a1431adc1432921813263a8595eac577a09f17 (patch) | |
tree | 4430ca5db7d5ea7fddd738195be67bd15a91ae4b /docker/instance_init.sh | |
parent | d25d9fb96d25c4b5be08f5affd07db22516bfb2b (diff) |
Update docker scripts
Add db initialize script
Add docker push script
Modify docker image name
Change-Id: Ifd12dc86c70d4f17d381831a1fadeb51bdf17f49
Issue-Id: VFC-215
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'docker/instance_init.sh')
-rwxr-xr-x | docker/instance_init.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh index 255bbe24..f880c6bc 100755 --- a/docker/instance_init.sh +++ b/docker/instance_init.sh @@ -11,6 +11,11 @@ function start_redis_server { function start_mysql { service mysql start + # Wait for mysql to initialize; Set mysql root password + for i in {1..10}; do + sleep $i + bash /usr/bin/mysqladmin -u root password $MYSQL_ROOT_PASSWORD &> /dev/null && break + done } function create_database { |