706718c20ac91a831a791238a78127b3fa93ca2b
[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     curl \
25     wget \
26     git \
27     sshpass \
28     python \
29     python-dev \
30     python-pip
31
32 RUN apt-get -y autoremove && \
33     apt-get clean
34
35 RUN mkdir -p ${REPOS_DIR}
36
37 RUN git config --global http.sslVerify false
38 RUN git clone https://gerrit.opnfv.org/gerrit/bottlenecks ${BOTTLENECKS_REPO_DIR}
39 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
40
41 RUN pip install -r ${REPOS_DIR}/bottlenecks/requirements.txt