-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Webpack broken on docker #2030
Comments
@Batey96 is there any chance you would be willing to help us + @tabshaikh with this docker + webpack issue and see if you can reproduce? The request is to build the latest Open Library docker (https://github.com/internetarchive/openlibrary/tree/master/docker), see if you hit any errors, and if so, document it here (with your summary or a screenshot) This would be a huge help! |
@tabshaikh @mekarpeles I suspect this may be caused by running |
I have been able to reproduce this -- the images build correctly and uses webpack, but trying to run
regardless of running as I think the problem is that we are using a persistent volume to store It looks like this volume isn't getting updated when the image is rebuilt. I'm not yet sure of the best way to fix this and have a working The workaround will be to manually delete the Delete the volume with: There should be a better way to handle this automatically if the package.json file updates in future though. @tabshaikh, can you please let me know whether this workaround unblocks you? |
UPDATE You shouldn't need to rebuild the images: |
found by @cdrini : https://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html a guide on how this problem was handled in 2016 on another project. They use the same kind of volume mount trick, but using non-named / non-persistent volumes. I will investigate whether moving back to non-named volumes will guarantee they are created fresh every The article has a very good description of the node_modules problem in the section "The node_modules Volume Trick" and how mounting the local dev dir overwrites the installed image modules with the empty host |
@hornc Thanks, the commands work perfectly |
@tabshaikh can you please provide screenshots here of the error you're hitting so we can help you debug?
@cdrini I'm assigning to you as deputy of docker / dev; feel free to ask on #openlibrary-g if anyone can help debug and re-assign
cc: @hornc. Our job is to make sure this issue gets assigned to someone (if not @cdrini).
The text was updated successfully, but these errors were encountered: