Skip to content

Commit

Permalink
Add docker stack for building documentation locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 7, 2020
1 parent f49c1ca commit 54d2559
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ phpunit.xml.dist export-ignore
infection.json.dist export-ignore
grumphp.yml.dist export-ignore
phpspec.yml.dist export-ignore
/docker export-ignore
docker-composer.yaml export-ignore
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3"

services:
doc:
container_name: sphinx_documentation
build: docker/doc
volumes:
- ./docs:/etc/Sphinx/source
ports:
- 8100:80
11 changes: 11 additions & 0 deletions docker/doc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM alpine:latest
WORKDIR /etc/
RUN mkdir -p /etc/Sphinx/build

RUN apk add --no-cache python3 py3-pip make git

RUN pip3 install git+https://github.com/sphinx-doc/sphinx
RUN pip3 install sphinx-autobuild
RUN pip3 install sphinx-rtd-theme

CMD sphinx-autobuild -b html --host 0.0.0.0 --port 80 /etc/Sphinx/source /etc/Sphinx/build

0 comments on commit 54d2559

Please sign in to comment.