Skip to content

Commit

Permalink
docker: fallback to regular file polling
Browse files Browse the repository at this point in the history
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]: evilmartians/terraforming-rails#34 (comment)
  • Loading branch information
freesteph committed Feb 6, 2024
1 parent 73fe810 commit e946bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e946bb4

Please sign in to comment.