c91a60f1f7cb59580ae792a47f967c72895e84ca
[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:16.04
11 MAINTAINER Yang (Gabriel) Yu <gabriel.yuyang@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
25 #new test suite required packages can be added here
26 RUN apt-get update && apt-get install -y \
27     libffi-dev \
28     libssl-dev \
29     libxml2-dev \
30     libxslt1-dev \
31     curl \
32     wget \
33     git \
34     python \
35     python-pip \
36     vim \
37     iputils-ping \
38     sshpass \
39     sudo \
40     python-setuptools && \
41     apt-get -y autoremove && \
42     apt-get clean
43
44 RUN easy_install -U setuptools==30.0.0
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 pip install -r ${BOTTLENECKS_REPO_DIR}/requirements/requirements.txt
53 RUN pip install -U ${BOTTLENECKS_REPO_DIR}