increase fs.inotify.max_user_watches to run wb2 tests
[arvados-dev.git] / jenkins / packer-images / jenkins-image-arvados-tests.sh
index 5fadb5d5be3f829231d18e08dde27da36a8a17a8..5736ed1fbc5d75b6538ac42df35908ea2c36c11d 100755 (executable)
@@ -36,6 +36,10 @@ sudo go run ./cmd/arvados-server install -type test
 # This is used in our test suite.
 echo user_allow_other | sudo tee -a /etc/fuse.conf
 
+# React uses a lot of filesystem watchers (via inotify). Increase the default
+# so we have a higher limit at runtime.
+echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
+
 # Our Jenkins jobs use this directory to store the temporary files for the tests
 mkdir /home/jenkins/tmp