obtain openstack creds in container
[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 ENV creds ${BOTTLENECKS_REPO_DIR}/config/openstack.creds
22
23 #new test suite required packages can be added here
24 RUN apt-get update && apt-get install -y \
25     libffi-dev \
26     libssl-dev \
27     libxml2-dev \
28     libxslt1-dev \
29     curl \
30     wget \
31     git \
32     sshpass \
33     python \
34     python-dev \
35     python-pip \
36     python-setuptools && \
37     easy_install -U setuptools
38
39 RUN apt-get -y autoremove && \
40     apt-get clean
41
42 RUN mkdir -p ${REPOS_DIR}
43
44 RUN git config --global http.sslVerify false
45 RUN git clone https://gerrit.opnfv.org/gerrit/bottlenecks ${BOTTLENECKS_REPO_DIR}
46 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
47
48 RUN easy_install pytz
49 RUN pip install -r ${REPOS_DIR}/bottlenecks/requirements.txt