Merge "Create run_tempest out of run_rally"
[functest.git] / docker / Dockerfile
1 ########################################
2 #   Docker container for FUNCTEST
3 ########################################
4 # Purpose: run all the tests against the POD
5 #          from a pre-installed docker image
6 #
7 # Maintained by Jose Lausuch
8 # Build:
9 #    $ docker build -t opnfv/functest:tag .
10 #
11 # Execution:
12 #    $ docker run -t -i -e "INSTALLER_TYPE=fuel/foreman" \
13 #      -e "INSTALLER_IP=10.20.0.2/172.30.10.73" opnfv/functest
14 #
15
16
17 FROM ubuntu:14.04
18 MAINTAINER Jose Lausuch <jose.lausuch@ericsson.com>
19 LABEL version="0.1" description="OPNFV Functest Docker container"
20
21 ENV repos_dir /home/opnfv/repos
22
23 # Packaged dependencies
24 RUN apt-get update && apt-get install -y \
25 ssh \
26 sshpass \
27 git \
28 gcc \
29 wget \
30 python-dev \
31 python-pip \
32 postgresql \
33 build-essential \
34 libpq-dev \
35 libxslt-dev \
36 libssl-dev \
37 libgmp3-dev \
38 libxml2-dev \
39 libffi-dev \
40 crudini \
41 --no-install-recommends
42
43
44 RUN mkdir -p ${repos_dir}
45
46 RUN git config --global http.sslVerify false
47 RUN git clone https://gerrit.opnfv.org/gerrit/functest ${repos_dir}/functest
48 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${repos_dir}/releng
49 RUN git clone https://github.com/openstack/rally.git ${repos_dir}/rally
50
51 RUN pip install -r ${repos_dir}/functest/docker/requirements.pip
52 RUN chmod 744  ${repos_dir}/functest/docker/start.sh