Coder Social home page Coder Social logo

Add MQSeries php module about docker-php HOT 5 CLOSED

phpearth avatar phpearth commented on June 15, 2024
Add MQSeries php module

from docker-php.

Comments (5)

adaliszk avatar adaliszk commented on June 15, 2024 1

In order to build this you need to download the archive from the IBM site first and add it to the container yourself. I think this should be done by the image users so they can update the host package.

The archive can be found on: https://www-945.ibm.com/support/fixcentral/swg/selectFixes?product=ibm/WebSphere/WebSphere+MQ&release=7.5.0.9&platform=All&function=textSearch&text=client+install+&useReleaseAsTarget=true

I'm still working on the building process but here is the current state:

ENV PHP_VERSION="7.2" \
    PHPIZE_DEPS="git file re2c autoconf make zlib zlib-dev g++" \
    MQSERIES_DEPS="${PHPIZE_DEPS} php${PHP_VERSION}-dev rpm shadow" \
    MQSERIES_ARCHIVE="/tmp/mqseries.tar.gz" \
    MQSERIES_SRC="/tmp/mqseries" \
    RPM_INSTALL="rpm -ivh --nodeps --prefix /opt/mqm"

RUN apk add --no-cache ${MQSERIES_DEPS} "openjdk8-jre" \
 && mkdir -p "${MQSERIES_SRC}" && echo "Platform: $(uname)_$(uname -i)" \
 && tar -xzf "${MQSERIES_ARCHIVE}" -C "${MQSERIES_SRC}" \
 # The default mqlicense.sh sometimes fail, this is a fixed version (only needed if uname -i does not return your architecture)
 && cp "/tmp/mqlicense.sh" "${MQSERIES_SRC}/mqlicense.sh" \
 && bash -c "${MQSERIES_SRC}/mqlicense.sh -accept -jre /usr/bin/java" \
 && $RPM_INSTALL \
    "${MQSERIES_SRC}/MQSeriesRuntime-*.rpm" \
    "${MQSERIES_SRC}/MQSeriesSDK-*.rpm" \
    "${MQSERIES_SRC}/MQSeriesClient-*.rpm" \
 # Install mqseries module (a bit unstable!)
 && pecl bundle -f "mqseries" \
 && cd "$(pecl config-get temp_dir)/mqseries" \
 && phpize && ./configure --with-libdir=lib64 \
 && make && make install

I will get back to you with the working steps, I have some errors to resolve, but I wanted to share some state at least 👨‍💻

from docker-php.

petk avatar petk commented on June 15, 2024 1

Once the release will be published on the pecl site, I'll gladly go and add it here also. Until then this is way too hacky and looking like the extension should be replaced with something else for now... Thank you.

from docker-php.

petk avatar petk commented on June 15, 2024

Thanks for the suggestion. I'll check if it can be compiled. It looks like a bit outdated and unsynced PECL extension without a proper homepage or a source code repository... Last commit in the Git repository was 3 years ago, and last release on PECL was done last year:
https://github.com/php/pecl-networking-mqseries/releases
https://pecl.php.net/package/mqseries

Not something very promising yet... but I'll check.

from docker-php.

adaliszk avatar adaliszk commented on June 15, 2024

Yeah in the mean time I have some progress on it, it's not nice 😅

from docker-php.

adaliszk avatar adaliszk commented on June 15, 2024

Maybe #27 would be a better solution to address this so at least you don't need to handle the pecl module installation and configuration

from docker-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.