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>
# 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