Skip to content

Commit

Permalink
v8.1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Nov 28, 2023
1 parent 3641ff4 commit 186cf01
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/devel-8.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
- master
paths:
- 8.1-fpm/**
- .github/workflows/devel-8.1.yml
push:
branches:
- master
paths:
- 8.1-fpm/**
- .github/workflows/devel-8.1.yml

jobs:
php:
Expand Down
47 changes: 41 additions & 6 deletions 8.1-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1.25-fpm-alpine3.17
FROM php:8.1.26-fpm-alpine3.17

LABEL Maintainer="Jose Quintana <joseluisq.net>" \
Description="PHP-FPM v8.1 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,26 @@ 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-ext \
&& cd /tmp/lz4-ext \
&& 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 \
&& rm -rf /tmp/lz4-ext \
&& true \
\
## Install mcrypt
## DEPRECATED: This dependency is dead so move to `libsodium` or `openssl`
## && pecl install mcrypt-1.0.4 \
Expand All @@ -175,6 +195,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 @@ -202,8 +227,11 @@ RUN set -eux \
&& true \
\
# Install phalcon
&& git clone --depth=1 --branch=v${PHALCON_VERSION} https://github.com/phalcon/cphalcon.git \
&& cd cphalcon/build \
&& mkdir /tmp/cphalcon \
&& curl -Lo cphalcon.tar.gz https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.tar.gz \
&& tar xfz cphalcon.tar.gz --strip-components=1 -C /tmp/cphalcon \
&& rm -rf cphalcon.tar.gz \
&& cd /tmp/cphalcon/build \
&& sh ./install \
&& docker-php-ext-enable phalcon \
&& true \
Expand Down Expand Up @@ -234,7 +262,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 @@ -282,6 +312,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
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
REPOSITORY ?= joseluisq
TAG ?= latest
VERSION ?= 8.3


build:
docker build --progress=plain --network=host \
docker build --network=host \
-t $(REPOSITORY)/php-fpm:$(TAG) \
-f Dockerfile .
-f $(VERSION)-fpm/Dockerfile .
.PHONY: build

dev:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ _**Note:** we only provide stable PHP versions._
| gettext |||||
| gmp |||||
| imagick |||| ? |
| igbinary | ? || ? | ? |
| imap |||||
| intl |||||
| lz4 | ? || ? | ? |
| mcrypt || ? | ? | ? |
| memcache |||||
| mongodb |||||
| msgpack | ? || ? | ? |
| mysqli |||||
| oauth |||||
| opcache |||||
Expand All @@ -74,6 +77,7 @@ _**Note:** we only provide stable PHP versions._
| sysvsem |||||
| sysvshm |||||
| tidy |||||
| uuid | ? || ? | ? |
| vips |||||
| xdebug |||| ? |
| xsl |||||
Expand Down

0 comments on commit 186cf01

Please sign in to comment.