From 1f36d6247578273197a4ba64b58b02b1ed837171 Mon Sep 17 00:00:00 2001 From: xudan Date: Thu, 27 Jun 2019 04:37:55 -0400 Subject: Add Swagger UI for dovetail API Change-Id: If8f515b02f0372955739dd580967a3198930e98b Signed-off-by: xudan --- docker/Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/Dockerfile b/docker/Dockerfile index 077f5e34..56ca1ea2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,11 +12,13 @@ MAINTAINER Stamatis Katsaounis LABEL version="0.1" description="OPNFV Dovetail Docker Container" ARG BRANCH=master +ARG SWAGGER_UI_TAG=v3.22.3 RUN \ apt-get update \ && \ apt-get install -y \ + apache2 \ gcc \ make \ git \ @@ -50,8 +52,16 @@ RUN \ && \ ln -s /usr/local/lib/python2.7/dist-packages/dovetail ${REPOS_DIR}/dovetail +RUN \ + git clone https://github.com/swagger-api/swagger-ui.git \ +&& \ + cd swagger-ui && git checkout $SWAGGER_UI_TAG + WORKDIR ${REPOS_DIR}/dovetail ENV FLASK_APP ${API_DIR}/app/routes.py +# This port is for flask API in container EXPOSE 5000 -CMD ${API_DIR}/boot.sh +# This port is for Swagger UI in container +EXPOSE 80 +CMD bash ${API_DIR}/boot.sh -- cgit 1.2.3-korg