From ad3f1b4b89bae6daad67e7bc34e358d2a21e0f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Tue, 24 Oct 2023 17:59:37 +0200 Subject: [PATCH 1/2] Enable incremental builds in docker-compose.yml Because regenerating the whole thing is too slow. --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f5083869896..1c5d6241782 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,9 @@ services: jekyll: image: bretfisher/jekyll-serve + # Add --incremental to the commandline + # https://github.com/BretFisher/jekyll-serve/blob/2119a31476e1c6004a4bea4739b9160fc73e7bda/Dockerfile#L27C5-L27C94 + command: [ "bundle", "exec", "jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000", "--incremental" ] volumes: - .:/site ports: From ae1786cf0df3ae70e0631cd15de07d042cc8e0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 25 Oct 2023 14:59:39 +0200 Subject: [PATCH 2/2] Avoid permission problems related to cgroups in docker-compose.yml --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1c5d6241782..1855245a2b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,6 @@ services: # https://github.com/BretFisher/jekyll-serve/blob/2119a31476e1c6004a4bea4739b9160fc73e7bda/Dockerfile#L27C5-L27C94 command: [ "bundle", "exec", "jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000", "--incremental" ] volumes: - - .:/site + - .:/site:Z ports: - '4000:4000'