Skip to content

Commit 5d04d4e

Browse files
committed
* PHP 8.4 integration
* RabbitMQ version upgrade * MongoDB version upgrade * php_redis and php_amqp fix * Readme update
1 parent aa1de08 commit 5d04d4e

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.env.dist

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ USER_CONFIG_PATH=./user
3737
# Debian OS available versions: jessie, stretch, buster, bullseye, bookworm
3838
DEBIAN_VERSION=bookworm
3939

40-
# PHP available versions: 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3
41-
PHP_VERSION=8.3
40+
# PHP available versions: 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4
41+
PHP_VERSION=8.4
4242

4343
# Nginx settings
4444
NGINX_CACHE=yes
@@ -134,8 +134,8 @@ XDEBUG_FILE_LINK_FORMAT="phpstorm://open?file=%f&line=%l"
134134
# Xdebug IDE configuration.
135135
PHP_IDE_CONFIG=serverName=symfony-docker
136136

137-
# Node JS available versions: 16, 18, 20, 20, 21, 22
138-
NODE_JS_VERSION=22
137+
# Node JS available versions: 16, 18, 20, 20, 21, 22, 23
138+
NODE_JS_VERSION=23
139139

140140
CLEAN_NGINX_LOGS=no
141141
CLEAN_SF_logs=no
@@ -164,11 +164,11 @@ PHP_IMAP=no
164164

165165
EXTERNAL_NETWORK=no
166166

