Refactor utility MkBuildContext to the more generic archive.Generate

This facilitates refactoring commands.go.

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes
2014-02-15 14:52:08 -08:00
parent a7ecc3ea11
commit 9b56da78e0
4 changed files with 76 additions and 41 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ func (srv *Server) Build(job *engine.Job) engine.Status {
if err != nil {
return job.Error(err)
}
c, err := MkBuildContext(string(dockerFile), nil)
c, err := archive.Generate("Dockerfile", string(dockerFile))
if err != nil {
return job.Error(err)
}