jorge07/alpine-php

PHP extensions missing: ext-gd and ext-xmlreader

richardhj opened this issue · 2 comments

Hi!

First of all thank you. I am glad I found this package because it is packed with exactly what I need for my build.

However, some PHP extensions are missing, which I think are really basic.

I am using jorge07/alpine-php:7.1-dev. Surely it works with the --ignore-platform-reqs flag.

Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for contao/core-bundle 4.6.3 -> satisfiable by contao/core-bundle[4.6.3].
    - contao/core-bundle 4.6.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.
  Problem 2
    - Installation request for simplepie/simplepie 1.5.2 -> satisfiable by simplepie/simplepie[1.5.2].
    - simplepie/simplepie 1.5.2 requires ext-xmlreader * -> the requested PHP extension xmlreader is missing from your system.
  Problem 3
    - contao/core-bundle 4.6.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php7/php.ini
    - /etc/php7/conf.d/00_apcu.ini
    - /etc/php7/conf.d/00_bcmath.ini
    - /etc/php7/conf.d/00_ctype.ini
    - /etc/php7/conf.d/00_curl.ini
    - /etc/php7/conf.d/00_exif.ini
    - /etc/php7/conf.d/00_iconv.ini
    - /etc/php7/conf.d/00_intl.ini
    - /etc/php7/conf.d/00_json.ini
    - /etc/php7/conf.d/00_mbstring.ini
    - /etc/php7/conf.d/00_mysqli.ini
    - /etc/php7/conf.d/00_opcache.ini
    - /etc/php7/conf.d/00_openssl.ini
    - /etc/php7/conf.d/00_pcntl.ini
    - /etc/php7/conf.d/00_pdo.ini
    - /etc/php7/conf.d/00_pdo_pgsql.ini
    - /etc/php7/conf.d/00_posix.ini
    - /etc/php7/conf.d/00_session.ini
    - /etc/php7/conf.d/00_sodium.ini
    - /etc/php7/conf.d/00_xdebug.ini
    - /etc/php7/conf.d/00_xml.ini
    - /etc/php7/conf.d/00_zip.ini
    - /etc/php7/conf.d/00_zlib.ini
    - /etc/php7/conf.d/01_dom.ini
    - /etc/php7/conf.d/01_mysqlnd.ini
    - /etc/php7/conf.d/01_phar.ini
    - /etc/php7/conf.d/01_xsl.ini
    - /etc/php7/conf.d/20_pdo_mysql.ini
    - /etc/php7/conf.d/20_redis.ini
    - /etc/php7/conf.d/50-setting.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Hi @richardhj,

My initial approach with this use case use to be crate a Dockerfile and install my personal dependencies. https://github.com/Lutacon/symfony-4-es-cqrs-boilerplate/blob/65da15b34885e4f0f3a065a7e620da8d89654af4/etc/dev/php/Dockerfile

If this dependencies are so common, add it to the original Dockerfile can be an option.

But I understand that work with XML is a quite common use case. So I may consider add this packages...

Closing. Feel free to reopen if needed