Skip to content

Commit

Permalink
feat: php v8.2.13 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq authored Nov 30, 2023
1 parent 8e38a42 commit 3c9021f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/devel-8.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ on:
- master
paths:
- 8.2-fpm/**
- .github/workflows/devel-8.2.yml
push:
branches:
- master
paths:
- 8.2-fpm/**
- .github/workflows/devel-8.2.yml

jobs:
php:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
build:
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: 8.2-fpm-${{ matrix.arch }}-buildx-${{ github.sha }}
key: 8.2-fpm-${{ matrix.arch }}-buildx-${{ hashFiles('8.2-fpm/**') }}
restore-keys: |
8.2-fpm-${{ matrix.arch }}-buildx-
-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-8.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
docker-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
build:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

docker-manifest:
needs: docker-build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Set envs
run: |
Expand Down
43 changes: 37 additions & 6 deletions 8.2-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2.12-fpm-alpine3.17
FROM php:8.2.13-fpm-alpine3.17

LABEL Maintainer="Jose Quintana <joseluisq.net>" \
Description="PHP-FPM v8.2 with essential extensions on top of Alpine Linux."
Expand All @@ -8,7 +8,7 @@ ARG COMPOSER_VERSION="2.6.5"
ARG COMPOSER_SUM="9a18e1a3aadbcb94c1bafd6c4a98ff931f4b43a456ef48575130466e19f05dd6"

# Swoole - https://github.com/swoole/swoole-src
ARG SWOOLE_VERSION="5.1.0"
ARG SWOOLE_VERSION="5.1.1"

# Phalcon - https://github.com/phalcon/cphalcon
ARG PHALCON_VERSION="5.4.0"
Expand Down Expand Up @@ -38,13 +38,16 @@ RUN set -eux \
libxpm \
libxslt \
libzip \
lz4-libs \
make \
rabbitmq-c \
tidyhtml \
tzdata \
unixodbc \
vips \
yaml
yaml \
zstd-libs \
&& true

#############################################
### Install and enable PHP extensions
Expand Down Expand Up @@ -78,6 +81,7 @@ RUN set -eux \
libxpm-dev \
libxslt-dev \
libzip-dev \
lz4-dev \
openssl-dev \
pcre-dev \
pkgconf \
Expand Down Expand Up @@ -155,10 +159,25 @@ RUN set -eux \
&& docker-php-ext-enable imagick \
&& true \
\
# Install igbinary
&& pecl install igbinary \
&& docker-php-ext-enable igbinary \
\
# Install intl
&& docker-php-ext-install -j$(nproc) intl \
&& true \
\
# Install lz4
&& git clone https://github.com/kjdev/php-ext-lz4 /tmp/lz4 \
&& cd /tmp/lz4 \
&& git checkout $(git tag | grep -E '^[.0-9]+$' | sort -V | tail -1) \
&& phpize \
&& ./configure --enable-lz4 --with-lz4-includedir=/usr \
&& make -j$(nproc) \
&& make install \
&& docker-php-ext-enable lz4 \
&& true \
\
# Install memcache
&& pecl install memcache \
&& docker-php-ext-enable memcache \
Expand All @@ -169,6 +188,11 @@ RUN set -eux \
&& docker-php-ext-enable mongodb \
&& true \
\
# Install msgpack
&& pecl install msgpack \
&& docker-php-ext-enable msgpack \
&& true \
\
# Install mysqli
&& docker-php-ext-install -j$(nproc) mysqli \
&& true \
Expand Down Expand Up @@ -196,8 +220,8 @@ RUN set -eux \
&& true \
\
# Install phalcon
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git \
&& cd cphalcon/build \
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git /tmp/phalcon \
&& cd /tmp/phalcon/build \
&& sh ./install \
&& docker-php-ext-enable phalcon \
&& true \
Expand Down Expand Up @@ -228,7 +252,9 @@ RUN set -eux \
&& true \
\
# Install redis
&& pecl install redis \
&& pecl install --configureoptions \
'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-msgpack="yes" enable-redis-lz4="yes"' \
redis \
&& docker-php-ext-enable redis \
&& true \
\
Expand Down Expand Up @@ -276,6 +302,11 @@ RUN set -eux \
&& docker-php-ext-install -j$(nproc) tidy \
&& true \
\
# Install uuid
&& pecl install uuid \
&& docker-php-ext-enable uuid \
&& true \
\
# Install xsl
&& docker-php-ext-install -j$(nproc) xsl \
&& true \
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ _**Note:** we only provide stable PHP versions._
| gettext |||||
| gmp |||||
| imagick |||| ? |
| igbinary | ? || ? | ? |
| igbinary | ? || | ? |
| imap |||||
| intl |||||
| lz4 | ? || ? | ? |
| lz4 | ? || | ? |
| mcrypt || ? | ? | ? |
| memcache |||||
| mongodb |||||
| msgpack | ? || ? | ? |
| msgpack | ? || | ? |
| mysqli |||||
| oauth |||||
| opcache |||||
Expand All @@ -77,7 +77,7 @@ _**Note:** we only provide stable PHP versions._
| sysvsem |||||
| sysvshm |||||
| tidy |||||
| uuid | ? || ? | ? |
| uuid | ? || | ? |
| vips |||||
| xdebug |||| ? |
| xsl |||||
Expand Down

0 comments on commit 3c9021f

Please sign in to comment.