-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Try not to mount app directory only /public/system #4858
Conversation
Generated by 🚫 Danger |
This is passing now! I'll test it out in unstable, @jywarren please review if https://github.com/icarito/plots2/blob/not_mount_app_volume/containers/docker-compose-production.yml#L40-L45 sounds like all directories needed at runtime for writing. |
Tried this in unstable and found 404 for |
Issue was with assets precompilation. This is running in unstable now please try it out! |
Hi @icarito, please update the status of the issue. Thanks! |
Also added precompile to test-container make sequence
76014cb
to
e3837f8
Compare
@@ -38,3 +38,4 @@ WORKDIR /app | |||
|
|||
RUN yarn install && yarn upgrade | |||
RUN passenger-config compile-nginx-engine --connect-timeout 60 --idle-timeout 60 | |||
RUN rake assets:precompile && rake tmp:cache:clear |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main insight to put assets inside the Docker container. This way we can push to production without running bundler / yarn in production.
Hi! I believe this is ready for merging - it does change fundamentally how we treat assets and in particular how we access local files (specific needed directories only are "mounted") - all else will be inside the container. |
Except travis just failed on it, checking again! |
Wow it looks like since I made this, we upgraded to a version of rails that doesn't use |
There is a workaround for this detailed here:
I think we need #5422 in order to have a workaround for this. So this is stuck for the moment. |
Hi 😄, this issue has been automatically marked as stale because it has not had recent activity. Don't worry you can continue to work on this and ask @publiclab/reviewers to add "work in progress" label 🎉 . Otherwise, it will be closed if no further activity occurs in 5 days -- but you can always re-open it if you like! 💯 Thank you for your contributions 🙌 🎈. |
Intends to fix #3261 and also possibly #4849 and other issues arising from mountint the app dir as a volume in container.
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!