bugfix: copy hosts file
[bottlenecks.git] / docker / Dockerfile
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd 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 MAINTAINER MatthewLi <matthew.lijun@huawei.com>
12
13 LABEL image=opnfv/bottlenecks
14
15 # GIT repo directory
16 ENV REPOS_DIR /home/opnfv
17
18 # CI docker image label
19 ARG BRANCH=master
20
21 # Bottlenecks repo
22 ENV BOTTLENECKS_REPO_DIR ${REPOS_DIR}/bottlenecks
23 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
24 ENV creds ${BOTTLENECKS_REPO_DIR}/config/openstack.creds
25
26 #new test suite required packages can be added here
27 RUN apt-get update && apt-get install -y \
28     libffi-dev \
29     libssl-dev \
30     libxml2-dev \
31     libxslt1-dev \
32     curl \
33     wget \
34     git \
35     sshpass \
36     python \
37     python-dev \
38     python-pip \
39     vim \
40     python-setuptools && \
41     easy_install -U setuptools==30.0.0
42
43 RUN apt-get -y autoremove && \
44     apt-get clean
45
46 RUN mkdir -p ${REPOS_DIR}
47
48 RUN git config --global http.sslVerify false
49 RUN git clone -b $BRANCH https://gerrit.opnfv.org/gerrit/bottlenecks ${BOTTLENECKS_REPO_DIR}
50 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
51
52 RUN easy_install pytz
53 RUN pip install -r ${REPOS_DIR}/bottlenecks/requirements/requirements.txt
54 RUN pip install -U /home/opnfv/bottlenecks