Applies settings from sysctl conf file. Refs #21461
[arvados-dev.git] / jenkins / packer-images / jenkins-image-with-docker.sh
index cb279567810ba65156ef7b46b302fd0b9f03a067..fbc2e930f4d98488b827f7649cb24fc27009fe4d 100755 (executable)
@@ -20,3 +20,8 @@ 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
+sysctl -p
\ No newline at end of file