NodeJS Client On docker node image

Hello,

I’m struggling to get the client installed on any tag of the https://hub.docker.com/_/node/ official image.

I tried with node:10-stretch but kept having “Error: libssl.so.1.0.0: cannot open shared object file” at runtime, but didn’t get to install the library in this version as it is long time deprecated.

I tried with node:10-jessie. Got a bit further as libssl.so.1.0.0 is present in jessie, but then it hit a "Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found " since the glibc version in jessie is too old.

I also tried with node:8-jessie, node:8-stretch, node:10-buster, same problems.

Has anyone manage to install the node js client in such environment ?

Thanks

Can you share your Dockerfile?

A very simple Dockerfile based on node:10-stretch is working for me:

$ cat Dockerfile
FROM node:10-stretch
RUN npm install aerospike

$ docker build -t aerospike-node .
Sending build context to Docker daemon   5.12kB
Step 1/2 : FROM node:10-stretch
 ---> aa6432763c11
Step 2/2 : RUN npm install aerospike
 ---> Using cache
 ---> 6ba7a188e851
Successfully built 6ba7a188e851
Successfully tagged aerospike-node:latest

$ docker run --rm --env AEROSPIKE_HOSTS=192.168.1.10:32778 aerospike-node node -e "require('aerospike').connect().then(as => as.infoAny('version').then(console.info).then(() => as.close()))"
Feb 28 2020 02:29:00 GMT: WARN (1) [as_pipe.c:202] [read_file] - Failed to open /proc/sys/net/core/wmem_max for reading
Feb 28 2020 02:29:00 GMT: WARN (1) [as_pipe.c:261] [get_buffer_size] - Failed to read /proc/sys/net/core/wmem_max; should be at least 5242880. Please verify.
Feb 28 2020 02:29:00 GMT: WARN (1) [as_pipe.c:202] [read_file] - Failed to open /proc/sys/net/core/rmem_max for reading
Feb 28 2020 02:29:00 GMT: WARN (1) [as_pipe.c:261] [get_buffer_size] - Failed to read /proc/sys/net/core/rmem_max; should be at least 15728640. Please verify.
version	Aerospike Community Edition build 4.8.0.5
© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.