getgrav / docker-grav

Official Docker Image for Grav
https://getgrav.org
199 stars 123 forks source link

podman build #37

Open trickert76 opened 3 years ago

trickert76 commented 3 years ago

Hi,

because it exists, I try to run the image via podman v2.2.1. For that I need to build it. But during build process on the task

RUN pecl install apcu \
    && pecl install yaml-2.0.4 \
    && docker-php-ext-enable apcu yaml

I'm getting this output and the build process stops. I think it asked for user input.

STEP 6: RUN pecl install apcu     && pecl install yaml-2.0.4     && docker-php-ext-enable apcu yaml
downloading apcu-5.1.19.tgz ...
Starting to download apcu-5.1.19.tgz (96,583 bytes)
.....................done: 96,583 bytes
45 source files, building
running: phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
Enable internal debugging in APCu [no] : 

Nothing happens - it waits. I can't find any command switch like -yes or -no in pecl. I know, that is maybe not your issue, but maybe you've an idea.

defaultroute-eu commented 3 years ago

Hi trickert76,

I had the same problem with podman today and was able to fix it by changing the line to:

RUN yes '' | pecl install apcu \
    && yes '' | pecl install yaml-2.0.4 \
    && docker-php-ext-enable apcu yaml