Skip to content

Commit

Permalink
Add make docs command for building docs
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Firshman <[email protected]>
  • Loading branch information
bfirsh committed Sep 5, 2016
1 parent fff71e9 commit 2914701
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Dockerfile-docs
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mkdocs==0.9
mkdocs==0.15.3

0 comments on commit 2914701

Please sign in to comment.