Skip to content

Dependency on zip extension #168

@asgrim

Description

@asgrim

Chicken/egg raises its head when installing for example in a Dockerfile; for example, given the following:

FROM php:8.4-cli

COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie

RUN pie install xdebug/xdebug

It would be useful if this worked out the box, but it does not, as Box correctly identifies that zip ext is missing when you try to build it, docker build --file test2.Dockerfile . for example:

 > [stage-0 3/3] RUN pie install xdebug/xdebug:                                                                                             
0.204                                                                                                                                       
0.204 Box Requirements Checker                                                                                                              
0.204 ========================
0.204 
0.204 > Using PHP 8.4.2
0.204 > PHP is not using any php.ini file.
0.204 
0.204 > Checking Box requirements:
0.204   ...E.
0.204 
0.204                                                                                 
0.204  [ERROR] Your system is not ready to run the application.                       
0.204                                                                                 
0.204 
0.204 Fix the following mandatory requirements:
0.204 =========================================
0.204 
0.204  * This application requires the extension "zip". You either need to enable it
0.204    or request the application to be shipped with a polyfill for this extension.
0.204 
------
test2.Dockerfile:5
--------------------
   3 |     COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
   4 |     
   5 | >>> RUN pie install xdebug/xdebug
   6 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c pie install xdebug/xdebug" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions