Skip to content

Commit 85e87de

Browse files
Lawrence DudleyLawrence Dudley
Lawrence Dudley
authored and
Lawrence Dudley
committed
add example dockerfile, update readme with php modules and version breakdown
1 parent 1e5ad9e commit 85e87de

File tree

3 files changed

+78
-1
lines changed

3 files changed

+78
-1
lines changed

README.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ We use [Supervisord](http://supervisord.org/) to bootstrap the following service
5858

5959
You don't have to run all of these services - if you're not using Kubernetes, the status and Prometheus exporters are likely to be of little use to you, in which case we would suggest setting DISABLE_MONITORING to 'true' to only have an Nginx listening on 0.0.0.0:80 and a PHP-FPM socket at /run/php.sock.
6060

61+
## Example Container
62+
63+
There is an example container in [examples/hello-world](examples/hello-world). To run it:
64+
65+
```bash
66+
cd examples/hello-world
67+
docker build -t example .
68+
docker run -p 8080:80 example
69+
```
70+
71+
You should be able to visit the container on http://127.0.0.1:8080/ and see the contents of index.php from /examples/hello-world/src.
72+
6173
# The worker mode/command
6274

6375
The worker mode is used when you want to run a worker-type task in this container. Usually this means something like php artisan queue:work.
@@ -91,4 +103,65 @@ Example:
91103

92104
```
93105
* * * * * date
94-
```
106+
```
107+
108+
# PHP Modules
109+
| Module | 5.6 | 7.1 | 7.2 |
110+
| --- | --- | --- | --- |
111+
| apc ||||
112+
| apcu ||||
113+
| bcmath ||||
114+
| calendar ||||
115+
| Core ||||
116+
| ctype ||||
117+
| curl ||||
118+
| date ||||
119+
| dom ||||
120+
| ereg ||||
121+
| exif ||||
122+
| fileinfo ||||
123+
| filter ||||
124+
| ftp ||||
125+
| gd ||||
126+
| gettext ||||
127+
| hash ||||
128+
| iconv ||||
129+
| imagick ||||
130+
| intl ||||
131+
| json ||||
132+
| ldap ||||
133+
| libxml ||||
134+
| mbstring ||||
135+
| mcrypt ||||
136+
| mysqli ||||
137+
| mysqlnd ||||
138+
| newrelic ||||
139+
| openssl ||||
140+
| pcntl ||||
141+
| pcre ||||
142+
| PDO ||||
143+
| pdo_mysql ||||
144+
| pdo_sqlite ||||
145+
| Phar ||||
146+
| posix ||||
147+
| readline ||||
148+
| redis ||||
149+
| Reflection ||||
150+
| session ||||
151+
| SimpleXML ||||
152+
| soap ||||
153+
| sockets ||||
154+
| SPL ||||
155+
| sqlite3 ||||
156+
| standard ||||
157+
| tidy ||||
158+
| tokenizer ||||
159+
| wddx ||||
160+
| xml ||||
161+
| xmlreader ||||
162+
| xmlrpc ||||
163+
| xmlwriter ||||
164+
| xsl ||||
165+
| Zend OPcache ||||
166+
| zip ||||
167+
| zlib ||||

examples/hello-world/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM prlx/prlx-nginx-php-fpm:7.2
2+
3+
ADD /src /src/public

examples/hello-world/src/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
It works! Running PHP <?php echo phpversion(); ?>

0 commit comments

Comments
 (0)