increase fs.inotify.max_user_watches to run wb2 tests
[arvados-dev.git] / jenkins / packer-images / jenkins-image-with-docker.sh
index cb279567810ba65156ef7b46b302fd0b9f03a067..a24c23de0001faf62ae8e8862e92de3815335b08 100755 (executable)
@@ -20,3 +20,7 @@ sudo mv packer /usr/local/bin/
 cd /usr/local
 sudo git clone --depth 1 https://github.com/arvados/arvados-dev
 sudo chown -R jenkins:jenkins /usr/local/arvados-dev/
+
+# 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