summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-01-17 06:57:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-17 06:57:09 +0000
commit1d4610afd990101eead7ede56e6252577ab245d8 (patch)
treeed652cd2c3e7ba0d53571577d23b562683cfcdf8 /docker/Dockerfile
parent862261dbeb4c92324b25f4307d901de3a45b7b18 (diff)
parent370ea64a90d288c2dba94a849cdea87b0f82b0a3 (diff)
Merge "Update Dockerfile"
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile67
1 files changed, 67 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 00000000..f2a543e6
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,67 @@
+##########################################
+#####Docker container for QTIP############
+##########################################
+
+FROM ubuntu:16.04
+MAINTAINER Yujun Zhang <zhang.yujunz@zte.com.cn>
+LABEL version="0.1" description="OPNFV QTIP Docker container"
+
+ARG BRANCH=master
+
+ENV REPOS_DIR /home/opnfv/repos
+ENV QTIP_DIR /home/opnfv/repos/qtip
+ENV PYTHONPATH /home/opnfv/repos/qtip
+ENV HOME /home/opnfv
+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 \
+ curl \
+ supervisor \
+ python-setuptools \
+ --no-install-recommends \
+&& rm -rf /var/lib/apt/lists/*
+
+RUN pip install -U pip
+RUN pip install 'setuptools>=17.1'
+
+RUN apt-add-repository ppa:ansible/ansible -y
+RUN apt-key update -y
+RUN apt-get update && apt-get install ansible -y
+
+RUN mkdir -p ${REPOS_DIR}
+RUN mkdir -p /root/.ssh
+RUN mkdir -p $HOME/qtip/logs
+RUN mkdir -p $HOME/qtip/results
+
+RUN chmod 700 /root/.ssh
+
+#Config ansible
+COPY ansible.cfg.default /root/.ansible.cfg
+
+#Cloning Repos
+RUN git config --global http.sslVerify false
+RUN git clone -b $BRANCH 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/requirements.txt
+
+#Config supervisor
+RUN mkdir -p /var/log/supervisor
+RUN locale-gen en_US en_US.UTF-8
+COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
+
+CMD ["/usr/bin/supervisord"]