Skip to content

Commit 783af5d

Browse files
Update PHP version to 8.5 and adjust related documentation (#398)
* Update PHP version to 8.5 and adjust related documentation * Update PHP dev container image * Fixing SSL validation error
1 parent d7af46b commit 783af5d

7 files changed

Lines changed: 23 additions & 19 deletions

File tree

src/php-mariadb/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/devcontainers/php:1-${templateOption:imageVariant}
1+
FROM mcr.microsoft.com/devcontainers/php:3-${templateOption:imageVariant}
22

33
# Install MariaDB client
44
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

src/php-mariadb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Develop PHP applications with MariaDB (MySQL Compatible).
77

88
| Options Id | Description | Type | Default Value |
99
|-----|-----|-----|-----|
10-
| imageVariant | PHP version (use -bookworm, -bullseye variants on local arm64/Apple Silicon): | string | 8.4-bookworm |
10+
| imageVariant | PHP version (use -bookworm, -bullseye variants on local arm64/Apple Silicon): | string | 8.5-trixie |
1111

1212
This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata.
1313

src/php-mariadb/devcontainer-template.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "php-mariadb",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"name": "PHP & MariaDB",
55
"description": "Develop PHP applications with MariaDB (MySQL Compatible).",
66
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/php-mariadb",
@@ -9,18 +9,21 @@
99
"options": {
1010
"imageVariant": {
1111
"type": "string",
12-
"description": "PHP version (use -bookworm, -bullseye variants on local arm64/Apple Silicon):",
12+
"description": "PHP version (use -trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon):",
1313
"proposals": [
14-
"8-bookworm",
15-
"8.2-bookworm",
16-
"8.3-bookworm",
14+
"8.5-trixie",
15+
"8.5-bookworm",
16+
"8.5-bullseye",
17+
"8.4-trixie",
1718
"8.4-bookworm",
18-
"8-bullseye",
19-
"8.2-bullseye",
19+
"8.4-bullseye",
20+
"8.3-trixie",
21+
"8.3-bookworm",
2022
"8.3-bullseye",
21-
"8.4-bullseye"
23+
"8-bullseye",
24+
"8-trixie"
2225
],
23-
"default": "8.2-bookworm"
26+
"default": "8.5-trixie"
2427
}
2528
},
2629
"platforms": [

src/php/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "PHP",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/php:1-${templateOption:imageVariant}",
6+
"image": "mcr.microsoft.com/devcontainers/php:3-${templateOption:imageVariant}",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
// "features": {},

src/php/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Develop PHP based applications. Includes needed tools, extensions, and dependenc
77

88
| Options Id | Description | Type | Default Value |
99
|-----|-----|-----|-----|
10-
| imageVariant | PHP version (use -bookworm, -bullseye variants on local arm64/Apple Silicon): | string | 8.4-bookworm |
10+
| imageVariant | PHP version (use -bookworm, -bullseye variants on local arm64/Apple Silicon): | string | 8.5-trixie|
1111

1212
This template references an image that was [pre-built](https://containers.dev/implementors/reference/#prebuilding) to automatically include needed devcontainer.json metadata.
1313

src/php/devcontainer-template.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "php",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"name": "PHP",
55
"description": "Develop PHP based applications. Includes needed tools, extensions, and dependencies.",
66
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/php",
@@ -9,18 +9,19 @@
99
"options": {
1010
"imageVariant": {
1111
"type": "string",
12-
"description": "PHP version (use -bookworm, -bullseye variants on local arm64/Apple Silicon):",
12+
"description": "PHP version (use -trixie, -bookworm, -bullseye variants on local arm64/Apple Silicon):",
1313
"proposals": [
14+
"8.5-trixie",
15+
"8.5-bookworm",
16+
"8.5-bullseye",
1417
"8-bookworm",
15-
"8.2-bookworm",
1618
"8.3-bookworm",
1719
"8.4-bookworm",
1820
"8-bullseye",
19-
"8.2-bullseye",
2021
"8.3-bullseye",
2122
"8.4-bullseye"
2223
],
23-
"default": "8.2-bullseye"
24+
"default": "8.5-trixie"
2425
}
2526
},
2627
"platforms": ["PHP"],

test/php-mariadb/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ checkExtension "mrmlnc.vscode-apache"
1717
check "php" php --version
1818
check "apache2ctl" which apache2ctl
1919
sleep 15 # Sleep to be sure MariaDB is running.
20-
check "mariadb" mariadb -h localhost -P 3306 --protocol=tcp -u root --password=mariadb -D mariadb -Bse exit
20+
check "mariadb" mariadb -h localhost -P 3306 --protocol=tcp -u root --password=mariadb -D mariadb --skip-ssl-verify-server-cert -Bse exit
2121

2222
# Report result
2323
reportResults

0 commit comments

Comments
 (0)