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
Post-merge Docker Compose cleanup issues #3083
Post-merge Docker Compose cleanup issues #3083
Conversation
Blimey I just realised what you're trying to do and why you can't use rake to do the yarn install - you're trying to cherry pick what files to map into the container! Yes of course that won't work, but it's completely unsuppported to try and install the gems and node modules in this way. The docker configuration needs to follow the normal installation instructions to build the image, not make up crazy stuff of it's own... |
What app code is needed? I would have expected |
Well the first thing that fails is that Basically it's working in an environment where only |
I even wonder where it's installing the node modules to? Normally they get installed locally to |
Yes, that’s right: it wants the Rakefile, then it wants more. When I tried to resolve this chain, it was transforming the Dockerfile from a working install of the host’s local Ruby code for development purposes to a self-contained deployment container that wouldn't help developers make and preview changes. There might be a role for the latter but I can’t tell if it’s possible to support in the same container! Node modules go into a non-global openstreetmap-website/docker-compose.yml Lines 9 to 11 in afce133
|
I can't reproduce the bootsnap issues, either using podman on Fedora or using real docker on Ubuntu. I can remove all the BOOTSNAP_ENABLE stuff and it still works... |
I just tested the old ENABLE_BOOTSNAP problem on Mac and under Github Actions, and the |
We'll probably take the db function topic to a new issue, as @gravitystorm raised some concerns why they still would be needed. By the way, migrations did pass even without db functions in my tests earlier today. I don't recall the ENABLE_BOOTSTRAP specifics either, but I think I experienced the same issue at one point. |
b6ecf45
to
a3e2309
Compare
I rebased this PR to keep it current. |
Thanks @migurski . I'm going to merge this PR since everything here looks like an improvement to me - even if the yarn:install stuff is still not ideal. |
thanks @gravitystorm! |
Follow up to Tom’s review comments in #2409 (review):
/usr/local/share/
since they’re still necessary per Add Docker Compose Support for Development Environment #2409 (comment)yarnpkg install
is still required sincebundle exec
will not work without additional app code present during Docker build step. The old option here was to leave the yarn step for the end-user after app installation, but I think it’s better more of the build process to be automated within the DockerfileCloses #3081