ibm-messaging / mq-mqi-nodejs

Calling IBM MQ from Node.js - a JavaScript MQI wrapper
Apache License 2.0
79 stars 42 forks source link

Issue with docker image run #143

Closed prabhatmishra33 closed 2 years ago

prabhatmishra33 commented 2 years ago

Dear Team,

I am facing an issue in running up the docker image for my service which consumes the IBMMQ package.

PFB the related package details:

"node_modules/ibmmq": { "version": "0.9.18", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { "ffi-napi": ">=4.0.3", "ref-array-di": ">=1.2.2", "ref-napi": "^3.0.3", "ref-struct-di": ">=1.1.1", "unzipper": ">=0.10.11" }

Few days before the below docker image used to work fine.

STAGE1: BUILD

FROM node:16.13.2-bullseye-slim AS base

WORKDIR /app

COPY package*.json ./ COPY tsconfig.json ./ COPY src ./src

RUN echo $(ls -1 ./) RUN echo $(ls -1 ./src)= RUN apt-get update && apt-get install --yes curl g++ make git python3 RUN npm install

RUN npm run app-build COPY . .

STAGE2: RELEASE

FROM node:16.13.2-bullseye-slim AS release

WORKDIR /app

COPY --from=base /app/build/src ./src COPY --from=base /app/node_modules ./node_modules COPY --from=base /app/package*.json ./ COPY --from=base /app/tsconfig.json ./

CMD node src/index.js

Now the above image gets built but while running the container, I always get an issue as below.

ibmmqmet commented 2 years ago

answered in https://stackoverflow.com/questions/72831629/issue-with-ibmmq-docker-container-run/72837197#72837197