1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 06:38:07 +00:00

How to create and run gitbook server in local container

This commit is contained in:
Radoslaw Smigielski 2020-03-03 06:24:14 +00:00
parent 9fa85802fe
commit 7873a715d1

View File

@ -43,6 +43,32 @@ On other languages
* [Spanish](https://github.com/leolas95/linux-insides) * [Spanish](https://github.com/leolas95/linux-insides)
* [Turkish](https://github.com/ayyucedemirbas/linux-insides_Turkish) * [Turkish](https://github.com/ayyucedemirbas/linux-insides_Turkish)
Docker
------
In order to run own copy of the book with gitook using within container:
1. Build container image
```bash
docker image build \
--rm --squash \
--label linux-insides \\
--tag linux-insides-book:latest \
-f Dockerfile
```
1. Create and run book in local container
```bash
docker run \
--detach \
--rm \
-p 4000:4000 \
--name linux-insides-book \
--hostname linux-insides-book \
localhost/linux-insides-book
```
1. Open your local copy of linux insides book under this url
http://127.0.0.1:4000
Contributions Contributions
-------------- --------------