|
@@ -234,6 +234,12 @@ func (b *Builder) build(stdout io.Writer, stderr io.Writer, out io.Writer) (stri
|
|
|
|
|
|
var shortImgID string
|
|
var shortImgID string
|
|
total := len(b.dockerfile.Children)
|
|
total := len(b.dockerfile.Children)
|
|
|
|
+ for _, n := range b.dockerfile.Children {
|
|
|
|
+ if err := b.checkDispatch(n, false); err != nil {
|
|
|
|
+ return "", err
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
for i, n := range b.dockerfile.Children {
|
|
for i, n := range b.dockerfile.Children {
|
|
select {
|
|
select {
|
|
case <-b.clientCtx.Done():
|
|
case <-b.clientCtx.Done():
|
|
@@ -243,6 +249,7 @@ func (b *Builder) build(stdout io.Writer, stderr io.Writer, out io.Writer) (stri
|
|
default:
|
|
default:
|
|
// Not cancelled yet, keep going...
|
|
// Not cancelled yet, keep going...
|
|
}
|
|
}
|
|
|
|
+
|
|
if err := b.dispatch(i, total, n); err != nil {
|
|
if err := b.dispatch(i, total, n); err != nil {
|
|
if b.options.ForceRemove {
|
|
if b.options.ForceRemove {
|
|
b.clearTmp()
|
|
b.clearTmp()
|
|
@@ -322,6 +329,12 @@ func BuildFromConfig(config *container.Config, changes []string) (*container.Con
|
|
b.disableCommit = true
|
|
b.disableCommit = true
|
|
|
|
|
|
total := len(ast.Children)
|
|
total := len(ast.Children)
|
|
|
|
+ for _, n := range ast.Children {
|
|
|
|
+ if err := b.checkDispatch(n, false); err != nil {
|
|
|
|
+ return nil, err
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
for i, n := range ast.Children {
|
|
for i, n := range ast.Children {
|
|
if err := b.dispatch(i, total, n); err != nil {
|
|
if err := b.dispatch(i, total, n); err != nil {
|
|
return nil, err
|
|
return nil, err
|