Open mr-feek opened 4 years ago
There are pros and cons of having them in different containers, it's more of a personal choice I guess.
Pros of having different containers:
Cons:
ignore-platform-reqs
Composer container cannot check for installed PHP dependencies, so need to use ignore-platform-reqs
In my case, this was the (breaking) con. For example, my project requires the bcmath extension to be installed. I rely on composer to ensure that the current environment has that installed.
I was also getting this console output when using the composer container. Maybe it was using composer 2 or something that no longer has the flag? I'm not sure, I didn't dig into it.
The options (as I see them) are to:
Do we need an additional container just for composer? I have several extensions I am installing in my php container, which should also be installed in the composer container. I personally am going to remove the composer container. What is the main benefit of having a container just for composer?