Skip to content

Commit

Permalink
use an absolute path for the launcher binary
Browse files Browse the repository at this point in the history
When using a custom (non-default) PATH environment variable, we need to make sure to always being able to launch the `launcher` binary.
  • Loading branch information
thirdeyenick committed Nov 25, 2024
1 parent c91ba37 commit b94eaef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions exec/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b94eaef

Please sign in to comment.