diff options
author | dyh <dengyuanhong@chinamobile.com> | 2020-08-11 11:13:41 +0800 |
---|---|---|
committer | dyh <dengyuanhong@chinamobile.com> | 2020-08-12 14:30:55 +0800 |
commit | 7922d6d642918d6591b20a13e82bb1d1c2277879 (patch) | |
tree | 5f1552cb7d33ced724e8b9a3cfe4f2174f4d628e /plans/modeling-etsicatalog | |
parent | 73fc834188cb53f79c4bc1cb5ab397e1e774a297 (diff) |
update Environment variable for DB
Issue-ID: MODELING-414
Change-Id: I321ac658c3e68ea22b338986149ab4ad71128104
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'plans/modeling-etsicatalog')
-rw-r--r-- | plans/modeling-etsicatalog/sanity-check/setup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plans/modeling-etsicatalog/sanity-check/setup.sh b/plans/modeling-etsicatalog/sanity-check/setup.sh index e713af21..2e494167 100644 --- a/plans/modeling-etsicatalog/sanity-check/setup.sh +++ b/plans/modeling-etsicatalog/sanity-check/setup.sh @@ -33,7 +33,7 @@ docker run -d -p 80:80 -e CONSUL_IP=$CONSUL_IP -e SDCLIENT_IP=$DISCOVERY_IP -e " MSB_IP==`get-instance-ip.sh msb_internal_apigateway` echo MSB_IP=${MSB_IP} -docker run -d -p 3306:3306 --name vfc-db -v /var/lib/mysql -e MYSQL_ROOT_PASSWORD=root nexus3.onap.org:10001/library/mariadb +docker run -d -p 3306:3306 --name vfc-db -v /var/lib/mysql -e MYSQL_USER="etsicatalog" -e MYSQL_PASSWORD="etsicatalog" -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE="etsicatalog" nexus3.onap.org:10001/library/mariadb DB_IP=`get-instance-ip.sh vfc-db` echo DB_IP=${DB_IP} @@ -56,7 +56,7 @@ echo sleep 60 sleep 60 # start modeling-etsicatalog -docker run -d --name modeling-etsicatalog -v /var/lib/mysql -e MSB_ADDR=${DISCOVERY_IP}:10081 -e MYSQL_ADDR=${DB_IP}:3306 nexus3.onap.org:10001/onap/modeling/etsicatalog +docker run -d --name modeling-etsicatalog -v /var/lib/mysql -e MSB_ADDR=${DISCOVERY_IP}:10081 -e DB_IP=${DB_IP} nexus3.onap.org:10001/onap/modeling/etsicatalog EtsiCatalog_IP=`get-instance-ip.sh modeling-etsicatalog` for i in {1..10}; do curl -sS -m 1 ${EtsiCatalog_IP}:8806 && break |