From ff23fe51c6cdffef465dcfe7900672300189ad79 Mon Sep 17 00:00:00 2001 From: maurice Date: Fri, 23 Oct 2026 14:39:57 +0200 Subject: [PATCH] zmq --- container/Containerfile | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/container/Containerfile b/container/Containerfile index 80b6396..abb6880 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -24,7 +24,8 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \ python3 \ python3-pip \ dotnet-sdk-10.0 \ - openssl-devel + openssl-devel \ + zeromq-devel # === setup user === RUN useradd -ms /bin/bash user && \ @@ -80,7 +81,7 @@ RUN dotnet tool install --tool-path /usr/local/bin dotnet-ef && \ | tar xz -C /usr/local/bin/omnisharp && \ chmod +x /usr/local/bin/omnisharp/OmniSharp -# PHP +# PHP + ZeroMQ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \ dnf -y install https://rpm.henderkes.com/static-php-1-0.noarch.rpm && \ dnf -y module enable php-zts:static-8.5 && \ @@ -104,7 +105,23 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \ php-zts-bcmath \ php-zts-mysqli \ php-zts-imagick \ - php-zts-grpc && \ + php-zts-grpc \ + php-zts-devel \ + autoconf \ + automake \ + libtool \ + make && \ + git clone --depth 1 https://github.com/chrisBirmingham/phpzmq.git /tmp/phpzmq && \ + cd /tmp/phpzmq && \ + phpize-zts && \ + ./configure --with-php-config=/usr/bin/php-config-zts --with-zmq && \ + make -j"$(nproc)" && \ + make install && \ + PHP_INI_SCAN_DIR="$(php-config-zts --ini-dir)" && \ + mkdir -p "${PHP_INI_SCAN_DIR}" && \ + echo 'extension=zmq.so' > "${PHP_INI_SCAN_DIR}/40-zmq.ini" && \ + cd / && rm -rf /tmp/phpzmq && \ + dnf remove -y php-zts-devel autoconf automake libtool && \ curl -fsSL https://getcomposer.org/installer \ | php -- --install-dir=/usr/local/bin --filename=composer