cnbshim

package module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2019 License: MIT Imports: 8 Imported by: 0

README

Cloud Native Buildpack Shim Build Status

This is a Cloud Native Buildpack that acts as a shim for Heroku Buildpacks.

To use it, install the target buildpack:

$ bin/install "path/to/buildpack.toml" "https://example.com/buildpack.tgz"

Then run this buildpack.

Example: Elixir

To use this shim with the hashnuke/elixir buildpack, install pack CLI and run:

$ cd elixir-cnb

$ curl -L https://github.com/heroku/cnb-shim/releases/download/v0.0.2/cnb-shim-v0.0.2.tgz | tar xz

$ cat > buildpack.toml << TOML
> [buildpack]
> id = "hashnuke.elixir"
> version = "0.1"
> name = "Elixir"
>
> [[stacks]]
> id = "heroku-18"
TOML

$ bin/install buildpack.toml https://buildpack-registry.s3.amazonaws.com/buildpacks/hashnuke/elixir.tgz

$ cd ~/my-elixir-app/

$ pack build elixir-app --builder heroku/buildpacks --buildpack ~/path/to/elixir-cnb

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpExportsFile added in v0.0.5

func DumpExportsFile(exportsData, envDir string) error

func ParseExportsFileLine added in v0.0.5

func ParseExportsFileLine(line string) (bool, string, string)

func ReadProcfile

func ReadProcfile(appDir string) (map[string]string, error)

func WriteEnvFile added in v0.0.5

func WriteEnvFile(envDir, filename, value string) error

func WriteLaunchMetadata

func WriteLaunchMetadata(appDir, layersDir, targetBuildpackDir string, log logger.Logger) error

Types

type Release

type Release struct {
	DefaultProcessTypes map[string]string `yaml:"default_process_types,omitempty"`
}

func ExecReleaseScript

func ExecReleaseScript(appDir, targetBuildpackDir string) (Release, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL