This is a Cloud Native Buildpack that configures processes using a project descriptor file - project.toml
The buildpack automatically generates runtime processes when you run a build:
pack build --buildpack sam/proc-descriptor myappYou can customize the process types by creating a project.toml file in your application, and a table like:
[[io.buildpacks.processes]]
type = "<process type>"
command = "<command>"
args = ["<arguments>"]
direct = false
default = falseThe keys in the io.buildpacks.processes table map directly to the keys described here.
For example create a project.toml file with the following content -
[[io.buildpacks.processes]]
type = "web"
command = "echo"
args = ["hello"]
direct = true
[[io.buildpacks.processes]]
type = "another-echo"
command = "echo"
args = ["$MYVAR"]
direct = false
default = falseThen run -
pack build --buildpack sam/proc-descriptor myapp
docker run myapp
docker run --entrypoint another-echo -e MYVAR=hello myapp