Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wget ack make gcc-c gcc-c++ to php-fpm images (make and gcc-c++…
… are required for #169)
- Loading branch information
1e0577b
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.
@davidalger maybe it's better to create separate image for shopware, as for instance make and gcc isn't needed for m2 installations. What do you thing?
1e0577b
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.
@ihor-sviziev Definitely a good thought, and one I considered. However, when I stepped back and considered that make and a gcc build chain here are required for Shopware 6 due to some npm packages it uses, I felt it made sense to put these in the base php-fpm images since it's more of an npm requirement than a Shopware specific one, and a requirement which could easily need to be satisfied for for PWAs for any platform.
This is what NPM has to say about it's dependencies:
Since you asked, I did a little research so I could followup here. This is the error one gets installing Shopware 6 if
make
andgcc-c++
are not present:Then I tried the same with PWA Studio. I.e. can I run yarn install without make and gcc present. Doing that resulted in the following in my output:
So all that to say, it seems this is required by PWA Studio in it's current form, and given the need for the build chain components to install babel or fsevents (something babel uses) it'll be fairly common when modern frontend stacks are in play.
1e0577b
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.
Just in case anyone else seeing this catches the typo in package names,
gcc-c
was corrected togcc
in commit fe195f4. :)