python

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseImage     = "python:3.13-slim-bookworm"
	CacheLocation = "/root/.cache/pip"
)

Variables

This section is empty.

Functions

func CacheFolder

func CacheFolder() string

func ComputeChecksum

func ComputeChecksum(data []byte) string

TODO: provide a shorter checksum

func Images added in v0.31.0

func Images(build container.Build) []string

func Matches added in v0.31.0

func Matches(build container.Build) bool

Matches implements the Build interface - Debian variant runs when from=debian

func New

func New() build.BuildStepv2

func NewProd

func NewProd() build.BuildStepv2

func PythonImage

func PythonImage(build container.Build) string

func Script

func Script(bs *BuildScript) string

Types

type BuildScript

type BuildScript struct {
	Verbose bool
}

func NewBuildScript

func NewBuildScript(verbose bool) *BuildScript

type Image

type Image string

type PythonContainer

type PythonContainer struct {
	Platform types.Platform
	*container.Container
	App      string
	File     string
	Folder   string
	Image    string
	ImageTag string
}

func (*PythonContainer) Address

func (c *PythonContainer) Address() *network.Address

func (*PythonContainer) Build

func (c *PythonContainer) Build() (string, error)

func (*PythonContainer) BuildPythonImage

func (c *PythonContainer) BuildPythonImage() error

func (*PythonContainer) BuildScript

func (c *PythonContainer) BuildScript() string

func (*PythonContainer) Prod

func (c *PythonContainer) Prod() error

func (*PythonContainer) Pull

func (c *PythonContainer) Pull() error

func (*PythonContainer) Run

func (c *PythonContainer) Run() error

Jump to

Keyboard shortcuts

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