Files
docker-docs/docs/build.sh
Sven Dowideit dec31d9cd8 Spelling error in naming the image built
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-02-26 09:51:30 +10:00

12 lines
367 B
Bash
Executable File

#!/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="swarm-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