Skip to content

sambhav/proc-descriptor-buildpack

Proc Descriptor Buildpack

Version

This is a Cloud Native Buildpack that configures processes using a project descriptor file - project.toml

Usage

The buildpack automatically generates runtime processes when you run a build:

pack build --buildpack sam/proc-descriptor myapp

You 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 = false

The keys in the io.buildpacks.processes table map directly to the keys described here.

Example

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 = false

Then run -

pack build --buildpack sam/proc-descriptor myapp
docker run myapp
docker run --entrypoint another-echo -e MYVAR=hello myapp

About

A buildpack that can add CNB processes based on the project descriptor

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors