Unable to load application: Errno::ENOSYS: Function not implemented - Failed to initialize inotify 2023-06-20 14:11:27 bundler: failed to load command: puma (/usr/local/bundle/bin/puma) 2023-06-20 14:11:27 /usr/local/bundle/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:69:in initialize': Function not implemented - Failed to initialize inotify (Errno::ENOSYS)`
buildがかなり不安定&時間がかかる キャッシュなしで実行した場合
[8/8] RUN echo 'gem: --no-document' >> ~/.gemrc && cp ~/.gemrc /etc/gemrc && chmod uog+r /etc で
672.0s
くらいかかってしまう
また以下のエラーになることも多い
Unable to load application: Errno::ENOSYS: Function not implemented - Failed to initialize inotify 2023-06-20 14:11:27 bundler: failed to load command: puma (/usr/local/bundle/bin/puma) 2023-06-20 14:11:27 /usr/local/bundle/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:69:in initialize': Function not implemented - Failed to initialize inotify (Errno::ENOSYS)`
以下のisuueを参考に https://github.com/evilmartians/terraforming-rails/issues/34
config/environments/development.rb # config.file_watcher = ActiveSupport::EventedFileUpdateChecker config.file_watcher = ActiveSupport::FileUpdateChecker にする
Gemfile.lockの中身を消す
buildにする とうまくいく(ことがある)