diff options
author | zhihui wu <wu.zhihui1@zte.com.cn> | 2016-11-23 03:17:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-23 03:17:05 +0000 |
commit | 306b614325c2806997dedca958e4cadf909a351b (patch) | |
tree | c97370e053e001e32d7d2b4aa3ef63fb4bc6a5c4 /opt/servers/roles/testapi/files/run_testapi.sh | |
parent | 935d22c3618d21254c8948a5d7a3c42e1a385b3e (diff) | |
parent | ee57024eb56f0fca77af53954b88d451d32f305d (diff) |
Merge "adapt testapi running script to use mongo container as TESTDB"
Diffstat (limited to 'opt/servers/roles/testapi/files/run_testapi.sh')
-rw-r--r-- | opt/servers/roles/testapi/files/run_testapi.sh | 4 |
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 |