-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Use docker-compose extensively and put nodejs available so all commands works ok #1057
Use docker-compose extensively and put nodejs available so all commands works ok #1057
Conversation
@lcharette Please, could you give a try with this commands on MacOS? It works flawlessly in Ubuntu Linux 19.10. If it works and you're ok with the changes, I'll create a new version of the README.md and the docs:
And you can try this command that doesn't work in the 984 PR, because now we have nodejs installed in the "app" machine also:
The reason I changed the name from "php" to "app" is because it's no longer a php container anymore, but the container where all the commands related to the app are run (php or nodejs). Comments? |
@Silic0nS0ldier Would be nice to know your opinion on this also. Thanks! |
Codecov Report
@@ Coverage Diff @@
## hotfix #1057 +/- ##
=========================================
Coverage 66.79% 66.79%
Complexity 1933 1933
=========================================
Files 162 162
Lines 6748 6748
=========================================
Hits 4507 4507
Misses 2241 2241 Continue to review full report at Codecov.
|
Functionality and change wise this all looks fine. I still plan on eventually having a dedicated "tooling" image in the future (hope is to have development and production configurations that are similar enough to reduce chance of production specific issues). #1004 and #1004 are where these are being tracked. Haven't tested Docker for Windows under this configuration (I've got the edge Docker for Windows build with WSL2 on all my machines, so stable would still need to be tested). |
@Silic0nS0ldier Have you tried MacOS? Can somebody test this in Docker for Windows? Thanks! |
Any comment on this one? If you want to merge it, I can do the changes to the documentation. |
@ktecho There appears to be an error in the
Fix should be to replace |
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.
There is a bug in the nginx config, as said in other comment
NGINX fix did the trick, tested locally (Docker WSL2). Rather slow, but that is an existing problem that even barebone Slim sites have under my setup. |
@Silic0nS0ldier Thanks for the change. I didn't have the time to do it today. The documentation can be simplified, as |
README.md updated here. |
As discussed with @Silic0nS0ldier on the chat, I'll merge this into develop for release in UF 4.4, just in case. Same goes for #1060 |
@lcharette When are you going to merge it? I need to make changes to |
@ktecho Done. You can submit the PR for learn on the develop branch. I'll merge everything into master in a couple of days when 4.4 is fully ready. |
Sorry for jumping in late. here is a way I was handling the missing node modules in the docker build. Here are the changes I made on my side to get the docker build work consistently
|
Install nodejs alongside php so bakery bake commands can be executed.
Use docker-compose extensively so you know in which container you're running your commands.