Open franck-boullier opened 4 years ago
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 https://github.com/unee-t/frontend/pull/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.
When deploying the image, we get an warning message as such. See this Travis CI build for a example of that error.
In Travis CI, implementing the suggest solution from the warning message
has no effect
meteor npm install --save bcrypt
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
andDockerfile
files to make sure that make sure you have the node-gyp build tools installed