167-
RABBITMQ_VERSION=3.13.6
167+
RABBITMQ_VERSION=4.0.5
168168
ELASTICSEARCH_VERSION=6.8.23
169169
ELK_VERSION=7.16.0
170-
# MongoDB available versions: 4.2.24, 4.4.29, 5.0.27, 6.0.16
171-
MONGODB_VERSION=6.0.16
170+
# MongoDB available versions: 4.2.24, 4.4.29, 5.0.30, 6.0.19
171+
MONGODB_VERSION=6.0.19
172172
# wkhtmltopdf available versions: 0.12.3, 0.12.4, 0.12.5, 0.12.6
173173
WKHTMLTOPDF_VERSION=0.12.3
174174

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ sudo curl -L "https://github.com/docker/compose/releases/download/v2.28.1/docker
139139
```
140140

141141
# PHP extensions
142-
| Extension | PHP 7.1 | PHP 7.2 | PHP 7.3 | PHP 7.4 | PHP 8.0 | PHP 8.1 | PHP 8.2 | PHP 8.3 |
143-
|-----------|---------|---------|---------|---------|---------|---------|---------|---------|
144-
| amqp | 1.11.0 | 1.11.0 | 1.11.0 | 2.1.1 | 2.1.1 | 2.1.1 | 2.1.1 | 2.1.1 |
145-
| mongodb | 1.11.1 | 1.16.2 | 1.16.2 | 1.17.1 | 1.17.1 | 1.17.1 | 1.17.1 | 1.17.1 |
146-
| redis | 5.3.7 | 6.0.2 | 6.0.2 | 6.0.2 | 6.0.2 | 6.0.2 | 6.0.2 | 6.0.2 |
147-
| xdebug | 2.9.8 | 3.1.6 | 3.1.6 | 3.1.6 | 3.1.6 | 3.1.6 | 3.1.6 | 3.1.6 |
142+
| Extension | PHP 7.1 | PHP 7.2 | PHP 7.3 | PHP 7.4 | PHP 8.0 | PHP 8.1 | PHP 8.2 | PHP 8.3 | PHP 8.4 |
143+
|-----------|---------|---------|---------|---------|---------|---------|---------|---------|---------|
144+
| amqp | 1.11.0 | 1.11.0 | 1.11.0 | 2.1.2 | 2.1.2 | 2.1.2 | 2.1.2 | 2.1.2 | 2.1.2 |
145+
| mongodb | 1.11.1 | 1.16.2 | 1.16.2 | 1.20.1 | 1.20.1 | 1.20.1 | 1.20.1 | 1.20.1 | 1.20.1 |
146+
| redis | 5.3.7 | 5.3.7 | 5.3.7 | 6.1.0 | 6.1.0 | 6.1.0 | 6.1.0 | 6.1.0 | 6.1.0 |
147+
| xdebug | 2.9.8 | 3.1.6 | 3.1.6 | 3.1.6 | 3.4.0 | 3.4.0 | 3.4.0 | 3.4.0 | 3.4.0 |
148148

149149
# DirectAdmin support us!
150150

commands/start.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func doPhpBuild() {
215215
phpExtConfigure = append(phpExtConfigure, "docker-php-ext-configure zip --with-libzip")
216216
}
217217

218-
if phpVersion >= "7.4" && phpVersion <= "8.3" {
218+
if phpVersion >= "7.4" && phpVersion <= "8.4" {
219219
phpExtConfigure = append(phpExtConfigure, "docker-php-ext-configure zip")
220220
}
221221

@@ -227,7 +227,7 @@ func doPhpBuild() {
227227
}
228228

229229
if os.Getenv("PHP_GD") == "yes" {
230-
supportedVersions := []string{"7.4", "8.0", "8.1", "8.2", "8.3"}
230+
supportedVersions := []string{"7.4", "8.0", "8.1", "8.2", "8.3", "8.4"}
231231
gdConfigure := "&& docker-php-ext-configure gd"
232232
if !util.Contains(supportedVersions, phpVersion) {
233233
gdConfigure += " --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/"
@@ -245,8 +245,8 @@ func doPhpBuild() {
245245
peclInstall = append(peclInstall, "amqp-1.11.0")
246246
}
247247

248-
if phpVersion >= "7.3" && phpVersion <= "8.3" {
249-
peclInstall = append(peclInstall, "amqp-2.1.1")
248+
if phpVersion >= "7.4" && phpVersion <= "8.4" {
249+
peclInstall = append(peclInstall, "amqp-2.1.2")
250250
}
251251

252252
util.Sed("__RABBIT_MQ__", "&& echo 'extension=amqp.so' >> $$PHP_INI_DIR/conf.d/docker-php-ext-amqp.ini"+" \\", "config/php/Dockerfile")
@@ -264,8 +264,8 @@ func doPhpBuild() {
264264
peclInstall = append(peclInstall, "mongodb-1.16.2")
265265
}
266266

267-
if phpVersion >= "7.4" && phpVersion <= "8.3" {
268-
peclInstall = append(peclInstall, "mongodb-1.17.1")
267+
if phpVersion >= "7.4" && phpVersion <= "8.4" {
268+
peclInstall = append(peclInstall, "mongodb-1.20.1")
269269
}
270270

271271
if phpVersion != "7.2" {
@@ -284,12 +284,12 @@ func doPhpBuild() {
284284
}
285285

286286
if os.Getenv("REDIS") == "yes" {
287-
if phpVersion == "7.1" {
287+
if phpVersion >= "7.1" && phpVersion <= "7.3" {
288288
peclInstall = append(peclInstall, "redis-5.3.7")
289289
}
290290

291-
if phpVersion >= "7.2" && phpVersion <= "8.3" {
292-
peclInstall = append(peclInstall, "redis-6.0.2")
291+
if phpVersion >= "7.4" && phpVersion <= "8.4" {
292+
peclInstall = append(peclInstall, "redis-6.1.0")
293293
}
294294

295295
phpExtEnable = append(phpExtEnable, "redis")
@@ -308,8 +308,8 @@ func doPhpBuild() {
308308
peclInstall = append(peclInstall, "xdebug-3.1.6")
309309
}
310310

311-
if phpVersion >= "8.0" && phpVersion <= "8.3" {
312-
peclInstall = append(peclInstall, "xdebug-3.3.1")
311+
if phpVersion >= "8.0" && phpVersion <= "8.4" {
312+
peclInstall = append(peclInstall, "xdebug-3.4.0")
313313
}
314314

315315
util.Copy("config/php/conf.d/xdebug.d4d", "config/php/conf.d/xdebug.ini")
@@ -324,7 +324,7 @@ func doPhpBuild() {
324324
util.AppendFile("config/php/conf.d/xdebug.ini", fmt.Sprintf("\nxdebug.remote_connect_back = %s", os.Getenv("XDEBUG_REMOTE_CONNECT_BACK")))
325325
}
326326

327-
if phpVersion >= "7.1" && phpVersion <= "8.3" {
327+
if phpVersion >= "7.1" && phpVersion <= "8.4" {
328328
util.Sed("__XDEBUG__", "&& echo 'zend_extension=xdebug.so' >> $$PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini"+" \\", "config/php/Dockerfile")
329329
} else {
330330
util.Sed("__XDEBUG__", "&& echo 'extension=xdebug.so' >> $$PHP_INI_DIR/conf.d/docker-php-ext-xdebug.ini"+" \\", "config/php/Dockerfile")

0 commit comments

Comments
 (0)