Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildが不安定 #49

Open
T-Y89 opened this issue Jun 20, 2023 · 1 comment
Open

buildが不安定 #49

T-Y89 opened this issue Jun 20, 2023 · 1 comment

Comments

@T-Y89
Copy link
Contributor

T-Y89 commented Jun 20, 2023

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を参考に evilmartians/terraforming-rails#34

config/environments/development.rb # config.file_watcher = ActiveSupport::EventedFileUpdateChecker config.file_watcher = ActiveSupport::FileUpdateChecker にする

Gemfile.lockの中身を消す

buildにする とうまくいく(ことがある)

@T-Y89
Copy link
Contributor Author

T-Y89 commented Jun 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant