From b94eaef35d405c9ccca1f8e1d290ca78d14981ba Mon Sep 17 00:00:00 2001 From: Sebastian Nickel Date: Mon, 25 Nov 2024 13:57:52 +0100 Subject: [PATCH] use an absolute path for the launcher binary When using a custom (non-default) PATH environment variable, we need to make sure to always being able to launch the `launcher` binary. --- exec/application.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/exec/application.go b/exec/application.go index ba14958..fed13d4 100644 --- a/exec/application.go +++ b/exec/application.go @@ -20,9 +20,11 @@ import ( const ( appBuildTypeBuildpack appBuildType = "buildpack" appBuildTypeDockerfile appBuildType = "dockerfile" - buildpackEntrypoint = "launcher" - defaultShellBuildpack = "/bin/bash" - defaultShellDockerfile = "/bin/sh" + // the launcher binary helps in setting up the application expected + // environment + buildpackEntrypoint = "/cnb/lifecycle/launcher" + defaultShellBuildpack = "/bin/bash" + defaultShellDockerfile = "/bin/sh" ) // appBuildType describes the way how the app was build (buildpack/dockerfile)