From e946bb4e57343f2774b7ac0e535de29b393a5395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Maniaci?= Date: Mon, 5 Feb 2024 23:14:23 +0100 Subject: [PATCH] docker: fallback to regular file polling Apple M1 + Docker + OSX < 13 = trouble with filesystem listening because of QEMU-based emulation something something, see further details on the issue. In the meantime disable inotify which makes performance much better when firing up Guard and other commands in Docker. [1]: https://github.com/evilmartians/terraforming-rails/issues/34#issuecomment-1374278744 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d98fd34e1..843aa334b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DOCKER-RUN = docker-compose run -e TERM --rm --entrypoint="" +DOCKER-RUN = docker-compose run -e TERM -e DISABLE_SPRING_WATCHER_LISTEN=1 --rm --entrypoint="" BUNDLE-EXEC = bundle exec build: @@ -18,7 +18,7 @@ sh: $(DOCKER-RUN) web $(BUNDLE-EXEC) bash guard: - $(DOCKER-RUN) web $(BUNDLE-EXEC) guard + $(DOCKER-RUN) web $(BUNDLE-EXEC) guard -p lint: $(DOCKER-RUN) web $(BUNDLE-EXEC) rubocop