Documentation
¶
Index ¶
- func Build(ctx context.Context, cfg *config.Config, dc *dotcog.Dir, dir, imageName string, ...) (string, error)
- func BuildAddLabelsAndSchemaToImage(ctx context.Context, dockerClient command.Command, tmpName, image string, ...) (string, error)
- func CogConfigFromManifest(ctx context.Context, manifest *image.InspectResponse) (*config.Config, error)
- func GeneratePipFreeze(ctx context.Context, dockerClient command.Command, imageName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build( ctx context.Context, cfg *config.Config, dc *dotcog.Dir, dir, imageName string, configFilename string, secrets []string, noCache, separateWeights bool, useCudaBaseImage string, progressOutput string, schemaFile string, dockerfileFile string, useCogBaseImage *bool, strip bool, precompile bool, excludeSource bool, skipSchemaValidation bool, skipLabels bool, annotations map[string]string, dockerCommand command.Command, client registry.Client) (string, error)
Build a Cog model from a config and returns the image ID (sha256:...) on success.
This is separated out from docker.Build(), so that can be as close as possible to the behavior of 'docker build'.
func BuildAddLabelsAndSchemaToImage ¶ added in v0.14.9
func BuildAddLabelsAndSchemaToImage(ctx context.Context, dockerClient command.Command, tmpName, image string, labels map[string]string, bundleFiles []string, progressOutput string, buildCacheDir string) (string, error)
BuildAddLabelsAndSchemaToImage builds a cog model with labels and bundled .cog/ files. Returns the image ID (sha256:...) of the final image.
The new image is based on the provided image with the labels and any bundled files (schema, weights manifest, etc.) appended to it. tmpName is the source image to build from, image is the final image name/tag.
func CogConfigFromManifest ¶ added in v0.14.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.