From ee57024eb56f0fca77af53954b88d451d32f305d Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Tue, 22 Nov 2016 11:22:15 +0800 Subject: adapt testapi running script to use mongo container as TESTDB JIRA: QTIP-166 Change-Id: Icae8ab2a8760138ef10e9b353f6027bc5179ab5e Signed-off-by: SerenaFeng --- opt/servers/roles/testapi/files/run_testapi.sh | 4 ++-- 1 file 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 -- cgit 1.2.3-korg