From a6e8e94659b58b900fdac9ce839395760addd485 Mon Sep 17 00:00:00 2001 From: cytopia Date: Wed, 2 Feb 2022 18:49:58 +0100 Subject: [PATCH] Initial commit --- README.md | 173 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d33915c --- /dev/null +++ b/README.md @@ -0,0 +1,173 @@ +# PHP-FPM 8.2 + +[![lint](https://github.com/devilbox/docker-php-fpm-8.2/workflows/lint/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.2/actions?query=workflow%3Alint) +[![build](https://github.com/devilbox/docker-php-fpm-8.2/workflows/build/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.2/actions?query=workflow%3Abuild) +[![nightly](https://github.com/devilbox/docker-php-fpm-8.2/workflows/nightly/badge.svg)](https://github.com/devilbox/docker-php-fpm-8.2/actions?query=workflow%3Anightly) + +[![Tag](https://img.shields.io/github/tag/devilbox/docker-php-fpm-8.2.svg)](https://github.com/devilbox/docker-php-fpm-8.2/releases) +[![Gitter](https://badges.gitter.im/devilbox/Lobby.svg)](https://gitter.im/devilbox/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Discourse](https://img.shields.io/discourse/https/devilbox.discourse.group/status.svg?colorB=%234CB697)](https://devilbox.discourse.group) +[![](https://images.microbadger.com/badges/version/devilbox/php-fpm-8.2.svg)](https://microbadger.com/images/devilbox/php-fpm-8.2 "php-fpm-8.2") +[![](https://images.microbadger.com/badges/image/devilbox/php-fpm-8.2.svg)](https://microbadger.com/images/devilbox/php-fpm-8.2 "php-fpm-8.2") +[![License](https://img.shields.io/badge/license-MIT-%233DA639.svg)](https://opensource.org/licenses/MIT) + +This repository will provide you a fully functional PHP-FPM 8.2 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). + +| Docker Hub | Upstream Project | +|------------|------------------| +| | | + +## Similar Base Images + +Have a look at the following similar Devilbox base images for which no official versions exist yet: + +* [PHP-FPM 5.2](https://github.com/devilbox/docker-php-fpm-5.2) +* [PHP-FPM 5.3](https://github.com/devilbox/docker-php-fpm-5.3) +* [PHP-FPM 7.4](https://github.com/devilbox/docker-php-fpm-7.4) +* [PHP-FPM 8.0](https://github.com/devilbox/docker-php-fpm-8.0) +* [PHP-FPM 8.2](https://github.com/devilbox/docker-php-fpm-8.2) + +In case you are looking for development and production ready PHP-FPM images for all versions, +which have a vast amount of modules enabled by default go here: + +* [PHP-FPM](https://github.com/devilbox/docker-php-fpm) + +## Documentation + +In case you seek help, go and visit the community pages. + + + + + + + + + + + + + + + + + + + + + +

Documentation

Chat

Forum

+ + + + + + + + + + + +
devilbox.readthedocs.iogitter.im/devilboxdevilbox.discourse.group
+ +## Build + +```bash +# Build the Docker image locally +make build + +# Rebuild the Docker image locally without cache +make rebuild + +# Test the Docker image after building +make test +``` + +## Usage + +Add the following `FROM` line into your Dockerfile: + +```dockerfile +FROM devilbox/php-fpm-8.2:latest +``` + +## Available Modules + +If you need a dockerized version of **PHP 8.2** or **PHP-FPM 8.2** which provides a vast amount of +modules enabled by default visit: **[devilbox/docker-php-fpm](https://github.com/devilbox/docker-php-fpm)** + + +| Module | Built-in | +|--------------|-----------| +| Core | ✔ | +| ctype | ✔ | +| curl | ✔ | +| date | ✔ | +| dom | ✔ | +| FFI | ✔ | +| fileinfo | ✔ | +| filter | ✔ | +| ftp | ✔ | +| hash | ✔ | +| iconv | ✔ | +| json | ✔ | +| libxml | ✔ | +| mbstring | ✔ | +| mysqlnd | ✔ | +| openssl | ✔ | +| pcre | ✔ | +| PDO | ✔ | +| pdo_sqlite | ✔ | +| Phar | ✔ | +| posix | ✔ | +| readline | ✔ | +| Reflection | ✔ | +| session | ✔ | +| SimpleXML | ✔ | +| sodium | ✔ | +| SPL | ✔ | +| sqlite3 | ✔ | +| standard | ✔ | +| tokenizer | ✔ | +| xml | ✔ | +| xmlreader | ✔ | +| xmlwriter | ✔ | +| zlib | ✔ | + + +## Example + +Create a temporary directory, navigate into it and copy/paste the commands below to get started. + +#### 1. Setup hello world webpage +```bash +mkdir htdocs +echo " htdocs/index.php +``` + +#### 2. Start PHP container +```bash +docker run -d --rm --name devilbox-php-fpm-8-2 \ + -v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-8.2 +``` + +#### 3. Start Nginx container +```bash +docker run -d --rm --name devilbox-nginx-stable \ + -v $(pwd)/htdocs:/var/www/default/htdocs \ + -e PHP_FPM_ENABLE=1 \ + -e PHP_FPM_SERVER_ADDR=devilbox-php-fpm-8-2 \ + -p 8080:80 \ + --link devilbox-php-fpm-8-2 \ + devilbox/nginx-stable +``` + +#### 4. Open browser + +Open up your browser at http://127.0.0.1:8080 + +## License + +**[MIT License](LICENSE)** + +Copyright (c) 2019 [cytopia](https://github.com/cytopia)