[RFC]Add dockerfile to support dovetail in CentOS 95/25195/2
authorTomofumi Hayashi <tohayash@redhat.com>
Wed, 30 Nov 2016 02:44:44 +0000 (11:44 +0900)
committerzshi <zshi@redhat.com>
Tue, 6 Dec 2016 05:45:52 +0000 (13:45 +0800)
JIRA: DOVETAIL-151

This diff introduces an optional dovetail dockerfile based on CentOS.
It provides users to have an alternative way to execute dovetail.
It should be just a optional, so we should keep docker/Dockerfile
as official one with dockerhub's image and we do not build docker images
in CI phase for now.

Change-Id: Ia694bcd49f65ff2bc175c1da3b42fbfa19b022a1
Signed-off-by: Tomofumi Hayashi <tohayash@redhat.com>
Signed-off-by: Zenghui Shi <zshi@redhat.com>
docker/Dockerfile.centos7 [new file with mode: 0644]
docs/dovetailtool/dovetail.tool.installation.rst

diff --git a/docker/Dockerfile.centos7 b/docker/Dockerfile.centos7
new file mode 100644 (file)
index 0000000..965c535
--- /dev/null
@@ -0,0 +1,19 @@
+FROM centos:centos7
+MAINTAINER Tomofumi Hayashi <tohayash@redhat.com>
+LABEL version="0.1" description="OPNFV Dovetail Docker Container"
+
+ARG BRANCH=master
+
+RUN yum update -y && yum install -y sudo iproute epel-release && \
+       yum install -y python-pip git && \
+        pip install pyyaml click jinja2
+
+ENV HOME /home/opnfv
+ENV REPOS_DIR ${HOME}/dovetail
+WORKDIR /home/opnfv
+
+RUN git config --global http.sslVerify false && \
+    git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/dovetail.git ${REPOS_DIR} && \
+    mkdir -p ${REPOS_DIR}/results
+
+WORKDIR ${REPOS_DIR}/dovetail
index 2f54448..29ebe89 100644 (file)
@@ -115,6 +115,9 @@ Pull Dovetail Docker image from public Dockerhub
 
 <Tag> here is the version, 'latest' is used for the master branch.
 
+As an alternative way, you can build own docker image from Dockfile(s) under ``docker/`` directory,
+``Dockerfile`` is based on ubuntu system and ``Dockerfile.centos7`` is for centos7.
+
 Dovetail Docker container creation
 ----------------------------------