1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
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 ##############################################################################
11 MAINTAINER MatthewLi <matthew.lijun@huawei.com>
13 LABEL image=opnfv/bottlenecks
16 ENV REPOS_DIR /home/opnfv
18 # CI docker image label
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
26 #new test suite required packages can be added here
27 RUN apt-get update && apt-get install -y \
40 python-setuptools && \
41 easy_install -U setuptools==30.0.0
43 RUN apt-get -y autoremove && \
46 RUN mkdir -p ${REPOS_DIR}
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}
53 RUN pip install -r ${REPOS_DIR}/bottlenecks/requirements/requirements.txt
54 RUN pip install -U /home/opnfv/bottlenecks