for now,let's print the docker build output to the console for debugging

This commit is contained in:
Brad Rydzewski 2014-02-09 12:46:24 -07:00
parent c1cb6e3179
commit 78839ece3b

View file

@ -110,7 +110,7 @@ func (c *ImageService) Build(tag, dir string) error {
v := url.Values{} v := url.Values{}
v.Set("t", tag) v.Set("t", tag)
v.Set("q", "1") v.Set("q", "1")
//v.Set("rm", "1") v.Set("rm", "1")
// url path // url path
path := fmt.Sprintf("/build?%s", v.Encode()) path := fmt.Sprintf("/build?%s", v.Encode())
@ -120,5 +120,5 @@ func (c *ImageService) Build(tag, dir string) error {
headers.Set("Content-Type", "application/tar") headers.Set("Content-Type", "application/tar")
// make the request // make the request
return c.stream("POST", path, body, nil, headers) return c.stream("POST", path, body, os.Stdout, headers)
} }