Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megane42/docker-gitbook
docker container for build and serve gitbook
https://github.com/megane42/docker-gitbook
Last synced: 22 days ago
JSON representation
docker container for build and serve gitbook
- Host: GitHub
- URL: https://github.com/megane42/docker-gitbook
- Owner: megane42
- License: mit
- Created: 2018-01-30T09:16:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T09:26:31.000Z (almost 7 years ago)
- Last Synced: 2024-11-07T22:13:01.414Z (2 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-gitbook
## Usage
### Build a Docker Image
Only if you want to build an image at localhost (especially inside of proxy).
```
docker build -t megane42/gitbook \
--build-arg http_proxy=${http_proxy} \
--build-arg HTTP_PROXY=${HTTP_PROXY} \
--build-arg https_proxy=${https_proxy} \
--build-arg HTTPS_PROXY=${HTTPS_PROXY} \
.
```### Build Document
```
cd /path/to/your/gitbook/root/
docker run --rm -v ${PWD}:/work -w /work megane42/gitbook build
```### Serve Document
```
cd /path/to/your/gitbook/root/
docker run --init --rm -p 4000:4000 -v ${PWD}:/work -w /work megane42/gitbook serve
```* Don't forget `--init` , or you can't exit the server by `Ctrl-C`.
* Node.js app, such as gitbook, ignores SYGTERM when it has PID 1 ([see](https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#handling-kernel-signals)).## Why So Old Gitbook?
* For [this bug](https://github.com/GitbookIO/theme-default/issues/28).
## License
* MIT