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

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

Open
Narayan-Gopalappa opened this issue Aug 23, 2018 · 0 comments

Comments

@Narayan-Gopalappa
Copy link

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

  • [email protected]
    added 278 packages, removed 363 packages and updated 41 packages in 25.943s
    Removing intermediate container e7ea934fdb9c
    ---> 2c842a1064f4
    Step 4/10 : RUN apk update && apk add --virtual build-dependencies build-base gcc eudev-dev linux-headers wget git python && apk add bash
    ---> Running in 5bc64d89b6e6
    fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
    fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
    v3.6.2-389-g0330746cad [http://dl-cdn.alpinelinux.org/alpine/v3.6/main]
    v3.6.2-356-g4986359204 [http://dl-cdn.alpinelinux.org/alpine/v3.6/community]
    OK: 8439 distinct packages available
    (1/42) Installing binutils-libs (2.30-r1)
    (2/42) Installing binutils (2.30-r1)
    (3/42) Installing gmp (6.1.2-r0)
    (4/42) Installing isl (0.17.1-r0)
    (5/42) Installing libgomp (6.3.0-r4)
    (6/42) Installing libatomic (6.3.0-r4)
    (7/42) Installing pkgconf (1.3.7-r0)
    (8/42) Installing mpfr3 (3.1.5-r0)
    (9/42) Installing mpc1 (1.0.3-r0)
    (10/42) Installing gcc (6.3.0-r4)
    (11/42) Installing musl-dev (1.1.16-r14)
    (12/42) Installing libc-dev (0.7.1-r0)
    (13/42) Installing g++ (6.3.0-r4)
    (14/42) Installing make (4.2.1-r0)
    (15/42) Installing fortify-headers (0.8-r0)
    (16/42) Installing build-base (0.5-r0)
    (17/42) Installing udev-init-scripts (32-r0)
    Executing udev-init-scripts-32-r0.post-install
    (18/42) Installing eudev-libs (3.2.2-r1)
    (19/42) Installing libuuid (2.28.2-r2)
    (20/42) Installing libblkid (2.28.2-r2)
    (21/42) Installing xz-libs (5.2.3-r0)
    (22/42) Installing kmod (23-r1)
    (23/42) Installing eudev (3.2.2-r1)
    (24/42) Installing eudev-dev (3.2.2-r1)
    (25/42) Installing linux-headers (4.4.6-r2)
    (26/42) Installing wget (1.19.5-r0)
    (27/42) Installing ca-certificates (20161130-r2)
    (28/42) Installing libssh2 (1.8.0-r1)
    (29/42) Installing libcurl (7.61.0-r0)
    (30/42) Installing expat (2.2.0-r1)
    (31/42) Installing pcre (8.41-r0)
    (32/42) Installing git (2.13.7-r0)
    (33/42) Installing libbz2 (1.0.6-r5)
    (34/42) Installing libffi (3.2.1-r3)
    (35/42) Installing gdbm (1.12-r0)
    (36/42) Installing ncurses-terminfo-base (6.0_p20171125-r1)
    (37/42) Installing ncurses-terminfo (6.0_p20171125-r1)
    (38/42) Installing ncurses-libs (6.0_p20171125-r1)
    (39/42) Installing readline (6.3.008-r5)
    (40/42) Installing sqlite-libs (3.20.1-r2)
    (41/42) Installing python2 (2.7.15-r0)
    (42/42) Installing build-dependencies (0)
    Executing busybox-1.26.2-r11.trigger
    Executing ca-certificates-20161130-r2.trigger
    OK: 237 MiB in 57 packages
    (1/1) Installing bash (4.3.48-r1)
    Executing bash-4.3.48-r1.post-install
    Executing busybox-1.26.2-r11.trigger
    OK: 237 MiB in 58 packages
    Removing intermediate container 5bc64d89b6e6
    ---> 458ed7beb89d
    Step 5/10 : WORKDIR /usr/src/app
    ---> Running in bd0ec8348357
    Removing intermediate container bd0ec8348357
    ---> 1c00265f0300
    Step 6/10 : COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
    ---> 515e3e5de652
    Step 7/10 : RUN npm install --production --unsafe-perm
    ---> Running in d921849f1c7e

[email protected] install /usr/src/app/node_modules/uws
node-gyp rebuild > build_log.txt 2>&1 || exit 0

[email protected] 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 [email protected] and [email protected] (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'

[email protected] 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::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value*) 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 [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: 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

@akx akx mentioned this issue Aug 28, 2019
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

No branches or pull requests

1 participant