Docker alpine-10 with aerospike not working
See original GitHub issueMy docker file is -
MAINTAINER me
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json ./
RUN apk add --no-cache python2 make gcc g++ git libtool autoconf automake linux-headers \
openssl-dev zlib-dev libuv-dev
RUN git clone https://github.com/aerospike/aerospike-client-c.git && \
cd aerospike-client-c && \
git checkout --detach 4.3.20 && \
git submodule update --init && \
make EVENT_LIB=libuv
RUN npm install
VOLUME ["./logs"]
COPY . .
EXPOSE 9008
CMD [ "npm", "start" ]
On docker build, getting error -
make: *** [aerospike-client-c.target.mk:17: ebf8c619d512e7a1a724a0ecb06ec5eec50df7dc.intermediate] Error 1
rm ebf8c619d512e7a1a724a0ecb06ec5eec50df7dc.intermediate
make: Leaving directory '/usr/src/app/node_modules/aerospike/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.4.0-1077-aws
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/src/app/node_modules/aerospike
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! aerospike@3.10.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the aerospike@3.10.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Build Error within aerospike-client-c-src-4.6.8
I'm trying to put the Aerospike Node.js client into an alpine Docker container. This needs some building the client-c-src.
Read more >node
Node.js is a JavaScript-based platform for server-side and networking applications. GitHub repo: https://github.com/nodejs/docker-node. Library reference. This ...
Read more >Build and install aerospike 4.0.0 in python 3.8 alpine 3.16
18 (release), successfully installed aerospike using pip. Problem is that I got following error: uv_async_send: symbol not found ImportError: ...
Read more >oDc - ALBA.Net
46120 river hill rd, Wetter bordesholm morgen, Amc 12 problems by topic, ... Jk traders, Homemade christmas village displays, Aerospike query example, ...
Read more >aerospike - Official Image - Docker Hub
Running an Aerospike EE node with a feature key file in a mapped directory ... Injecting configuration parameters into the configuration template isn't ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

These are not errors but warnings that can be ignored. During startup, the client tries to check the OS network send/receive buffer sizes using the
net.core.wmem_max/net.core.rmem_maxsystem interfaces, which doesn’t work inside a Docker container. So the client falls back to using reasonable default values.Following configuration I have used with latest
Dockerfile.alpinein this projectThis is I checked from this file
ENV AS_C_VERSION 4.6.16 ENV AS_NODEJS_VERSION 3.16.1
I am getting following errors: