Skip to content

docker-php-ext-enable misses nm in alpine #417

@grikdotnet

Description

@grikdotnet

The script docker-php-ext-enable calls nm utility to check if the extension is normal one or a zend extension.
https://github.com/docker-library/php/blob/master/7.1/alpine/docker-php-ext-enable#L61

How to reproduce:

$ docker run --rm -ti php:7-alpine /bin/sh
/ # docker-php-ext-enable opcache
/usr/local/bin/docker-php-ext-enable: line 83: nm: not found
/ # php -v
PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=opcache.so from php.ini) in Unknown on line 0

Apline does not contain nm by default, it should be installed with a

/ # apk --update add binutils

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions