Skip to content

Commit 2914701

Browse files
committed
Add make docs command for building docs
Signed-off-by: Ben Firshman <[email protected]>
1 parent fff71e9 commit 2914701

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

Dockerfile-docs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:2.7
2+
3+
RUN mkdir /home/docker-py
4+
WORKDIR /home/docker-py
5+
6+
COPY docs-requirements.txt /home/docker-py/docs-requirements.txt
7+
RUN pip install -r docs-requirements.txt
8+
9+
COPY . /home/docker-py

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ build:
1313
build-py3:
1414
docker build -t docker-py3 -f Dockerfile-py3 .
1515

16+
build-docs:
17+
docker build -t docker-py-docs -f Dockerfile-docs .
18+
1619
build-dind-certs:
1720
docker build -t dpy-dind-certs -f tests/Dockerfile-dind-certs .
1821

@@ -57,3 +60,6 @@ integration-dind-ssl: build-dind-certs build build-py3
5760

5861
flake8: build
5962
docker run docker-py flake8 docker tests
63+
64+
docs: build-docs
65+
docker run -v `pwd`/docs:/home/docker-py/docs/ -p 8000:8000 docker-py-docs mkdocs serve -a 0.0.0.0:8000

docs-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mkdocs==0.9
1+
mkdocs==0.15.3

0 commit comments

Comments
 (0)