entrypoint

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinaryPath  = "/ko-app/entrypoint"
	WrapperPath = "/var/run/ko/entrypoint-wrapper.sh"

	// DefaultProcessLogPath contains both stdout and stderr. It is only used
	// when specified at runtime.
	DefaultProcessLogPath = "/tmp/imagetest.log"
	// DefaultStderrLogPath contains only stderr. It is always used to write
	// stderr.
	DefaultStderrLogPath     = "/tmp/imagetest.stderr.log"
	DefaultHealthCheckSocket = "/tmp/imagetest.health.sock"

	// Return code if entrypoint fails.
	InternalErrorCode = 1000

	// Healthcheck return code if wrapped command fails and we're paused.
	ProcessPausedErrorCode = 927
)

Variables

View Source
var DefaultEntrypoint = []string{
	BinaryPath,
	"--process-log-path", DefaultProcessLogPath,
	WrapperPath,
}
View Source
var DefaultHealthCheckCommand = []string{
	BinaryPath,
	"healthcheck",
}
View Source
var ImageRef = "ghcr.io/chainguard-dev/terraform-provider-imagetest/entrypoint:latest"

ImageRef is replaced at provider build time (ldflag) with the :tag@digest of the ./cmd/entrypoint binary.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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