ibm-messaging / mq-dev-patterns

Code samples and messaging patterns for IBM MQ developers
Apache License 2.0
190 stars 164 forks source link

Document details on how to install MQ client #86

Open david0 opened 2 years ago

david0 commented 2 years ago

Hi,

I tried to use pymqi to connect to a MQ and lost a lot of time figuring out how to install the required MQ client.

Maybe this should be documented better/a link to that should be provided?!

Anyway, here is what I am using now:

FROM python:3

# only /opt/mqm will work.
RUN mkdir -p /opt/mqm 
RUN curl 'https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.3.0.0-IBM-MQC-Redist-LinuxX64.tar.gz' -o - | tar xz  -C /opt/mqm
# fixes pymqi loading 32bit libraries
ENV LD_LIBRARY_PATH=/opt/mqm/lib64:$LD_LIBRARY_PATH  
RUN pip3 install pymqi==1.12.8

The best solution would obviously be to bundle the client with pymqi (same applies for nodejs, ruby etc).

chughts commented 2 years ago

I think this is a question for pymqi - https://github.com/dsuch/pymqi

david0 commented 2 years ago

Maybe, unfortunately this project does not have a public bug tracker. The easiest (at least for me) would be if IBM-MQC-Redist would be bundled with pymqi.

Until then, I think IBM should provide at least a few lines of documentation somewhere on how to install the MQ client...