production

package
v0.0.131 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Distroless = "distroless"
	Alpine     = "alpine"

	DefaultNonRootUserID = 65000
	DefaultFSGroup       = 65000
)

Variables

This section is empty.

Functions

func DevelopmentImage

func DevelopmentImage(ctx context.Context, name string, makeClient buildkit.ClientFactory, target build.BuildTarget) (oci.NamedImage, error)

DevelopmentImage returns a minimal base image where we add tools for development. Use of development images is temporary, and likely to only be used when ephemeral containers are not available.

func NonRootRunAs

func NonRootRunAs(server string) *runtime.RunAs

func NonRootRunAsWithID

func NonRootRunAsWithID(id int, fsGroup *int) *runtime.RunAs

func NonRootUser

func NonRootUser() func(llb.State) llb.State

func ServerImage

func ServerImage(name string, target specs.Platform) (oci.NamedImage, error)

Returns a Computable[v1.Image]

func ServerImageLLB

func ServerImageLLB(name string, target specs.Platform) (llb.State, error)

func WithNonRootUserWithUserID

func WithNonRootUserWithUserID(userid int) func(llb.State) llb.State

Types

This section is empty.

Jump to

Keyboard shortcuts

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