Merge pull request #18761 from anusha-ragunathan/add-build-routes

Create build router separate from image router.
Upstream-commit: 92605b823d4facbe9076b58dd0b0d77101529ad9
Component: engine
This commit is contained in:
Antonio Murdaca
2015-12-18 21:09:43 +01:00
8 changed files with 287 additions and 227 deletions

View File

@ -13,17 +13,6 @@ import (
"github.com/docker/docker/runconfig"
)
// Builder abstracts a Docker builder whose only purpose is to build a Docker image referenced by an imageID.
type Builder interface {
// Build builds a Docker image referenced by an imageID string.
//
// Note: Tagging an image should not be done by a Builder, it should instead be done
// by the caller.
//
// TODO: make this return a reference instead of string
Build() (imageID string)
}
// Context represents a file system tree.
type Context interface {
// Close allows to signal that the filesystem tree won't be used anymore.

View File

@ -70,7 +70,7 @@ type Config struct {
}
// Builder is a Dockerfile builder
// It implements the builder.Builder interface.
// It implements the builder.Backend interface.
type Builder struct {
*Config