Php: PHP7 enable sockets

Created on 20 Jan 2016  路  2Comments  路  Source: docker-library/php

Hi ,

I would like to enable sockets on PHP to use mongofill with Yii2

https://github.com/mongofill/mongofill

But there's no documentation and no easy way to do it :(

Can you help me plz ?

Thx

Most helpful comment

Something simple like this should do the trick:

FROM php:7
RUN docker-php-ext-install sockets

Combine that with automated builds (https://docs.docker.com/docker-hub/builds/) and repository links (https://docs.docker.com/docker-hub/builds/#repository-links) and it's reasonably easy to have an up-to-date image built FROM this one with the sockets extension installed.

All 2 comments

Something simple like this should do the trick:

FROM php:7
RUN docker-php-ext-install sockets

Combine that with automated builds (https://docs.docker.com/docker-hub/builds/) and repository links (https://docs.docker.com/docker-hub/builds/#repository-links) and it's reasonably easy to have an up-to-date image built FROM this one with the sockets extension installed.

It works like a charm !

Thx

Was this page helpful?
0 / 5 - 0 ratings