noble / node-bluetooth-hci-socket

MIT License
153 stars 188 forks source link

Alpine Docker Build: In BluetoothHciSocket.cpp, deprecated classes - Local #100

Open Narayan-Gopalappa opened 6 years ago

Narayan-Gopalappa commented 6 years ago

docker build --rm -f Dockerfile -t manufacturing_client:latest . Sending build context to Docker daemon 2.084MB Step 1/10 : FROM node:8.11.3-alpine ---> ca148a52ea10 Step 2/10 : ENV NODE_ENV production ---> Using cache ---> f93d8c8f4345 Step 3/10 : RUN npm i npm@latest -g ---> Running in e7ea934fdb9c /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js

uws@0.14.5 install /usr/src/app/node_modules/uws node-gyp rebuild > build_log.txt 2>&1 || exit 0

usb@1.3.1 install /usr/src/app/node_modules/usb node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings-v1.3.1-node-v57-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for usb@1.3.1 and node@8.11.3 (node-v57 ABI, musl) (falling back to source compile with node-gyp) make: Entering directory '/usr/src/app/node_modules/usb/build' CC(target) Release/obj.target/libusb/libusb/libusb/core.o CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o CC(target) Release/obj.target/libusb/libusb/libusb/io.o CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o CC(target) Release/obj.target/libusb/libusb/libusb/sync.o CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o AR(target) Release/obj.target/usb.a COPY Release/usb.a CXX(target) Release/obj.target/usb_bindings/src/node_usb.o CXX(target) Release/obj.target/usb_bindings/src/device.o CXX(target) Release/obj.target/usb_bindings/src/transfer.o SOLINK_MODULE(target) Release/obj.target/usb_bindings.node COPY Release/usb_bindings.node COPY /usr/src/app/node_modules/usb/src/binding/usb_bindings.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/usr/src/app/node_modules/usb/build'

bluetooth-hci-socket@0.5.1 install /usr/src/app/node_modules/bluetooth-hci-socket node-gyp rebuild

make: Entering directory '/usr/src/app/node_modules/bluetooth-hci-socket/build' CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o *../src/BluetoothHciSocket.cpp: In member function 'void BluetoothHciSocket::emitErrnoError()': ../src/BluetoothHciSocket.cpp:275:72: warning: 'v8::Local v8::Function::NewInstance(int, v8::Local) const' is deprecated: Use maybe version [-Wdeprecated-declarations] Local error = errorConstructor->NewInstance(1, constructorArgs); ^ In file included from /root/.node-gyp/8.11.3/include/node/v8.h:26:0, from /root/.node-gyp/8.11.3/include/node/node.h:63, from /root/.node-gyp/8.11.3/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /root/.node-gyp/8.11.3/include/node/v8.h:3847:31: note: declared here Local NewInstance(int argc, Local argv[]) const); ^ /root/.node-gyp/8.11.3/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator attribute((deprecated(message)))** ^~~~~~ SOLINK_MODULE(target) Release/obj.target/binding.node COPY Release/binding.node make: Leaving directory '/usr/src/app/node_modules/bluetooth-hci-socket/build' npm WARN ManufacturingClient@1.0.0 No repository field. npm WARN ManufacturingClient@1.0.0 No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 234 packages from 158 contributors and audited 2077 packages in 32.267s found 24 vulnerabilities (14 low, 9 moderate, 1 high) run npm audit fix to fix them, or npm audit for details Removing intermediate container d921849f1c7e ---> f371bcf7a6d5 Step 8/10 : COPY . . ---> cf52172afba3 Step 9/10 : EXPOSE 8081 ---> Running in 71af7c7f2d98 Removing intermediate container 71af7c7f2d98 ---> 0cb00d5fa56c Step 10/10 : CMD [ "npm", "start" ] ---> Running in 23268576863b Removing intermediate container 23268576863b ---> c81af2b54404 Successfully built c81af2b54404 Successfully tagged manufacturing_client:latest