BugFix: fix storperf_admin-rc problem
[yardstick.git] / tests / ci / docker / yardstick-ci / 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 # GIT repo directory
15 ENV REPOS_DIR /home/opnfv/repos
16
17 # Yardstick repo
18 ENV YARDSTICK_REPO_DIR ${REPOS_DIR}/yardstick
19 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
20
21 RUN apt-get update && apt-get install -y \
22     wget \
23     expect \
24     curl \
25     git \
26     sshpass \
27     qemu-utils \
28     kpartx \
29     libffi-dev \
30     libssl-dev \
31     python \
32     python-dev \
33     libxml2-dev \
34     libxslt1-dev \
35     python-setuptools && \
36     easy_install -U setuptools
37
38 RUN apt-get -y autoremove && \
39     apt-get clean
40
41 RUN mkdir -p ${REPOS_DIR}
42
43 RUN git config --global http.sslVerify false
44 RUN git clone https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR}
45 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
46
47 # install yardstick + dependencies
48 RUN cd ${YARDSTICK_REPO_DIR} && easy_install -U pip
49 RUN cd ${YARDSTICK_REPO_DIR} && pip install -r tests/ci/requirements.txt
50 RUN cd ${YARDSTICK_REPO_DIR} && pip install .
51
52 ADD http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img /home/opnfv/images/
53 ADD http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img /home/opnfv/images/
54
55 COPY ./exec_tests.sh /usr/local/bin/