4 files changed +67
-5
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ install:
47
47
before_script :
48
48
- make build
49
49
- make test
50
+ - make update-readme
51
+ - git diff --quiet || { echo "Build Changes"; git diff; git status; false; }
50
52
51
53
52
54
# ##
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ TAG = latest
5
5
6
6
.PHONY : build rebuild test tag pull login push enter
7
7
8
+ update-readme :
9
+ cat " ./README.md" \
10
+ | perl -00 -pe " s/<!-- modules -->.*<!-- \/modules -->/<!-- modules -->\n$$ (./tests/get-modules.sh)\n<!-- \/modules -->/s" \
11
+ > " ./README.md.tmp"
12
+ yes | mv -f " ./README.md.tmp" " ./README.md"
13
+
8
14
build :
9
15
docker build -t $(IMAGE ) -f $(DIR ) /$(FILE ) $(DIR )
10
16
Original file line number Diff line number Diff line change 10
10
11
11
This repository will provide you a fully functional PHP-FPM 7.4 Docker image built from [ official sources] ( https://github.com/php/php-src ) nightly. It provides the base for [ Devilbox PHP-FPM Docker images] ( https://github.com/devilbox/docker-php-fpm ) .
12
12
13
-
14
13
| Docker Hub | Upstream Project |
15
14
| ------------| ------------------|
16
15
| <a href =" https://hub.docker.com/r/devilbox/php-fpm-7.4 " ><img height =" 82px " src =" http://dockeri.co/image/devilbox/php-fpm-7.4 " /></a > | <a href =" https://github.com/cytopia/devilbox " ><img height =" 82px " src =" https://raw.githubusercontent.com/devilbox/artwork/master/submissions_banner/cytopia/01/png/banner_256_trans.png " /></a > |
17
16
18
-
19
17
## Similar Base Images
20
18
21
19
* [ PHP-FPM 5.2] ( https://github.com/devilbox/docker-php-fpm-5.2 )
22
20
* [ PHP-FPM 5.3] ( https://github.com/devilbox/docker-php-fpm-5.3 )
23
21
* [ PHP-FPM 8.0] ( https://github.com/devilbox/docker-php-fpm-8.0 )
24
22
* [ PHP-FPM] ( https://github.com/devilbox/docker-php-fpm ) (all PHP versions)
25
23
26
-
27
24
## Build
28
25
29
26
``` bash
@@ -37,7 +34,6 @@ make rebuild
37
34
make test
38
35
```
39
36
40
-
41
37
## Usage
42
38
43
39
Add the following ` FROM ` line into your Dockerfile:
@@ -46,6 +42,48 @@ Add the following `FROM` line into your Dockerfile:
46
42
FROM devilbox/php-fpm-7.4:latest
47
43
```
48
44
45
+ ## Available Modules
46
+
47
+ If you need a dockerized version of ** PHP 7.4** or ** PHP-FPM 7.4** which provides a vast amount of
48
+ modules enabled by default visit: ** [ devilbox/docker-php-fpm] ( https://github.com/devilbox/docker-php-fpm ) **
49
+
50
+ <!-- modules -->
51
+ | Module | Built-in |
52
+ | --------------| -----------|
53
+ | Core | ✔ |
54
+ | ctype | ✔ |
55
+ | curl | ✔ |
56
+ | date | ✔ |
57
+ | dom | ✔ |
58
+ | fileinfo | ✔ |
59
+ | filter | ✔ |
60
+ | ftp | ✔ |
61
+ | hash | ✔ |
62
+ | iconv | ✔ |
63
+ | json | ✔ |
64
+ | libxml | ✔ |
65
+ | mbstring | ✔ |
66
+ | mysqlnd | ✔ |
67
+ | openssl | ✔ |
68
+ | pcre | ✔ |
69
+ | PDO | ✔ |
70
+ | pdo_sqlite | ✔ |
71
+ | Phar | ✔ |
72
+ | posix | ✔ |
73
+ | readline | ✔ |
74
+ | Reflection | ✔ |
75
+ | session | ✔ |
76
+ | SimpleXML | ✔ |
77
+ | sodium | ✔ |
78
+ | SPL | ✔ |
79
+ | sqlite3 | ✔ |
80
+ | standard | ✔ |
81
+ | tokenizer | ✔ |
82
+ | xml | ✔ |
83
+ | xmlreader | ✔ |
84
+ | xmlwriter | ✔ |
85
+ | zlib | ✔ |
86
+ <!-- /modules -->
49
87
50
88
## Example
51
89
@@ -78,7 +116,6 @@ docker run -d --rm --name devilbox-nginx-stable \
78
116
79
117
Open up your browser at http://127.0.0.1:8080
80
118
81
-
82
119
## License
83
120
84
121
** [ MIT License] ( LICENSE ) **
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+ set -u
5
+ set -o pipefail
6
+
7
+ MODULES=" $( docker run --rm -t --entrypoint=php devilbox/php-fpm-7.4 -m \
8
+ | grep -vE ' (^\[)|(^\s*$)' \
9
+ | sort -u
10
+ ) "
11
+
12
+ echo " | Module | Built-in |"
13
+ echo " |--------------|-----------|"
14
+ echo " ${MODULES} " | while read line; do
15
+ line=" $( echo " ${line} " | sed ' s/\r//g' | xargs ) "
16
+ printf " | %-12s | ✔ |\n" " ${line} "
17
+ done
0 commit comments