From 658778cd891d9327a1ce91e6bcbc8fcfd81e7cd6 Mon Sep 17 00:00:00 2001 From: Julien Date: Thu, 7 Dec 2017 00:08:59 -0800 Subject: Add opnfvdocs build container Currently, rst files only can be built in opnfvdocs project's CI pipeline and feature projects can not verify this before submitting doc files. Feature project can use this container to build its docs without installing any docs tools. JIRA: DOCS-183 Change-Id: I715d19d24da776d76e509309c9010d4072e6f4f8 Signed-off-by: Julien --- docker/Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker/Dockerfile (limited to 'docker/Dockerfile') diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 000000000..fe1ff808a --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,23 @@ +FROM ubuntu:14.04 + +MAINTAINER Julien Zhang +LABEL version="0.1" Description="OPNFVDocs Docker container" + +ARG BRANCH=master +ARG build=html +ENV BRANCH=$BRANCH +ENV build=$build + +# Dependencies for sphinx, pip and git +RUN apt-get update && apt-get install -y \ + python-pip python-sphinx git + +RUN git clone --depth=1 --branch=$BRANCH https://git.opnfv.org/opnfvdocs /opnfvdocs +RUN pip install -r /opnfvdocs/etc/requirements.txt +RUN pip install virtualenv +RUN rm -rf /var/lib/apt-lists/* /root/.cache/pip /opnfvdocs/.git + +ADD ./entrypoint.sh /sbin/entrypoint.sh +RUN chmod 755 /sbin/entrypoint.sh + +ENTRYPOINT /sbin/entrypoint.sh -- cgit 1.2.3-korg