From a2faac2168c2630683f8097aeaf9e5cdb57d561e Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 26 Apr 2018 14:29:20 +0200 Subject: util/docker: Add docker container that builds the sphinx documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's what we use on coreboot.org to update www.coreboot.org/Documentation Change-Id: I6e5457d2e39a10f14fabd68bbb231a05e2f66f1d Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/25869 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Neuschäfer Reviewed-by: Philipp Deppenwiese Reviewed-by: Martin Roth Reviewed-by: Paul Menzel --- util/docker/docs.coreboot.org/Dockerfile | 5 +++++ util/docker/docs.coreboot.org/README.md | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 util/docker/docs.coreboot.org/Dockerfile create mode 100644 util/docker/docs.coreboot.org/README.md (limited to 'util/docker') diff --git a/util/docker/docs.coreboot.org/Dockerfile b/util/docker/docs.coreboot.org/Dockerfile new file mode 100644 index 0000000000..fa2313cabc --- /dev/null +++ b/util/docker/docs.coreboot.org/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:sid +RUN apt-get update && apt-get install -y make python-sphinx python-recommonmark python-sphinx-rtd-theme +USER nobody +VOLUME /data-in /data-out +ENTRYPOINT bash -c "cd /data-in/Documentation && make sphinx BUILDDIR=/tmp/build && rm -rf /data-out/* && mv /tmp/build/html/* /data-out/" diff --git a/util/docker/docs.coreboot.org/README.md b/util/docker/docs.coreboot.org/README.md new file mode 100644 index 0000000000..11c095d18e --- /dev/null +++ b/util/docker/docs.coreboot.org/README.md @@ -0,0 +1,3 @@ +How to use: + +docker run --rm -v $path-to-coreboot.git:/data-in:ro -v $path-to-html-output:/data-out $image -- cgit v1.2.3