Documentation
¶
Index ¶
- Constants
- func CacheFolder() string
- func Images(build container.Build) []string
- func Matches(build container.Build) bool
- func New() build.BuildStepv2
- func NewProd() build.BuildStepv2
- func PythonImage(build container.Build) string
- func Script(bs *BuildScript) string
- type BuildScript
- type Builder
- type Commands
- type Files
- type Image
- type PrivateIndex
- type PythonContainer
- func (c *PythonContainer) Address() *network.Address
- func (c *PythonContainer) Build() (string, error)
- func (c *PythonContainer) BuildPythonImage() error
- func (c *PythonContainer) BuildScript() string
- func (c *PythonContainer) Prod() error
- func (c *PythonContainer) Pull() error
- func (c *PythonContainer) Run() error
- type Tool
Constants ¶
View Source
const ( BaseImage = "python:3.14-slim-bookworm" CacheLocation = "/root/.cache/pip" )
Variables ¶
This section is empty.
Functions ¶
func CacheFolder ¶
func CacheFolder() string
func Matches ¶ added in v0.31.0
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 Script ¶
func Script(bs *BuildScript) string
Types ¶
type BuildScript ¶
type BuildScript struct {
Folder string
PrivateIndex PrivateIndex
Commands Commands
Verbose bool
}
func NewBuildScript ¶
func NewBuildScript(folder string, verbose bool, privateIndex PrivateIndex, commands Commands) *BuildScript
type Builder ¶ added in v0.31.4
func NewBuilder ¶ added in v0.31.4
type PrivateIndex ¶ added in v0.31.4
type PrivateIndex string
func NewPrivateIndex ¶ added in v0.31.4
func NewPrivateIndex(custom container.Custom) PrivateIndex
func (PrivateIndex) Environ ¶ added in v0.31.4
func (pi PrivateIndex) Environ() string
func (PrivateIndex) String ¶ added in v0.31.4
func (pi PrivateIndex) String() string
func (PrivateIndex) Username ¶ added in v0.31.4
func (pi PrivateIndex) Username() string
type PythonContainer ¶
type PythonContainer struct {
Platform types.Platform
*container.Container
App string
File string
Folder string
Image string
ImageTag string
Secret map[string]string
PrivateIndex PrivateIndex
}
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
Click to show internal directories.
Click to hide internal directories.