buildpacks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BuildpackImage defines the name of the default buildpack builder image
	// with which to execute the buildpack lifecycle.  We default to Paketo,
	// see other options below.
	//
	// For GCP see: http://github.com/GoogleCloudPlatform/buildpacks
	//  - gcr.io/buildpacks/builder
	//
	// For Boson see: https://github.com/boson-project/faas/blob/main/buildpacks/builder.go#L25
	//  - Quarkus: quay.io/boson/faas-quarkus-builder
	//  - Node.js: quay.io/boson/faas-nodejs-builder
	//  - Go:      quay.io/boson/faas-go-builder
	BuildpackImage = "docker.io/paketobuildpacks/builder:full"
)

Variables

View Source
var (
	// PlatformSetupImageString holds a reference to a built image of ./cmd/platform-setup
	// See ./hack/build-flags.sh for how this is replaced at link-time.
	PlatformSetupImageString = "ghcr.io/mattmoor/github.com/mattmoor/mink/cmd/platform-setup:latest"
	// PlatformSetupImage is where we publish ./cmd/platform-setup
	PlatformSetupImage, _ = name.ParseReference(PlatformSetupImageString)

	// ExtractDigestImageString holds a reference to a built image of ./cmd/extract-digest
	// See ./hack/build-flags.sh for how this is replaced at link-time.
	ExtractDigestImageString = "ghcr.io/mattmoor/github.com/mattmoor/mink/cmd/extract-digest:latest"
	// ExtractDigestImage is where we publish ./cmd/extract-digest
	ExtractDigestImage, _ = name.ParseReference(ExtractDigestImageString)

	// BuildpackTaskString holds the raw definition of the Buildpack task.
	// We export this into ./examples/buildpack.yaml
	BuildpackTaskString = `` /* 3216-byte string literal not displayed */

	// BuildpackTask is the parsed form of BuildpackTaskString.
	BuildpackTask tknv1beta1.Task
)

Functions

func Build

func Build(ctx context.Context, source name.Reference, target name.Tag, opt Options) *tknv1beta1.TaskRun

Build synthesizes a TaskRun definition that evaluates the buildpack lifecycle with the given options over the provided source.

Types

type Options

type Options struct {
	// Builder is the name of the builder image for which to apply the buildpack lifecycle.
	Builder string

	// DescriptorFile holds the name of the project descriptor file (aka project.toml).
	DescriptorFile string
}

Options are the options for executing a buildpack build.

Jump to

Keyboard shortcuts

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