buildscript

package
v1.23.8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 8 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeImageVersion    = "node:24"
	GolangImageVersion  = "golang:1.26.4"
	RuntimeImageVersion = "lishimeng/alpine:3.17"
	ImageSubNamespace   = "library"
)

runtime image config

Functions

func Generate

func Generate(p Project, apps ...Application) (err error)

func GenerateBaseDockerfile added in v1.10.14

func GenerateBaseDockerfile(category ...string) (err error)

Types

type Application added in v1.11.8

type Application struct {
	Name      string
	NameAlias string // name别名, 不为空时替换name
	AppPath   string
	HasUI     bool
}

func (*Application) Build added in v1.12.6

func (a *Application) Build() *Application

type DockerParam added in v1.11.9

type DockerParam struct {
	Pro               Project
	App               Application
	BuildImageVersion ImageVersion
}

type ImageVersion added in v1.12.6

type ImageVersion struct {
	Node         string // UI编译镜像
	Golang       string // golang编译镜像
	Runtime      string // 运行时镜像
	SubNamespace string // 镜像存放的二级地址,registry设置后生效 不空:{registry}/{subNamespace} 空:{registry}
}

type Param

type Param struct {
	Pro          Project
	Applications []Application
}

type Project added in v1.12.6

type Project struct {
	ImageRegistry  string // 镜像库,默认empty
	Namespace      string // namespace
	NamespaceAlias string //  namespace别名,不为空时替换namespace
}

func (*Project) Build added in v1.12.6

func (p *Project) Build() *Project

Jump to

Keyboard shortcuts

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