diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 56 | ||||
-rw-r--r-- | docker/packages.pip | 8 | ||||
-rwxr-xr-x | docker/push_db.sh | 3 | ||||
-rwxr-xr-x | docker/run_qtip.sh | 40 |
4 files changed, 107 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..9ed0980e --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,56 @@ +########################################## +#####Docker container for QTIP############ +########################################## + + +FROM ubuntu:14.04 +MAINTAINER Nauman Ahad <Nauman_Ahad@dell.com> +LABEL version="0.1" description="OPNFV QTIP Docker container" + + + + +ENV REPOS_DIR /home/opnfv/repos +ENV QTIP_DIR /home/opnfv/repos/qtip +WORKDIR /home/opnfv + + +#Packaged Dependencies + + +RUN apt-get update && apt-get install -y \ +software-properties-common \ +wget \ +git \ +gcc \ +ssh \ +expect \ +python-matplotlib \ +python-dev \ +python-pip \ +libjpeg62 \ +libjpeg62-dev \ +zlib1g-dev \ +python-tk \ +--no-install-recommends + +RUN apt-add-repository ppa:ansible/ansible -y +RUN apt-key update -y +RUN apt-get update -y +RUN apt-get install ansible --force-yes -y + + + +RUN mkdir -p ${REPOS_DIR} +RUN mkdir -p /root/.ssh +RUN chmod 700 /root/.ssh + +#Cloning Repos + +RUN git config --global http.sslVerify false +RUN git clone https://gerrit.opnfv.org/gerrit/qtip $REPOS_DIR/qtip +RUN git clone https://gerrit.opnfv.org/gerrit/releng $REPOS_DIR/releng + +RUN pip install -r $REPOS_DIR/qtip/docker/packages.pip + + diff --git a/docker/packages.pip b/docker/packages.pip new file mode 100644 index 00000000..cc048389 --- /dev/null +++ b/docker/packages.pip @@ -0,0 +1,8 @@ +pyyaml==3.10 +python-neutronclient==2.6.0 +python-novaclient==2.28.1 +python-glanceclient==1.1.0 +python-cinderclient==1.4.0 +python-heatclient==0.6.0 +python-keystoneclient==1.6.0 +reportlab==3.0 diff --git a/docker/push_db.sh b/docker/push_db.sh new file mode 100755 index 00000000..d9f9d9ac --- /dev/null +++ b/docker/push_db.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cd ${QTIP_DIR} && python dashboard/pushtoDB.py diff --git a/docker/run_qtip.sh b/docker/run_qtip.sh new file mode 100755 index 00000000..a4729c06 --- /dev/null +++ b/docker/run_qtip.sh @@ -0,0 +1,40 @@ +#! /bin/bash + + + +cp ${REPOS_DIR}/releng/utils/fetch_os_creds.sh ${QTIP_DIR}/data/ +cd ${QTIP_DIR} && source get_env_info.sh \ +-n ${INSTALLER_TYPE} \ +-i ${INSTALLER_IP} + +source ${QTIP_DIR}/opnfv-creds.sh + +if [ "$TEST_CASE" == "compute" ]; then + cd ${QTIP_DIR} && python qtip.py -l ${NODE_NAME} -f compute + cd ${QTIP_DIR}/data/ref_results/ && python compute_suite.py +fi + +if [ "$TEST_CASE" == "storage" ]; then + cd ${QTIP_DIR} && python qtip.py -l ${NODE_NAME} -f storage + cd ${QTIP_DIR}/data/ref_results/ && python storage_suite.py +fi + +if [ "$TEST_CASE" == "network" ]; then + cd ${QTIP_DIR} && python qtip.py -l ${NODE_NAME} -f network + cd ${QTIP_DIR}/data/ref_results/ && python network_suite.py +fi + + +if [ "$TEST_CASE" == "all" ]; then + cd ${QTIP_DIR} && python qtip.py -l ${NODE_NAME} -f compute + cd ${QTIP_DIR} && python qtip.py -l ${NODE_NAME} -f storage + cd ${QTIP_DIR} && python qtip.py -l ${NODE_NAME} -f network + + cd ${QTIP_DIR}/data/ref_results/ && python compute_suite.py + cd ${QTIP_DIR}/data/ref_results/ && python storage_suite.py + cd ${QTIP_DIR}/data/ref_results/ && python network_suite.py +fi + + + + |