-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Environment Information
- OS [e.g. Mac, Arch, Windows 10]: linux container based on
node:18.17.0-bullseye-slim
- Node Version [e.g. 8.2.1]: 18.17.0
- NPM Version [e.g. 5.4.2]: N/A
- C++ Toolchain [e.g. Visual Studio, llvm, g++]: ldd (Debian GLIBC 2.31-13+deb11u6) 2.31
- confluent-kafka-javascript version [e.g. 2.3.3]: 1.0.0
Steps to Reproduce
Create this dockerfile:
FROM node:18.17.0-bullseye-slim
WORKDIR /app
RUN ldd --version
RUN npm install @confluentinc/kafka-javascript@1.0.0
RUN node -r @confluentinc/kafka-javascript
Then run a docker build:
$ docker build . --no-cache --progress=plain
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 235B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/node:18.17.0-bullseye-slim
#3 DONE 0.0s
#4 [1/5] FROM docker.io/library/node:18.17.0-bullseye-slim
#4 DONE 0.0s
#5 [2/5] WORKDIR /app
#5 CACHED
#6 [3/5] RUN ldd --version
#6 0.171 ldd (Debian GLIBC 2.31-13+deb11u6) 2.31
#6 0.171 Copyright (C) 2020 Free Software Foundation, Inc.
#6 0.171 This is free software; see the source for copying conditions. There is NO
#6 0.171 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#6 0.171 Written by Roland McGrath and Ulrich Drepper.
#6 DONE 0.2s
#7 [4/5] RUN npm install @confluentinc/kafka-javascript@1.0.0
#7 1.987 npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#7 2.010 npm WARN deprecated are-we-there-yet@2.0.0: This package is no longer supported.
#7 2.036 npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#7 2.036 npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#7 2.041 npm WARN deprecated npmlog@5.0.1: This package is no longer supported.
#7 2.042 npm WARN deprecated gauge@3.0.2: This package is no longer supported.
#7 3.134
#7 3.134 added 61 packages in 3s
#7 3.134
#7 3.134 4 packages are looking for funding
#7 3.134 run `npm fund` for details
#7 3.135 npm notice
#7 3.135 npm notice New major version of npm available! 9.6.7 -> 11.0.0
#7 3.135 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v11.0.0>
#7 3.135 npm notice Run `npm install -g npm@11.0.0` to update!
#7 3.135 npm notice
#7 DONE 3.3s
#8 [5/5] RUN node -r @confluentinc/kafka-javascript
#8 0.243 /app/node_modules/bindings/bindings.js:121
#8 0.243 throw e;
#8 0.243 ^
#8 0.243
#8 0.243 Error: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /app/node_modules/@confluentinc/kafka-javascript/build/Release/confluent-kafka-javascript.node)
#8 0.243 at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
#8 0.243 at Module.load (node:internal/modules/cjs/loader:1119:32)
#8 0.243 at Module._load (node:internal/modules/cjs/loader:960:12)
#8 0.243 at Module.require (node:internal/modules/cjs/loader:1143:19)
#8 0.243 at require (node:internal/modules/cjs/helpers:110:18)
#8 0.243 at bindings (/app/node_modules/bindings/bindings.js:112:48)
#8 0.243 at Object.<anonymous> (/app/node_modules/@confluentinc/kafka-javascript/librdkafka.js:10:32)
#8 0.243 at Module._compile (node:internal/modules/cjs/loader:1256:14)
#8 0.243 at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
#8 0.243 at Module.load (node:internal/modules/cjs/loader:1119:32) {
#8 0.243 code: 'ERR_DLOPEN_FAILED'
#8 0.243 }
#8 0.243
#8 0.243 Node.js v18.17.0
#8 ERROR: process "/bin/sh -c node -r @confluentinc/kafka-javascript" did not complete successfully: exit code: 1
------
> [5/5] RUN node -r @confluentinc/kafka-javascript:
#8 0.243 at require (node:internal/modules/cjs/helpers:110:18)
#8 0.243 at bindings (/app/node_modules/bindings/bindings.js:112:48)
#8 0.243 at Object.<anonymous> (/app/node_modules/@confluentinc/kafka-javascript/librdkafka.js:10:32)
#8 0.243 at Module._compile (node:internal/modules/cjs/loader:1256:14)
#8 0.243 at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
#8 0.243 at Module.load (node:internal/modules/cjs/loader:1119:32) {
#8 0.243 code: 'ERR_DLOPEN_FAILED'
#8 0.243 }
#8 0.243
#8 0.243 Node.js v18.17.0
------
Dockerfile:5
--------------------
3 | RUN ldd --version
4 | RUN npm install @confluentinc/kafka-javascript@1.0.0
5 | >>> RUN node -r @confluentinc/kafka-javascript
6 |
--------------------
ERROR: failed to solve: process "/bin/sh -c node -r @confluentinc/kafka-javascript" did not complete successfully: exit code: 1
confluent-kafka-javascript Configuration Settings: N/A
Additional context: I guess 0.5.1 -> 1.0.0 is a breaking change after all
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working