summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-04-26 11:58:52 -0400
committermbeierl <mark.beierl@dell.com>2017-04-26 11:58:52 -0400
commit67ef3ea942d5d2eaff46572936f12d4ccab4d89c (patch)
treed465f0fce0f4fbd4ba6701e0d42ce86a033c3ab0
parent902a4a4f915f0f186f66b566b1744667c7ee9572 (diff)
Pinning version of Swagger UI
Changes the inclusion of Swagger UI to become a git checkout of a fixed version rather than following the head. Change-Id: I30def6d6c37a166cc37f15857a98064c760eb7c6 JIRA: STORPERF-123 Signed-off-by: mbeierl <mark.beierl@dell.com>
-rw-r--r--docker/Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 69a6e3b..6959095 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -100,6 +100,7 @@ RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${repos_dir}/rele
# Third party git fetches
RUN git clone https://github.com/swagger-api/swagger-ui.git ${repos_dir}/swagger-ui
+RUN cd ${repos_dir}/swagger-ui && git checkout tags/v2.2.9
RUN mkdir -p ${repos_dir}/storperf/storperf/resources/html/swagger
RUN cp -r ${repos_dir}/swagger-ui/dist/* ${repos_dir}/storperf/storperf/resources/html/swagger
RUN sed -i 's|url = "http://petstore.swagger.io/v2/swagger.json";|url = window.location.protocol+"//"+window.location.host+"/api/spec.json";|' ${repos_dir}/storperf/storperf/resources/html/swagger/index.html