Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pecl does not work under alpine versions #412

Closed
mikk150 opened this issue Apr 18, 2017 · 3 comments
Closed

pecl does not work under alpine versions #412

mikk150 opened this issue Apr 18, 2017 · 3 comments

Comments

@mikk150
Copy link
Contributor

mikk150 commented Apr 18, 2017

I am trying to convert my PHP image from php:7.0-zts to php:7.0-zts-alpine, but I havent yet found how to make pecl work

phpize is missing

@tianon
Copy link
Member

tianon commented Apr 25, 2017

phpize should be available, but the dependencies it requires are not; I've had success just now building the following on my machine:

FROM php:7.0-fpm-alpine

RUN apk add --no-cache \
		$PHPIZE_DEPS \
		openssl-dev

RUN pecl install mongodb-1.2.5
RUN docker-php-ext-enable mongodb

@mikk150
Copy link
Contributor Author

mikk150 commented Apr 25, 2017

oh phpize is not installed when $PHPIZE_DEPS is not installed

FROM php:7.0-zts-alpine

RUN apk add --no-cache \
        $PHPIZE_DEPS \
    && pecl install pthreads \
    && docker-php-ext-enable pthreads

actually works...

@MatTheCat
Copy link

I find it a bit sad to have to reinstall all of $PHPIZE_DEPS. Couldn't this be handled trough a package.xml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants