You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only for very specific stacks, the processes are started with direct: true which doesn't require a bash 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 error
ERROR: failed to launch: bash exec: no such file or directory
Possible 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 to false) which controls how to set direct.
Steps to Reproduce
Unfortunately, it is not possible to reproduce with paketo images since bionic.tiny and jammy.tiny are hardcoded to work. noble.tiny would be broken too, but unfortunately, there is no builder yet released with noble (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.
The text was updated successfully, but these errors were encountered:
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?
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.The text was updated successfully, but these errors were encountered: