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
21 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
46 python-setuptools && \
47 easy_install -U setuptools==30.0.0 && \
50 RUN mkdir -p ${REPOS_DIR} && \
51 git config --global http.sslVerify false && \
52 git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR} && \
53 git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
55 # install yardstick + dependencies
56 # explicity pin pip version to avoid future issues like the ill-fated pip 8.0.0 release
57 RUN easy_install -U "pip==${PIP_VERSION}" && \
58 pip install -r ${YARDSTICK_REPO_DIR}/requirements.txt && \
59 pip install ${YARDSTICK_REPO_DIR}
61 RUN ${YARDSTICK_REPO_DIR}/api/api-prepare.sh
65 ADD http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img /home/opnfv/images/
66 ADD http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img /home/opnfv/images/
68 COPY ./exec_tests.sh /usr/local/bin/
69 CMD ["/usr/bin/supervisord"]