Closed ayshvab closed 5 years ago
I develop the project mainly in Linux, so everything should be ok.
What distro/version are you using?
Thanks, @asfernandes . I make npm install
after building docker container (which based on latest node.js image ) with my app. Maybe you know what is missing?
docker-compose build
db uses an image, skipping
Building back
Step 1/4 : FROM node:10
---> 8672b25e842c
Step 2/4 : ENV PROJECT_ROOT /usr/src/gdmn-back
---> Using cache
---> 14d92df37fcb
Step 3/4 : RUN npm install -g node-gyp
---> Using cache
---> ee178e29ca3f
Step 4/4 : WORKDIR $PROJECT_ROOT
---> Using cache
---> 529a8f8dc6ef
Successfully built 529a8f8dc6ef
Successfully tagged d-gdmn_back:latest
docker-compose run back npm install
Creating network "d-gdmn_default" with the default driver
Creating d-gdmn_db_1 ... done
> node-firebird-native-api@0.1.0 install /usr/src/gdmn-back/node_modules/node-firebird-native-api
> node-gyp rebuild
Does the node.js image supports node-gyp?
I think yes. Container has make
, python 2.7
and gcc
.
As stated here: https://github.com/nodejs/node-gyp#on-unix
What is g++ --version
?
g++ (Debian 4.9.2-10+deb8u1) 4.9.2
Hi, @asfernandes Package build successfully in container with linux-alpine. What can be wrong with previous container based on jessie?
Maybe too old g++?
Thanks. Work on debian stretch.
Hi, @asfernandes.
What I should add in linux case here? : https://github.com/asfernandes/node-firebird-drivers/blob/master/packages/node-firebird-native-api/binding.gyp