如何增加 Google Cloud Build 中的 inotify 观察者数量?

mjg*_*lag 2 google-cloud-platform google-cloud-build

  • RUN cat /proc/sys/fs/inotify/max_user_watches524288码头工人的Mac
  • RUN cat /proc/sys/fs/inotify/max_user_watches8192谷歌云构建计划的多克

请参阅https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details以供参考。

mjg*_*lag 6

Google Cloud Build 以特权模式运行 docker 容器,因此您只需将此步骤添加到cloudbuild.yaml.

- name: 'ubuntu'
  args: ['sh', '-c', 'sysctl fs.inotify.max_user_watches=524288']
Run Code Online (Sandbox Code Playgroud)