pendashteh / magic

Experience magic of docker with a single command
GNU General Public License v3.0
1 stars 0 forks source link

Magic composer fails at creating Drupal projects #2

Open pendashteh opened 4 years ago

pendashteh commented 4 years ago

Using composer to create a drupal project fails due to lack of gd extension on the provided composer image.

$ magic composer composer create-project drupal-composer/recommended-project

Solution:

# ~/bin/magic-composer
magic composer "apk add --no-cache libpng libpng-dev && docker-php-ext-install gd && apk del libpng-dev && php -m | grep gd && composer ${@}"

and run

$ magic-composer create-project drupal-composer/recommended-project
pendashteh commented 4 years ago

Copyright: https://stackoverflow.com/a/42100719