show actual exceptions in task.py
[yardstick.git] / docker / Dockerfile
1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 FROM ubuntu:14.04
11
12 LABEL image=opnfv/yardstick
13
14 ARG BRANCH=master
15
16 # GIT repo directory
17 ENV REPOS_DIR /home/opnfv/repos
18 ENV IMAGE_DIR /home/opnfv/images/
19
20 # Set work directory
21
22 # Yardstick repo
23 ENV YARDSTICK_REPO_DIR ${REPOS_DIR}/yardstick
24 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
25
26 RUN apt-get update && apt-get install -y git python-setuptools python-pip
27 RUN easy_install -U setuptools==30.0.0
28 RUN pip install appdirs==1.4.0
29
30 RUN mkdir -p ${REPOS_DIR}
31
32 RUN git config --global http.sslVerify false
33 RUN git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR}
34 RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
35
36 WORKDIR ${YARDSTICK_REPO_DIR}
37 RUN ${YARDSTICK_REPO_DIR}/install.sh
38
39 RUN echo "daemon off;" >> /etc/nginx/nginx.conf
40
41 EXPOSE 5000
42
43 ADD http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img ${IMAGE_DIR}
44 ADD http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img ${IMAGE_DIR}
45
46 COPY ./exec_tests.sh /usr/local/bin/
47
48 WORKDIR ${REPOS_DIR}
49 CMD ["/usr/bin/supervisord"]