Add make docs command for building docs

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman 2016-09-05 19:21:09 +02:00
parent fff71e9dbf
commit 291470146f
No known key found for this signature in database
GPG Key ID: 18296449E36D2F1E
3 changed files with 16 additions and 1 deletions

9
Dockerfile-docs Normal file
View File

@ -0,0 +1,9 @@
FROM python:2.7
RUN mkdir /home/docker-py
WORKDIR /home/docker-py
COPY docs-requirements.txt /home/docker-py/docs-requirements.txt
RUN pip install -r docs-requirements.txt
COPY . /home/docker-py

View File

@ -13,6 +13,9 @@ build:
build-py3:
docker build -t docker-py3 -f Dockerfile-py3 .
build-docs:
docker build -t docker-py-docs -f Dockerfile-docs .
build-dind-certs:
docker build -t dpy-dind-certs -f tests/Dockerfile-dind-certs .
@ -57,3 +60,6 @@ integration-dind-ssl: build-dind-certs build build-py3
flake8: build
docker run docker-py flake8 docker tests
docs: build-docs
docker run -v `pwd`/docs:/home/docker-py/docs/ -p 8000:8000 docker-py-docs mkdocs serve -a 0.0.0.0:8000

View File

@ -1 +1 @@
mkdocs==0.9
mkdocs==0.15.3