From b4af38e1ab16fe7aa729eddf5b810229f42d2ad3 Mon Sep 17 00:00:00 2001 From: Pedro Viana <66711752+pedrovian4@users.noreply.github.com> Date: Tue, 3 Sep 2024 10:44:23 -0300 Subject: [PATCH] fix: fixed swoole extension that gets the SQLSTATE[08006] error (#715) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: fixed swoole extension that gets the SQLSTATE[08006] error Moved the swoole instalation to pecl instead using the ppa * fix: Enables swoole on .ini --------- Co-authored-by: печа --- runtimes/8.3/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtimes/8.3/Dockerfile b/runtimes/8.3/Dockerfile index 2a611db1..399642b6 100644 --- a/runtimes/8.3/Dockerfile +++ b/runtimes/8.3/Dockerfile @@ -29,8 +29,10 @@ RUN apt-get update \ php8.3-xml php8.3-zip php8.3-bcmath php8.3-soap \ php8.3-intl php8.3-readline \ php8.3-ldap \ - php8.3-msgpack php8.3-igbinary php8.3-redis php8.3-swoole \ + php8.3-msgpack php8.3-igbinary php8.3-redis \ php8.3-memcached php8.3-pcov php8.3-imagick php8.3-xdebug \ + && pecl install swoole-5.1.2 \ + && echo "extension=swoole.so" > /etc/php/8.3/cli/conf.d/20-swoole.ini && curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" > /etc/apt/sources.list.d/nodesource.list \