summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-11-22 11:22:15 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-11-22 11:22:15 +0800
commitee57024eb56f0fca77af53954b88d451d32f305d (patch)
tree7fc20278001d7bd4c879cdd96a347f316f8796a3
parentcb466cc23049bfd1f2ebee721e5f1c6841ade9e0 (diff)
adapt testapi running script to use mongo container as TESTDB
JIRA: QTIP-166 Change-Id: Icae8ab2a8760138ef10e9b353f6027bc5179ab5e Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
-rw-r--r--opt/servers/roles/testapi/files/run_testapi.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/opt/servers/roles/testapi/files/run_testapi.sh b/opt/servers/roles/testapi/files/run_testapi.sh
index ccc37f16..f9ba8387 100644
--- a/opt/servers/roles/testapi/files/run_testapi.sh
+++ b/opt/servers/roles/testapi/files/run_testapi.sh
@@ -1,4 +1,4 @@
#!/bin/bash
-envs="mongodb_url=mongodb://172.17.0.1:27017/ -e api_port=8000 -e swagger_url=http://testapi.qtip.openzero.net"
-docker run --name testapi -id -e $envs -p 8000:8000 opnfv/testapi
+envs="mongodb_url=mongodb://mongo:27017/ -e api_port=8000 -e swagger_url=http://testapi.qtip.openzero.net"
+docker run --name testapi --link mongo:mongo -p 8000:8000 -e $envs -d opnfv/testapi