Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing native node modules #73

Open
luzlab opened this issue Oct 24, 2017 · 0 comments · May be fixed by #75
Open

Installing native node modules #73

luzlab opened this issue Oct 24, 2017 · 0 comments · May be fixed by #75

Comments

@luzlab
Copy link
Contributor

luzlab commented Oct 24, 2017

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:

  1. Adding node-gyp to package json as a regular dependancy. Result: Successfully build the docker container.

screen shot 2017-10-24 at 10 40 14 am

  1. Adding a preinstall script with npm install --global node-gyp. Result: Node-gyp fails to install globally and the docker container fails to build.

  2. 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.\

screen shot 2017-10-24 at 10 38 25 am

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.

@luzlab luzlab linked a pull request Oct 27, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant