1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

builder: move the evaluator package code directly into builder

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
Erik Hollensbe 2014-08-15 09:29:35 -07:00
parent cb51681a6d
commit a1522ec01c
6 changed files with 11 additions and 13 deletions

View file

@ -1,17 +1,16 @@
package builder package builder
import ( import (
"github.com/docker/docker/builder/evaluator"
"github.com/docker/docker/runconfig" "github.com/docker/docker/runconfig"
) )
// Create a new builder. // Create a new builder. See
func NewBuilder(opts *evaluator.BuildOpts) *evaluator.BuildFile { func NewBuilder(opts *BuildOpts) *BuildFile {
return &evaluator.BuildFile{ return &BuildFile{
Dockerfile: nil, Dockerfile: nil,
Config: &runconfig.Config{}, Config: &runconfig.Config{},
Options: opts, Options: opts,
TmpContainers: evaluator.UniqueMap{}, TmpContainers: UniqueMap{},
TmpImages: evaluator.UniqueMap{}, TmpImages: UniqueMap{},
} }
} }

View file

@ -1,4 +1,4 @@
package evaluator package builder
// This file contains the dispatchers for each command. Note that // This file contains the dispatchers for each command. Note that
// `nullDispatch` is not actually a command, but support for commands we parse // `nullDispatch` is not actually a command, but support for commands we parse

View file

@ -1,4 +1,4 @@
// evaluator is the evaluation step in the Dockerfile parse/evaluate pipeline. // builder is the evaluation step in the Dockerfile parse/evaluate pipeline.
// //
// It incorporates a dispatch table based on the parser.Node values (see the // It incorporates a dispatch table based on the parser.Node values (see the
// parser package for more information) that are yielded from the parser itself. // parser package for more information) that are yielded from the parser itself.
@ -17,7 +17,7 @@
// before and after each step, such as creating an image ID and removing temporary // before and after each step, such as creating an image ID and removing temporary
// containers and images. Note that ONBUILD creates a kinda-sorta "sub run" which // containers and images. Note that ONBUILD creates a kinda-sorta "sub run" which
// includes its own set of steps (usually only one of them). // includes its own set of steps (usually only one of them).
package evaluator package builder
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package evaluator package builder
// internals for handling commands. Covers many areas and a lot of // internals for handling commands. Covers many areas and a lot of
// non-contiguous functionality. Please read the comments. // non-contiguous functionality. Please read the comments.

View file

@ -8,7 +8,6 @@ import (
"strings" "strings"
"github.com/docker/docker/archive" "github.com/docker/docker/archive"
"github.com/docker/docker/builder/evaluator"
"github.com/docker/docker/daemon" "github.com/docker/docker/daemon"
"github.com/docker/docker/engine" "github.com/docker/docker/engine"
"github.com/docker/docker/pkg/parsers" "github.com/docker/docker/pkg/parsers"
@ -86,7 +85,7 @@ func (b *BuilderJob) CmdBuild(job *engine.Job) engine.Status {
sf := utils.NewStreamFormatter(job.GetenvBool("json")) sf := utils.NewStreamFormatter(job.GetenvBool("json"))
opts := &evaluator.BuildOpts{ opts := &BuildOpts{
Daemon: b.Daemon, Daemon: b.Daemon,
Engine: b.Engine, Engine: b.Engine,
OutStream: &utils.StdoutFormater{ OutStream: &utils.StdoutFormater{

View file

@ -1,4 +1,4 @@
package evaluator package builder
import ( import (
"regexp" "regexp"