Documentation ¶
Index ¶
- Constants
- func Build(ctx context.Context, platform, dockerfile, buildCtx string, tags []string, ...) error
- func BuildDefault(ctx context.Context, imageName, url string) error
- func BuildDefaultWithDockerfile(ctx context.Context, imageName, url string, dockerfile string) error
- func DefaultLabels(imageName, url, desc string) map[string]string
- func Docker(ctx context.Context, args ...string) error
- func PushAllTags(ctx context.Context, imageName string) error
- func Run(ctx context.Context, args ...string) error
- func Tags(imageName string, tags ...string) []string
Constants ¶
View Source
const ( OCILabelTitle = "org.opencontainers.image.title" OCILabelURL = "org.opencontainers.image.url" OCILabelVersion = "org.opencontainers.image.version" OCILabelDescription = "org.opencontainers.image.description" OCILabelCreated = "org.opencontainers.image.created" OCILabelSource = "org.opencontainers.image.source" OCILabelLicenses = "org.opencontainers.image.licenses" OCILabelAuthors = "org.opencontainers.image.authors" OCILabelVendor = "org.opencontainers.image.vendor" OCILabelRevision = "org.opencontainers.image.revision" )
View Source
const ( DefaultPlatform = "linux/amd64" DefaultDockerfile = "Dockerfile" DefaultBuildCtx = "." DefaultExtraCtx = "./target/bin/linux/amd64/" )
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(ctx context.Context, platform, dockerfile, buildCtx string, tags []string, extraCtx, labels map[string]string) error
Build is a short hand for docker buildx build with sane default flags.
func BuildDefault ¶
BuildDefault builds image with sane defaults.
func BuildDefaultWithDockerfile ¶ added in v1.5.7
func BuildDefaultWithDockerfile(ctx context.Context, imageName, url string, dockerfile string) error
BuildDefaultWithDockerfile builds image from custom Dockerfile location
func DefaultLabels ¶
DefaultLabels provides labels for Elisa SoSe/SRE organization.
func PushAllTags ¶
PushAllTags pushes all tags for given image.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.