Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[swoole-postgres] Update to PHP8 #6296

Merged
merged 1 commit into from
Jan 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions frameworks/PHP/swoole/swoole-postgres.dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM php:7.4
FROM php:8.0-cli

RUN docker-php-ext-install opcache > /dev/null

ENV SWOOLE_VERSION=4.5.1
ENV SWOOLE_VERSION 4.6.1
ENV SWOOLE_POSTGRES 4.6.1

RUN apt-get update && apt-get install -y libpq-dev \
&& cd /tmp && curl -sSL "https://github.com/swoole/swoole-src/archive/v${SWOOLE_VERSION}.tar.gz" | tar xzf - \
&& cd swoole-src-${SWOOLE_VERSION} \
&& phpize && ./configure > /dev/null && make > /dev/null && make install > /dev/null \
&& docker-php-ext-enable swoole

RUN cd /tmp && curl -sSL "https://github.com/swoole/ext-postgresql/archive/v${SWOOLE_VERSION}.tar.gz" | tar xzf - \
&& cd ext-postgresql-${SWOOLE_VERSION} \
RUN cd /tmp && curl -sSL "https://github.com/swoole/ext-postgresql/archive/v${SWOOLE_POSTGRES}.tar.gz" | tar xzf - \
&& cd ext-postgresql-${SWOOLE_POSTGRES} \
&& phpize && ./configure > /dev/null && make > /dev/null && make install > /dev/null \
&& docker-php-ext-enable swoole_postgresql

Expand Down