Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

this is just a docker image for php 7.2 + xdeug based on alpine , for personal usage

License

Notifications You must be signed in to change notification settings

zgraveyard/php-7.2-xdebug-alpine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls

Image description

This image contain php-7.2 based on alpine with xDebug, MySQL, PostgreSQL, Redis & GD enabled and Composer already installed

PHP 7.2.12 (fpm-fcgi) (built: Nov 16 2018 04:05:42)
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans

Runing the image:

By default xdebug is enabled, to disable it you need to create a .env file which should contain the following variables, but remember to change the value based one what you want to achieve:

PHP_XDEBUG_DEFAULT_ENABLE=0
PHP_XDEBUG_REMOTE_ENABLE=0
PHP_XDEBUG_REMOTE_HOST=127.0.0.1
PHP_XDEBUG_REMOTE_PORT=9001
PHP_XDEBUG_REMOTE_AUTO_START=0
PHP_XDEBUG_REMOTE_CONNECT_BACK=0
PHP_XDEBUG_IDEKEY=docker
PHP_XDEBUG_PROFILER_ENABLE=0
PHP_XDEBUG_PROFILER_OUTPUT_DIR=/tmp

Then run the docker and specify the env file that you have created like this

docker run --env-file .env -p 80:80 zaherg/php-7.2-xdebug-alpine

Installed modules information

It has the following modules:

[PHP Modules]

  1. Core
  2. ctype
  3. curl
  4. date
  5. dom
  6. fileinfo
  7. filter
  8. ftp
  9. gd
  10. hash
  11. iconv
  12. intl
  13. json
  14. libxml
  15. mbstring
  16. mysqlnd
  17. openssl
  18. pcre
  19. PDO
  20. pdo_mysql
  21. pdo_pgsql
  22. pdo_sqlite
  23. pgsql
  24. Phar
  25. posix
  26. readline
  27. redis
  28. Reflection
  29. session
  30. SimpleXML
  31. sodium
  32. SPL
  33. sqlite3
  34. standard
  35. tokenizer
  36. xdebug
  37. xml
  38. xmlreader
  39. xmlwriter
  40. zip
  41. zlib

[Zend Modules]

  1. Xdebug

GD information

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.8.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.6.34
WBMP Support => enabled
XBM Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 1 => 1