ipv6 test case to de-coupling to fuel/compass
[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 RUN sed -i -e 's/^deb /deb [arch=amd64] /g' /etc/apt/sources.list
21 RUN sed -i -e 's/^deb-src /# deb-src /g' /etc/apt/sources.list
22 RUN echo "\n\
23 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty main universe multiverse restricted \n\
24 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main universe multiverse restricted \n\
25 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-security main universe multiverse restricted \n\
26 deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ trusty-proposed main universe multiverse restricted" >> /etc/apt/sources.list
27 RUN echo "vm.mmap_min_addr = 0" > /etc/sysctl.d/mmap_min_addr.conf
28 RUN dpkg --add-architecture arm64
29
30 RUN apt-get update && apt-get install -y \
31     qemu-user-static \
32     libc6:arm64 \
33     wget \
34     expect \
35     curl \
36     git \
37     sshpass \
38     qemu-utils \
39     kpartx \
40     libffi-dev \
41     libssl-dev \
42     python \
43     python-dev \
44     libxml2-dev \
45     libxslt1-dev \
46     python-setuptools && \
47     easy_install -U setuptools
48
49 RUN apt-get -y autoremove && \
50     apt-get clean
51
52 RUN mkdir -p ${REPOS_DIR}
53
54 RUN git config --global http.sslVerify false
55 RUN git clone https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR}
56 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
57
58 # install yardstick + dependencies
59 RUN cd ${YARDSTICK_REPO_DIR} && easy_install -U pip
60 RUN cd ${YARDSTICK_REPO_DIR} && pip install -r tests/ci/requirements.txt
61 RUN cd ${YARDSTICK_REPO_DIR} && pip install .
62
63 ADD http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-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/
65
66 COPY ./exec_tests.sh /usr/local/bin/