phpearth / docker-php

🐳 Docker For PHP developers - Docker images with PHP, Nginx, OpenLiteSpeed, Apache, Lighttpd, and Alpine
https://docs.php.earth/docker
MIT License
261 stars 80 forks source link

New extension meminfo for memory leaks detection #15

Closed insekticid closed 6 years ago

insekticid commented 6 years ago
RUN curl -L -o /tmp/meminfo.tar.gz https://github.com/BitOne/php-meminfo/archive/master.tar.gz \
    && tar zxpf /tmp/meminfo.tar.gz -C /tmp \
    && rm -r /tmp/meminfo.tar.gz \
    && cd /tmp/php-meminfo-master/extension/php7/ && phpize && ./configure --enable-meminfo && make && make install \
    && rm -rf /tmp/* \
    && printf "extension=meminfo.so\n" > $PHP_INI_DIR/conf.d/meminfo.ini
petk commented 6 years ago

The php-meminfo extension has been added to the PHP.earth Alpine repo.

Installation:

apk add --no-cache php7.2-meminfo

The docs will be updated in the near future also.

Closing this as resolved and enhanced. In case of issues or questions let me know. Thanks.