From 8af8c3fe904c8cd52aaed7968165cd9242d7f4bc Mon Sep 17 00:00:00 2001 From: Marcos Nils Date: Thu, 17 Oct 2019 22:17:00 +0100 Subject: [PATCH] Create .bundle and set group when running container (#7684) If this is not set, `make website` fails due to permission errors in the docker container Fixes #5589. --- website/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/Makefile b/website/Makefile index 7e6d8ca0c8..a851666581 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,5 +1,5 @@ configure-cache: - @mkdir -p tmp/cache + @mkdir -p tmp/cache .bundle build: configure-cache @echo "==> Starting build in Docker..." @@ -9,6 +9,7 @@ build: configure-cache --tty \ --volume "$(shell pwd):/opt/buildhome/repo" \ --volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \ + --user buildbot:$(shell id -g) \ --env "ENV=production" \ netlify/build \ build "sh bootstrap.sh && middleman build --verbose" @@ -21,6 +22,7 @@ website: configure-cache --tty \ --volume "$(shell pwd):/opt/buildhome/repo" \ --volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \ + --user buildbot:$(shell id -g) \ --publish "4567:4567" \ --publish "35729:35729" \ --env "ENV=production" \