From 71d85bca9549348b0c2f486bac58923f299e5a88 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 30 Sep 2015 15:29:04 +0200 Subject: Dockerfile for Functest Includes also: - script to trigger Functest automatically within the container - common requirements file to install python modules - added new parameters in the config_functest.yaml - other small adjustements JIRA: FUNCTEST-29 Change-Id: I230631e43e5f7e14938b35903ecec1b17db0f88a Signed-off-by: jose.lausuch --- docker/Dockerfile | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docker/Dockerfile (limited to 'docker/Dockerfile') diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..49d9edfe --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,50 @@ +######################################## +# Docker container for FUNCTEST +######################################## +# Purpose: run all the tests against the POD +# from a pre-installed docker image +# +# Maintained by Jose Lausuch +# Build: +# $ docker build -t opnfv/functest:tag . +# +# Execution: +# $ docker run -t -i -e "INSTALLER_TYPE=fuel/foreman" \ +# -e "INSTALLER_IP=10.20.0.2/172.30.10.73" opnfv/functest +# + + +FROM ubuntu:14.04 +MAINTAINER Jose Lausuch +LABEL version="0.1" description="OPNFV Functest Docker container" + +ENV repos_dir /home/opnfv/repos + +# Packaged dependencies +RUN apt-get update && apt-get install -y \ +ssh \ +sshpass \ +git \ +gcc \ +wget \ +python-dev \ +python-pip \ +postgresql \ +libxslt-dev \ +libssl-dev \ +libgmp3-dev \ +libxml2-dev \ +libffi-dev \ +crudini \ +--no-install-recommends + + +RUN mkdir -p ${repos_dir} + +RUN git config --global http.sslVerify false +RUN git clone https://gerrit.opnfv.org/gerrit/functest ${repos_dir}/functest +RUN git clone https://gerrit.opnfv.org/gerrit/releng ${repos_dir}/releng +RUN git clone https://github.com/openstack/rally.git ${repos_dir}/rally + +RUN pip install -r ${repos_dir}/functest/docker/requirements.pip +RUN chmod 744 ${repos_dir}/functest/docker/start.sh \ No newline at end of file -- cgit 1.2.3-korg