rewrite Dockerfile
[bottlenecks.git] / ci / 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 # Bottlenecks repo
19 ENV BOTTLENECKS_REPO_DIR ${REPOS_DIR}/bottlenecks
20 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
21
22 #new test suite required packages can be added here
23 RUN apt-get update && apt-get install -y \
24     libffi-dev \
25     libssl-dev \
26     libxml2-dev \
27     libxslt1-dev \
28     curl \
29     wget \
30     git \
31     sshpass \
32     python \
33     python-dev \
34     python-pip \
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/bottlenecks ${BOTTLENECKS_REPO_DIR}
45 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
46
47 RUN pip install -r ${REPOS_DIR}/bottlenecks/requirements.txt