ApiDoc container with iNotify to build doc on file change
1.7K
ApiDoc container with inotify feature to rebuild documentation on file change.
# Build
$ docker build -t apidoc .
# Create shared volume
$ docker volume create apidoc
# Clone the ApiDoc example documentation
$ git clone https://github.com/apidoc/apidoc.git
$ cd apidoc/example
# Run API Doc
$ docker run -d \
--name=apidoc \
-v $PWD:/src:ro \
-v apidoc:/dest \
apidoc --input=/src --output=/dest
# Run Nginx
$ docker run -d \
--name=nginx \
-v apidoc:/usr/share/nginx/html:ro \
-p 8080:80 \
nginx:alpine
If running on OSX, iNotify will not work as expected as the events doesn't get correcty propagated.
Content type
Image
Digest
Size
24.5 MB
Last updated
over 8 years ago
docker pull etiennetremel/apidoc