aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2016-11-24 06:36:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-24 06:36:31 +0000
commitd491d77dea52e459dc6f1e1ec39703e26a4857e7 (patch)
tree50f490c214ae2a66720262111b380c83bcdb07ee /docker/Dockerfile
parent719cb0de632c4b1a81e93231278323e43a58dfdf (diff)
parented5a8ca39c778ea85cca6bb5e99ec39869d7a051 (diff)
Merge "Deployment for API"
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index fba6e2067..36db2bb13 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -43,6 +43,9 @@ RUN apt-get update && apt-get install -y \
python-dev \
libxml2-dev \
libxslt1-dev \
+ nginx \
+ uwsgi \
+ uwsgi-plugin-python \
python-setuptools && \
easy_install -U setuptools
@@ -60,6 +63,10 @@ RUN cd ${YARDSTICK_REPO_DIR} && easy_install -U pip
RUN cd ${YARDSTICK_REPO_DIR} && pip install -r requirements.txt
RUN cd ${YARDSTICK_REPO_DIR} && pip install .
+RUN ${YARDSTICK_REPO_DIR}/api/api-prepare.sh
+
+EXPOSE 5000
+
ADD http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img /home/opnfv/images/
ADD http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img /home/opnfv/images/