Unverified Kaydet (Commit) 29147014 authored tarafından Ben Firshman's avatar Ben Firshman

Add make docs command for building docs

Signed-off-by: 's avatarBen Firshman <ben@firshman.co.uk>
üst fff71e9d
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
...@@ -13,6 +13,9 @@ build: ...@@ -13,6 +13,9 @@ build:
build-py3: build-py3:
docker build -t docker-py3 -f Dockerfile-py3 . docker build -t docker-py3 -f Dockerfile-py3 .
build-docs:
docker build -t docker-py-docs -f Dockerfile-docs .
build-dind-certs: build-dind-certs:
docker build -t dpy-dind-certs -f tests/Dockerfile-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 ...@@ -57,3 +60,6 @@ integration-dind-ssl: build-dind-certs build build-py3
flake8: build flake8: build
docker run docker-py flake8 docker tests 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment