Since inotify limits cannot be raised in the Circle 2.0 docker, Iāve gotten successful builds (and deploys with exp publish) by using a machine build (set machine: true) in config.ymlā¦ and (for my project) installing yarn as part of the build. Iāve left these changes only on the deploy branch.
version: 2
jobs:
build:
# Allow increase of inotify limit to support watchman for exp publish.
# This should only be on the deploy branch.
# See https://circleci.com/docs/2.0/executor-types/
machine: true
steps:
...
- run: |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
- run: yarn install
Good luck. Itās an unfortunate limitation in the environment for docker in CircleCI 2.0. Hope they fix it soon.