Open sylvainkalache opened 1 year ago
I'm not familiar with CF Korifi, but your platform may not be using the right stack.
libxml2
package is mandated by the php-dist component buildpack, which is provided by the Paketo Jammy Full Stack. You cannot use other stacks (tiny, base, static etc.) since the only the full stack fulfills this requirement.
See Full stack Bill of Materials - https://github.com/paketo-buildpacks/jammy-full-stack/releases/download/v0.0.118/jammy-full-stack-0.0.118-build-receipt.cyclonedx.json
Please feel free to reopen the issue for further discussions
Just to add to this, I think there's some confusion here - you're pushing the Paketo samples to Cloud Foundry. The Paketo samples are intended for the Paketo buildpacks. For Cloud Foundry Php support you could take a look at the CF Php buildpack.
@robdimsdale , What Sylvain is referring to here is Cloud Foundry Korifi which internally uses kpack, which uses Paketo Buildpacks for builds. I tried using the pack command to build this app and got a couple of errors. Pasting below for reference.
$ pwd
~/samples/php/builtin-server
$ pack build php-builtin-server-sample
...
ERROR: No buildpack groups passed detection.
ERROR: Please check that you are running against the correct path.
ERROR: failed to detect: no buildpacks participating
ERROR: failed to build: executing lifecycle: failed with status code: 20
$ pack build php-builtin-server-sample --buildpack paketo-buildpacks/php
...
ERROR: failed to build: validating stack mixins: buildpack paketo-buildpacks/php-dist@2.1.8 requires missing mixin(s): libargon2-0, libcurl4, libedit2, libgd3, libmagickwand-6.q16-3, libonig4, libxml2
Ok, thanks for clarifying.
What builder/stack are you using for the pack
case @ramiyengar ? Debugging that will probably give some insight as to what's going on with the Korifi build
I was using paketobuildpacks/builder:base
. Switching to the full
builder resolved this.
The Buildpack is not installing libxml2 which is needed for PHP to run.
Expected Behavior
Shall not the PHP Buildpack install libxml2 natively? I am new to using Buildpack so I may be missing something :)
Current Behavior
Steps to Reproduce
Motivations
I am trying to push a PHP app using CloudFoundry Korifi.