You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - I'm trying to dockerize a meteor app that uses the node-rdkafka npm module. This requires node-gyp, an npm module, to be installed globally.
I tried a few things:
Adding node-gyp to package json as a regular dependancy. Result: Successfully build the docker container.
Adding a preinstall script with npm install --global node-gyp. Result: Node-gyp fails to install globally and the docker container fails to build.
Adding a preinstall script with npm install node-gyp. Result: Node-gyp installs locally but fails to run and the docker container fails to build.\
What do you think the best way to handle npm dependancies that require node-gyp? My thought is to handle node-gyp installation like the optional dependancies and add a INSTALL_NODE_GYP build arg/launchpad.conf variable.
The text was updated successfully, but these errors were encountered:
Hi - I'm trying to dockerize a meteor app that uses the
node-rdkafka
npm module. This requires node-gyp, an npm module, to be installed globally.I tried a few things:
node-gyp
to package json as a regular dependancy. Result: Successfully build the docker container.Adding a
preinstall
script withnpm install --global node-gyp
. Result: Node-gyp fails to install globally and the docker container fails to build.Adding a
preinstall
script withnpm install node-gyp
. Result: Node-gyp installs locally but fails to run and the docker container fails to build.\What do you think the best way to handle npm dependancies that require node-gyp? My thought is to handle node-gyp installation like the optional dependancies and add a
INSTALL_NODE_GYP
build arg/launchpad.conf variable.The text was updated successfully, but these errors were encountered: