-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
/bin/sh
wrapping from container shell commands (#464)
Previously `libcnb-test` wrapped the shell commands for `PrepareContainerContext::start_with_shell_command` and `ContainerContext::shell_exec` in `/bin/sh -c '...'` invocation. This is unnecessary, since `launcher` already runs the passed commands using bash: https://buildpacks.io/docs/app-developer-guide/run-an-app/#user-provided-shell-process https://buildpacks.io/docs/app-developer-guide/run-an-app/#user-provided-shell-process-with-bash-script In addition, it's not necessary to hardcode the full launcher path, since `/cnb/lifecycle` is automatically put on `PATH` during image creation. Now, the way the commands are invoked are consistent with how users are instructed to run processes in the upstream CNB docs. GUS-W-11415544.
- Loading branch information
Showing
4 changed files
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
web: python3 -u -m http.server | ||
web: python3 -u -m http.server ${PORT:+"${PORT}"} | ||
worker: echo 'this is the worker process!' | ||
echo-args: echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters