Some npm packages have additional dependencies outside the npm scope. For example the puppeteer npm package will download a recent version of Chromium. Chromium in its place depends on packages being present on the system it runs on.
When running ldd chrome | grep not it comes clear that the required packages are missing in this s2i. For example; libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 etc...
- Are the any plans, or did I miss it in the docs how to install additional packages for the system? Via something similar as other
s2i's have like a requirements.txt?
- I also came across the possibility to extend the
assemble script but I doubt if that is the proper way... because it may require sudo... (?)
Extending the assemble script by creating an .s2i/bin/assemble in the source of my project and add something like;
echo "Before assembling"
yum install libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 ...
/usr/libexec/s2i/assemble
rc=$?
if [ $rc -eq 0 ]; then
echo "After successful assembling"
else
echo "After failed assembling"
fi
exit $rc
Some
npm packageshave additional dependencies outside thenpmscope. For example thepuppeteernpm package will download a recent version of Chromium. Chromium in its place depends on packages being present on the system it runs on.When running
ldd chrome | grep notit comes clear that the required packages are missing in thiss2i. For example;libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64etc...s2i's have like arequirements.txt?assemblescript but I doubt if that is the proper way... because it may requiresudo... (?)Extending the
assemblescript by creating an.s2i/bin/assemblein the source of my project and add something like;