7e7793eea1e8f46c86a3649a3e8d17704386b735
[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     python-setuptools && \
40     easy_install -U setuptools==30.0.0
41
42 RUN apt-get -y autoremove && \
43     apt-get clean
44
45 RUN mkdir -p ${REPOS_DIR}
46
47 RUN git config --global http.sslVerify false
48 RUN git clone -b $BRANCH https://gerrit.opnfv.org/gerrit/bottlenecks ${BOTTLENECKS_REPO_DIR}
49 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
50
51 RUN easy_install pytz
52 RUN pip install -r ${REPOS_DIR}/bottlenecks/requirements.txt