From 7873a715d1d03982a08a3a27c68369b659904ee7 Mon Sep 17 00:00:00 2001 From: Radoslaw Smigielski Date: Tue, 3 Mar 2020 06:24:14 +0000 Subject: [PATCH 1/3] How to create and run gitbook server in local container --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 6b8a92d..1565707 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,32 @@ On other languages * [Spanish](https://github.com/leolas95/linux-insides) * [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 -------------- From 67096998a71028b86d36ced6ea6bf71c7da404c5 Mon Sep 17 00:00:00 2001 From: Radoslaw Smigielski Date: Tue, 3 Mar 2020 06:28:03 +0000 Subject: [PATCH 2/3] Remove unnecessary '\' from one of example commands --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1565707..9d3ba12 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ In order to run own copy of the book with gitook using within container: ```bash docker image build \ --rm --squash \ - --label linux-insides \\ + --label linux-insides \ --tag linux-insides-book:latest \ -f Dockerfile ``` From 646a47cd4386c9b88699d086d5c16fcf22d66082 Mon Sep 17 00:00:00 2001 From: Radoslaw Smigielski Date: Tue, 3 Mar 2020 06:30:42 +0000 Subject: [PATCH 3/3] Minor README rewording --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d3ba12..539eea7 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ On other languages Docker ------ -In order to run own copy of the book with gitook using within container: +In order to run own copy of the book with gitook within local container: 1. Build container image ```bash