akhomy / docker-compose-lamp

Docker Compose LAMP stack
MIT License
84 stars 31 forks source link

How to install php-xml in container? #3

Closed migoth closed 6 years ago

migoth commented 6 years ago

I need to install php-xml in a docker container. How can i do this?

akhomy commented 6 years ago

@Migoth, in what container do you need this? Pls, provide here the container name.

migoth commented 6 years ago

I need to install php-xml into the php-fpm container.

akhomy commented 6 years ago

Oh, I'm sorry, but I didn't add this feature like other stacks, you could add this as issue to https://github.com/a-kom/alpine-php_fpm/blob/php-7/Dockerfile, make fork and I'll merge it, or you need to create your own image from my and install in it.

migoth commented 6 years ago

Is it not possible to add a command in docker-compose.yml?

akhomy commented 6 years ago

Sorry, but currently no, if it is very important for you I could add it directly now, could you provide list of necessary extensions? I think php-xml is a good point to be in the image from the box. And I think as a point I could add builded locally image, where you could add some necessary updates. But it will be added later.

migoth commented 6 years ago

I like to use:

andrii-khomych-lemberg-co-uk commented 6 years ago

@Migoth, seems you are using the PHP-5 image, I added php-xml for PHP-5 pls wait near 30 minutes until it is building. php-memcache and php-curl were from box. You could add PHPUnit for your project via composer. Also, I'll add later build image where you could add your own extensions.

migoth commented 6 years ago

@andrii-khomych-lemberg-co-uk no im using PHP-7 ^^ but thanks

akhomy commented 6 years ago

@Migoth, so as you could see https://github.com/a-kom/alpine-php_fpm/blob/php-7/Dockerfile there are: php7-xml php7-zip php7-curl memcached from https://github.com/php-memcached-dev/php-memcached and built in composer if you need some extra packages.

akhomy commented 6 years ago

@Migoth, you can uncomment line # build: docker/images/php-fpm/. in the docker-compose.yml and comment image line. Then you can add any extensions and edit them in file docker/images/php-fpm/Dockerfile

akhomy commented 6 years ago

@Migoth, pls, reply if it is enough for you and it works.