Merge "Include cirros image in the docker container"
[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 \
13 #      -e "INSTALLER_TYPE=fuel/foreman" \
14 #      -e "INSTALLER_IP=10.20.0.2/172.30.10.73" \
15 #      -v $(pwd)/config_functest.yaml:/home/opnfv/functest/conf/config_functest.yaml
16 #      opnfv/functest /bin/bash
17 #
18 # NOTE: providing config_functest.yaml is optional. If not provided, it will
19 #       use the default one located in the repo
20
21
22 FROM ubuntu:14.04
23 MAINTAINER Jose Lausuch <jose.lausuch@ericsson.com>
24 LABEL version="0.1" description="OPNFV Functest Docker container"
25
26 ENV repos_dir /home/opnfv/repos
27
28 # Packaged dependencies
29 RUN apt-get update && apt-get install -y \
30 ssh \
31 sshpass \
32 git \
33 gcc \
34 wget \
35 python-dev \
36 python-pip \
37 postgresql \
38 build-essential \
39 libpq-dev \
40 libxslt-dev \
41 libssl-dev \
42 libgmp3-dev \
43 libxml2-dev \
44 libffi-dev \
45 crudini \
46 --no-install-recommends
47
48
49 RUN mkdir -p ${repos_dir}
50
51 RUN git config --global http.sslVerify false
52 RUN git clone https://gerrit.opnfv.org/gerrit/functest ${repos_dir}/functest
53 RUN git clone https://gerrit.opnfv.org/gerrit/releng ${repos_dir}/releng
54 RUN git clone https://github.com/openstack/rally.git ${repos_dir}/rally
55
56 RUN pip install -r ${repos_dir}/functest/docker/requirements.pip
57
58 ADD http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img /home/opnfv/functest/data/