Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool Root string GRPC struct { Address string UID, GID int } ContainerdWorker struct { Address string Namespace string Snapshotter string } }
Config is used to set up builder.
type Options ¶
type Options struct { Config Config // PostImageExportFunc allows to do post check or post action // after exporter. // // TODO(fuweid): Since we caches containerd image in our own, pouch // images command won't get the new image exported by buildkit if // we don't store it in the cache. The post check is used to // save the cache in local. I think we should remove this option // after we remove the cache. PostImageExportFunc func(context.Context, map[string]string) error }
Options is used to config the BuilderServer.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wrappers buildkit to provide builder functionality.
func New ¶
New returns Server.
TODO(fuweid):
- supports network mode in containerd worker.
- supports cpu/memory limitation in containerd worker.
- supports registry cache.
- use runC/PouchContainer's container mgr to run the container container for build is not created by PouchContainer's ContainerMgr and the exit event will be filed to PouchContainer which has no idea about this. The error log will be annoying.
Click to show internal directories.
Click to hide internal directories.