Skip to content

Commit 3b19a24

Browse files
Merge pull request #93 from llupa/release/8.5-ubuntu
Add PHP 8.5 (Ubuntu)
2 parents 8f73b03 + 3c0181f commit 3b19a24

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
build-arm64:
4242
name: Build PHP Image arm64
4343

44-
runs-on: ARM64
44+
runs-on: ubuntu-24.04-arm
4545

4646
continue-on-error: false
4747

@@ -108,7 +108,7 @@ jobs:
108108
run: docker run --pull=never --rm -t temporary-build-image-linux-amd64 php -v
109109

110110
- name: "PHP_VERSION Env"
111-
run: echo "PHP_VERSION=`docker run --pull=never --rm -t temporary-build-image-linux-amd64 php -r 'echo $_SERVER[\"PHP_VERSION\"];'`-ubuntu" >> $GITHUB_ENV
111+
run: echo "PHP_VERSION=$(docker run --pull=never --rm temporary-build-image-linux-amd64 printenv PHP_VERSION)-ubuntu" >> $GITHUB_ENV
112112

113113
- name: Tag also with php:${{ env.PHP_VERSION }}
114114
run: docker tag temporary-build-image-linux-amd64 php-${{ env.PHP_VERSION }}

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM ubuntu:noble-20240605
22

3-
ARG PHP_VERSION="8.4.4"
4-
ARG PHP_PACKAGE_BASENAME="php8.4"
5-
ARG PHP_PACKAGE_BASE_VERSION="8.4"
6-
ARG PHP_FPM_BINARY_PATH="/usr/sbin/php-fpm8.4"
7-
ARG UNIT_VERSION="1.31.0"
3+
ARG PHP_VERSION="8.5.2"
4+
ARG PHP_PACKAGE_BASENAME="php8.5"
5+
ARG PHP_PACKAGE_BASE_VERSION="8.5"
6+
ARG PHP_FPM_BINARY_PATH="/usr/sbin/php-fpm8.5"
7+
ARG UNIT_VERSION="1.34.2"
88
ARG APACHE2_VERSION="2.4.58"
99
ENV PHP_VERSION=$PHP_VERSION
1010
ENV PHP_PACKAGE_BASENAME=$PHP_PACKAGE_BASENAME
@@ -52,7 +52,7 @@ RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-intl
5252
RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-ldap
5353
RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-mbstring
5454
RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-mysqli
55-
RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-opcache
55+
# NOTE: opcache is now built into php8.5 core, no separate package needed
5656
RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-mysql
5757
RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-pgsql
5858
RUN apt-get install -y ${PHP_PACKAGE_BASENAME}-sqlite3
@@ -123,8 +123,8 @@ RUN rm /etc/php/${PHP_PACKAGE_BASE_VERSION}/fpm/php.ini \
123123

124124
# install nginx unit and the php module for nginx unit
125125
RUN wget --quiet --no-verbose -O /usr/share/keyrings/nginx-keyring.gpg https://unit.nginx.org/keys/nginx-keyring.gpg
126-
RUN echo "deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ jammy unit" > /etc/apt/sources.list.d/unit.list
127-
RUN echo "deb-src [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ jammy unit" >> /etc/apt/sources.list.d/unit.list
126+
RUN echo "deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ noble unit" > /etc/apt/sources.list.d/unit.list
127+
RUN echo "deb-src [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ noble unit" >> /etc/apt/sources.list.d/unit.list
128128
RUN apt-get update && apt-get install -y unit=$UNIT_VERSION-* unit-php=$UNIT_VERSION-* --no-install-recommends
129129
# add default nginx unit json file (listening on port 8080)
130130
COPY files/unit/unit-default.json /var/lib/unit/conf.json

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# endava/docker-php:8.3.x-ubuntu
1+
# endava/docker-php:8.5.x-ubuntu
22

33
## Usage
44

@@ -12,7 +12,7 @@ $ echo '<?php phpinfo();' > public/index.php
1212
2. Run the NGINX Unit Version with:
1313

1414
```shell
15-
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.3.2-ubuntu-unit
15+
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.5.1-ubuntu-unit
1616
```
1717

1818
and open http://localhost:8080 to see phpinfo unit.
@@ -26,7 +26,7 @@ Time per request: 12.144 [ms] (mean)
2626
3. Run the Apache2 Version with:
2727
2828
```shell
29-
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.3.2-ubuntu-apache2
29+
$ docker run --rm -p 8080:8080 -v `pwd`/public:/usr/src/app/public -it endava/php:8.5.1-ubuntu-apache2
3030
```
3131
3232
and open http://localhost:8080 to see phpinfo on apache2.
@@ -48,15 +48,15 @@ version: "2.1"
4848

4949
services:
5050
php-cli:
51-
image: endava/php:8.3.2-ubuntu
51+
image: endava/php:8.5.1-ubuntu
5252
volumes:
5353
- ./:/usr/src/app
5454
user: "${UID-www-data}:${GID-www-data}"
5555
entrypoint: bash
5656
depends_on:
5757
- nginx
5858
php-fpm:
59-
image: endava/php:8.3.2-ubuntu-fpm
59+
image: endava/php:8.5.1-ubuntu-fpm
6060
user: "${UID-www-data}:${GID-www-data}"
6161
volumes:
6262
- ./:/usr/src/app
@@ -99,11 +99,11 @@ $docker-compose run php-cli
9999
⠿ Container docker-php-php-fpm-1
100100
⠿ Container docker-php-nginx-1
101101
bash-5.1$ php -v
102-
PHP 8.3.2-1+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Jan 20 2024 14:16:40) (NTS)
102+
PHP 8.5.1-1+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Jan 9 2026 14:16:40) (NTS)
103103
Copyright (c) The PHP Group
104-
Zend Engine v4.3.2, Copyright (c) Zend Technologies
105-
with Zend OPcache v8.3.2-1+ubuntu22.04.1+deb.sury.org+1, Copyright (c), by Zend Technologies
106-
with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans
104+
Zend Engine v4.5.1, Copyright (c) Zend Technologies
105+
with Zend OPcache v8.5.1-1+ubuntu22.04.1+deb.sury.org+1, Copyright (c), by Zend Technologies
106+
with Xdebug v3.5.0, Copyright (c) 2002-2026, by Derick Rethans
107107
```
108108
109109
and open http://localhost:8080/ to see phpinfo with FPM/FastCGI as server api.
@@ -250,7 +250,7 @@ You can define the crontab's content with an environment variable like this:
250250
```yaml
251251
services:
252252
import-data-cron:
253-
image: endava/php:8.3.2-ubuntu
253+
image: endava/php:8.5.1-ubuntu
254254
command: start-cron
255255
environment:
256256
- 'CRONTAB_USER=www-data'
@@ -294,7 +294,7 @@ Usage in your `docker-compose.yml`:
294294
```yaml
295295
services:
296296
crontab:
297-
image: endava/php:8.3.2-ubuntu
297+
image: endava/php:8.5.1-ubuntu
298298
command: start-cron
299299
volumes:
300300
- ./:/usr/src/app
@@ -307,7 +307,7 @@ cron location with the `CRON_PATH` environment variable:
307307
```yaml
308308
services:
309309
crontab:
310-
image: endava/php:8.3.2-ubuntu
310+
image: endava/php:8.5.1-ubuntu
311311
command: start-cron
312312
environment:
313313
- CRON_PATH=/usr/src/app/crontabs

0 commit comments

Comments
 (0)