1 ##############################################################################
2 # Copyright (c) 2017 Intel Corporation
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 ##############################################################################
12 LABEL image=opnfv/yardstick
17 ENV REPOS_DIR /home/opnfv/repos
20 ENV YARDSTICK_REPO_DIR ${REPOS_DIR}/yardstick
45 python-setuptools && \
46 easy_install -U setuptools==30.0.0 && \
49 RUN mkdir -p ${REPOS_DIR} && \
50 git config --global http.sslVerify false && \
51 git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR} && \
53 # install yardstick + dependencies
54 # explicity pin pip version to avoid future issues like the ill-fated pip 8.0.0 release
55 RUN easy_install -U "pip==${PIP_VERSION}" && \
56 pip install -r ${YARDSTICK_REPO_DIR}/requirements.txt && \
57 pip install ${YARDSTICK_REPO_DIR}
59 RUN ${YARDSTICK_REPO_DIR}/api/api-prepare.sh
63 ADD http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img /home/opnfv/images/
64 ADD http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img /home/opnfv/images/
66 COPY ./exec_tests.sh /usr/local/bin/
67 CMD ["/usr/bin/supervisord"]