Skip to content

Commit

Permalink
[php] Workerman update to PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Nov 29, 2023
1 parent 6ab2021 commit 5f8dd59
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions frameworks/PHP/workerman/workerman-pgsql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null

RUN apt-get install -yqq php8.2-cli php8.2-pgsql php8.2-xml > /dev/null
RUN apt-get install -yqq php8.3-cli php8.3-pgsql php8.3-xml > /dev/null

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get install -y php-pear php8.2-dev libevent-dev git > /dev/null
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.2/cli/conf.d/event.ini
RUN apt-get install -y php-pear php8.3-dev libevent-dev git > /dev/null
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.3/cli/conf.d/event.ini

COPY php.ini /etc/php/8.2/cli/php.ini
COPY php.ini /etc/php/8.3/cli/php.ini

ADD ./ /workerman
WORKDIR /workerman
Expand Down
10 changes: 5 additions & 5 deletions frameworks/PHP/workerman/workerman-php8-jit.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null

RUN apt-get install -yqq php8.2-cli php8.2-pgsql php8.2-xml > /dev/null
RUN apt-get install -yqq php8.3-cli php8.3-pgsql php8.3-xml > /dev/null

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get install -y php-pear php8.2-dev libevent-dev git > /dev/null
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.2/cli/conf.d/event.ini
RUN apt-get install -y php-pear php8.3-dev libevent-dev git > /dev/null
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.3/cli/conf.d/event.ini

COPY php-jit.ini /etc/php/8.2/cli/php.ini
COPY php-jit.ini /etc/php/8.3/cli/php.ini

ADD ./ /workerman
WORKDIR /workerman

RUN sed -i "s|'/app.php|'/app-pg.php|g" server.php
RUN sed -i "s|init()|DbRaw::init()|g" server.php
RUN sed -i "s|opcache.jit=off|opcache.jit=function|g" /etc/php/8.2/cli/conf.d/10-opcache.ini
RUN sed -i "s|opcache.jit=off|opcache.jit=function|g" /etc/php/8.3/cli/conf.d/10-opcache.ini

RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet

Expand Down
8 changes: 4 additions & 4 deletions frameworks/PHP/workerman/workerman.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null

RUN apt-get install -yqq php8.2-cli php8.2-mysql php8.2-xml > /dev/null
RUN apt-get install -yqq php8.3-cli php8.3-mysql php8.3-xml > /dev/null

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get install -y php-pear php8.2-dev libevent-dev git > /dev/null
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.2/cli/conf.d/event.ini
RUN apt-get install -y php-pear php8.3-dev libevent-dev git > /dev/null
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.3/cli/conf.d/event.ini

COPY php-jit.ini /etc/php/8.2/cli/php.ini
COPY php-jit.ini /etc/php/8.3/cli/php.ini

ADD ./ /workerman
WORKDIR /workerman
Expand Down

0 comments on commit 5f8dd59

Please sign in to comment.