lifull-dev / bucky-management

Apache License 2.0
11 stars 12 forks source link

buildが不安定 #49

Open T-Y89 opened 1 year ago

T-Y89 commented 1 year ago

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にする とうまくいく(ことがある)

T-Y89 commented 1 year ago

根本原因の1つが docker imageがM1に対応していない