unee-t / frontend

Meteor front end

Home Page:https://case.dev.unee-t.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue while building meteor - Missing dependancies

franck-boullier opened this issue · comments

When deploying the image, we get an warning message as such.
See this Travis CI build for a example of that error.

image

In Travis CI, implementing the suggest solution from the warning message
meteor npm install --save bcrypt
image
has no effect

Googling the problem leads to a known Issue on the Meteor git Repo.

The solution seems to be :

Make sure you have the node-gyp build tools installed before installing bcrypt .

bcrypt needs to build a binary, and the tools needed to do that are not installed on systems by default.

TODO:

Check how we can change our .travis.yml and Dockerfile files to make sure that make sure you have the node-gyp build tools installed

meteor npm install --save bcrypt is not happening in Docker, it is happening in the Travis environment (hence this bug title is wrong): https://travis-ci.org/unee-t/frontend/jobs/647164051/config

The solution which I am working on #894 is to make sure that the build and tests happen all within a controlled Dockerfile instead of the Travis environment of language: node_js which can change IIUC and is probably the cause of these issues. i.e. Node was updated etc.