diff options
author | Shrenik <shrenik.jain@research.iiit.ac.in> | 2017-05-31 00:38:55 +0530 |
---|---|---|
committer | Shrenik <shrenik.jain@research.iiit.ac.in> | 2017-06-05 22:22:41 +0530 |
commit | 5596aa1f65580af279b27569fbddac292cbcc2a6 (patch) | |
tree | 7eccb0fd3e9e5aec847cfbfd34a8c36e62b32837 /ci | |
parent | 8f3c6859e483961fd9740bb662bbd049b512bba2 (diff) |
Adding CORS
Adds flask-cors module so that SwaggerUI can examine content from a different container
JIRA: STORPERF-129
Change-Id: I9c47a2ea464da83910c368d771dce13f5364ca23
Signed-off-by: Shrenik <shrenik.jain@research.iiit.ac.in>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/launch_docker_container.sh | 7 | ||||
-rwxr-xr-x | ci/verify.sh | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ci/launch_docker_container.sh b/ci/launch_docker_container.sh index b119946..ec9c4d8 100755 --- a/ci/launch_docker_container.sh +++ b/ci/launch_docker_container.sh @@ -29,7 +29,12 @@ then sudo chown 33:33 job/carbon fi -docker pull opnfv/storperf:latest +if [ -z $DOCKER_TAG ] +then + DOCKER_TAG=latest +fi + +docker pull opnfv/storperf:$DOCKER_TAG docker run -d --env-file `pwd`/job/admin.rc \ -p 5000:5000 \ diff --git a/ci/verify.sh b/ci/verify.sh index 84dc603..28d0886 100755 --- a/ci/verify.sh +++ b/ci/verify.sh @@ -23,6 +23,7 @@ pip install autoflake==0.6.6 pip install autopep8==1.2.2 pip install coverage==4.1 pip install flask==0.10 +pip install flask_cors==3.0.2 pip install flask-restful==0.3.5 pip install flask-restful-swagger==0.19 pip install flask-swagger==0.2.12 |