runtimes

package
v0.0.0-...-a41b62c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerPort        = "8080"
	FunctionMountPath = "/usr/src/app/function"
	KubelessPath      = "/kubeless"
	KubelessTmpPath   = "/tmp/kubeless"
	ContainerUser     = "root"

	NodejsPath          = "NODE_PATH=$(KUBELESS_INSTALL_VOLUME)/node_modules"
	NodejsDebugEndpoint = `9229`

	Python39Path        = "PYTHONPATH=$(KUBELESS_INSTALL_VOLUME)/lib.python3.9/site-packages:$(KUBELESS_INSTALL_VOLUME)"
	Python312Path       = "PYTHONPATH=$(KUBELESS_INSTALL_VOLUME)/lib.python3.12/site-packages:$(KUBELESS_INSTALL_VOLUME)"
	PythonHotDeploy     = "CHERRYPY_RELOADED=true"
	PythonUnbuffered    = "PYTHONUNBUFFERED=TRUE"
	PythonDebugEndpoint = `5678`
)

Variables

This section is empty.

Functions

func ContainerCommands

func ContainerCommands(runtime types.Runtime, debug bool, hotDeploy bool) []string

func ContainerEnvs

func ContainerEnvs(runtime types.Runtime, hotDeploy bool) []string

func ContainerImage

func ContainerImage(runtime types.Runtime) string

func GetMounts

func GetMounts(runtime types.Runtime, sourceType workspace.SourceType, workDir string) []mount.Mount

func MoveInlineCommand

func MoveInlineCommand(runtime types.Runtime, sourcePath, depsPath string) []string

func RuntimeDebugPort

func RuntimeDebugPort(runtime types.Runtime) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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