Merge pull request #1001 from SvenDowideit/build-docs-in-local-fig-repo

add ./script/doc to build fig documentation using the docs.docker.com to...
This commit is contained in:
Ben Firshman
2015-02-23 22:45:59 +00:00
11 changed files with 44 additions and 11 deletions

11
script/docs Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -ex
# import the existing docs build cmds from docker/docker
DOCSPORT=8000
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
DOCKER_DOCS_IMAGE="compose-docs$GIT_BRANCH"
DOCKER_RUN_DOCS="docker run --rm -it -e NOCACHE"
docker build -t "$DOCKER_DOCS_IMAGE" -f docs/Dockerfile .
$DOCKER_RUN_DOCS -p $DOCSPORT:8000 "$DOCKER_DOCS_IMAGE" mkdocs serve