21 lines
618 B
Docker
21 lines
618 B
Docker
# docker buildx build -t pymqi . -f Dockerfile.ubi9-mqclient
|
|
|
|
FROM registry.access.redhat.com/ubi9/python-312:1-25.1729767846
|
|
|
|
USER 0
|
|
|
|
COPY ./mq/9.4.1.0-IBM-MQC-LinuxX64.tar.gz /tmp/IBM-MQC-LinuxX64.tar.gz
|
|
COPY ./mq/*.py /tmp
|
|
|
|
RUN yum update -y \
|
|
&& yum install -y tar wget python3 python3-devel python3-pip \
|
|
&& cd /tmp \
|
|
&& tar -xvf IBM-MQC-LinuxX64.tar.gz \
|
|
&& cd /tmp/MQClient \
|
|
&& ./mqlicense.sh -accept \
|
|
&& rpm -i *.rpm \
|
|
&& /opt/mqm/bin/setmqinst -i -p /opt/mqm \
|
|
&& source /opt/mqm/bin/setmqenv -l -p /opt/mqm \
|
|
&& pip install pymqi
|
|
|
|
ENTRYPOINT ["tail", "-f", "/dev/null"] |