diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-11-21 15:14:10 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-11-21 15:14:10 +0800 |
commit | 0a324e03a0d39bb205c43b6544740d2d9d9d9144 (patch) | |
tree | e92dc4b2f86e0d373375573ba7cece03673d718a /opt/servers/roles/testapi/files | |
parent | 3fe85ce6a6a19e5906e325370e6e6db16ec9d41e (diff) |
deploy testapi to qtip dashboard server
add ansible code to deploy testapi in qtip dashboard server
JIRA: QTIP-166
Change-Id: I09111ea762d2677061c010e85208105f3f556fc6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'opt/servers/roles/testapi/files')
-rw-r--r-- | opt/servers/roles/testapi/files/run_testapi.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opt/servers/roles/testapi/files/run_testapi.sh b/opt/servers/roles/testapi/files/run_testapi.sh new file mode 100644 index 00000000..ccc37f16 --- /dev/null +++ b/opt/servers/roles/testapi/files/run_testapi.sh @@ -0,0 +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 |