Closed c0d1ngm0nk3y closed 4 weeks ago
This sounds like a reasonable workaround until the new libcnb version is out. @dmikusa wdyt?
This sounds like a reasonable workaround until the new libcnb version is out. @dmikusa wdyt?
I agree and would also appreciate taking this workaround in while we do not have a concrete upgrade plan to libcnb@v2. In particular, because even with a plan in place, we would probably still talk about weeks if not months until the procfile would be based on v2 and the problem be fixed. @paketo-buildpacks/utilities-maintainers WDYT?
It sounds good to me. I have a few minor notes about how we phrase this, but functionality is 👍.
Only for very specific stacks, the processes are started with
direct: true
which doesn't require abash
to be present.If you use a run image for another stack,
bash
will be used.Expected Behavior
It should work by calling the process directly.
Current Behavior
If no
bash
is present on the run image, you get the errorPossible Solution
I see 2 possible solutions
This is staight forward - just supprt BUILDPACK_API 0.9 like discussed in this issue. Then all processes would be started directly.
Introduce an environment variable
BP_DIRECT_PROCESS
(defaults tofalse
) which controls how to setdirect
.Steps to Reproduce
Unfortunately, it is not possible to reproduce with paketo images since
bionic.tiny
andjammy.tiny
are hardcoded to work.noble.tiny
would be broken too, but unfortunately, there is no builder yet released withnoble
(why?).But I created this simple
nodejs
based sample to reproduce.Motivations
We want to use a minimal run image and not having a
bash
in there for no real reason.