diff options
author | xudan <xudan16@huawei.com> | 2017-06-23 02:36:50 -0400 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2017-06-23 02:47:56 -0400 |
commit | 8930044a1dfa769570eac5bd62f7e1c51bad4054 (patch) | |
tree | 7d03927e15ce9f2d8bc070613f61d0741c0365f7 /dovetail/utils/local_db | |
parent | 21563d9f2ed1da2161e23769da090ba8320c6d7f (diff) |
Use official Docker images to build local DB
JIRA: DOVETAIL-422
1. Use official Docker images, mongo:3.2.1 and opnfv/testapi:cvp.0.1.0,
to build local database and testapi service.
2. Use the stable Docker tag in offline config file.
Change-Id: I446a4248effc95f6f5aa6a6d90c0d31ef2f60b39
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/utils/local_db')
-rwxr-xr-x | dovetail/utils/local_db/launch_db.sh | 8 | ||||
-rwxr-xr-x | dovetail/utils/local_db/restart_db.sh | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dovetail/utils/local_db/launch_db.sh b/dovetail/utils/local_db/launch_db.sh index 77646713..cf002d4c 100755 --- a/dovetail/utils/local_db/launch_db.sh +++ b/dovetail/utils/local_db/launch_db.sh @@ -30,8 +30,8 @@ echo "Create the mongodb." echo "===================" set +e -# pull image kkltcjk/mongodb:reporting -mongodb_img="kkltcjk/mongodb:reporting" +# pull image mongo:3.2.1 +mongodb_img="mongo:3.2.1" echo "Step1: pull the image $mongodb_img." sudo docker pull $mongodb_img set -e @@ -59,8 +59,8 @@ echo "Create the testapi service." echo "==========================" set +e -# pull image kkltcjk/testapi:reporting -testapi_img="kkltcjk/testapi:reporting" +# pull image opnfv/testapi:cvp.0.1.0 +testapi_img="opnfv/testapi:cvp.0.1.0" echo "Step1: pull the image $testapi_img." sudo docker pull $testapi_img set -e diff --git a/dovetail/utils/local_db/restart_db.sh b/dovetail/utils/local_db/restart_db.sh index 39b60e05..93fd12a4 100755 --- a/dovetail/utils/local_db/restart_db.sh +++ b/dovetail/utils/local_db/restart_db.sh @@ -26,4 +26,4 @@ export db_host_ip=${db_host_ip:-"$1"} sudo docker rm -f testapi sudo docker run -itd -p $testapi_port:8000 --name testapi \ - -e mongodb_url=mongodb://$db_host_ip:$mongodb_port/ kkltcjk/testapi:reporting + -e mongodb_url=mongodb://$db_host_ip:$mongodb_port/ opnfv/testapi:cvp.0.1.0 |