summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongbo tian <hongbo.tianhongbo@huawei.com>2016-12-07 13:58:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-07 13:58:23 +0000
commit3530fae4e072a5102d448304e88473fcd45d5d36 (patch)
tree64f7ba5e17ec6c3d0b7b8b8ebeddaf0a95828a0b
parent07cd2b8ea48b8a257eab4e3cc2f4e4fe488456be (diff)
parent4cf2bf77fee85a3ae651bf0fd0f1a723c448e129 (diff)
Merge "[RFC]Add dockerfile to support dovetail in CentOS"
-rw-r--r--docker/Dockerfile.centos719
-rw-r--r--docs/dovetailtool/dovetail.tool.installation.rst3
2 files changed, 22 insertions, 0 deletions
diff --git a/docker/Dockerfile.centos7 b/docker/Dockerfile.centos7
new file mode 100644
index 00000000..965c535b
--- /dev/null
+++ b/docker/Dockerfile.centos7
@@ -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
diff --git a/docs/dovetailtool/dovetail.tool.installation.rst b/docs/dovetailtool/dovetail.tool.installation.rst
index 2f544480..29ebe895 100644
--- a/docs/dovetailtool/dovetail.tool.installation.rst
+++ b/docs/dovetailtool/dovetail.tool.installation.rst
@@ -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
----------------------------------