Node-red docker container and puppeteer

I am migrating my node-red from bare metal to docker container. I have mounted my puppeteer scrips on node-red container and i can see the files (and node-modules folder correctly).
On my bare metal, I launch puppeteer scripts using node-red's exec node. However under docker container, puppeteer doesn't work and invocation throws some error. My guess is it is because of some system libraries missing on slimmed down alpine. So I have two options - (1) either somehow execute shell on host system using named pipes (2) or execute node inside container.

My preference is for (2). On debian systems, interweb says following dependencies need to be installed..

sudo apt-get install -y gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

not sure how i get it working in alpine container. Any ideas ?

Or look at our node-red-docker project on GitHub and rebuild your own custom Debian based container

My FlexDash docker write-up has quite some how-to to install stuff in the container before Node-RED launches while using the official docker images (i.e., no building your own). The examples there are about running npm install before NR launches but you can just as easily run apt-get or apk add.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.