Merge pull request #112 from priyawadhwa/maintainer

Skip maintainer command
This commit is contained in:
priyawadhwa
2018-04-18 10:46:17 -07:00
committed by GitHub
4 changed files with 11 additions and 1 deletions
@@ -17,3 +17,4 @@
FROM gcr.io/google-appengine/debian9
RUN echo "hey"
MAINTAINER kaniko
+3 -1
View File
@@ -182,7 +182,8 @@ type step struct {
}
type testyaml struct {
Steps []step
Steps []step
Timeout string
}
func main() {
@@ -232,6 +233,7 @@ func main() {
y := testyaml{
Steps: []step{containerDiffStep, containerDiffPermissions, structureTestsStep, structureTestPermissions, GCSBucketTarBuildContext, uploadTarBuildContext, buildExecutorImage,
buildOnbuildImage, pushOnbuildBase},
Timeout: "1200s",
}
for _, test := range fileTests {
// First, build the image with docker
+4
View File
@@ -20,6 +20,7 @@ import (
"github.com/containers/image/manifest"
"github.com/docker/docker/builder/dockerfile/instructions"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
type DockerCommand interface {
@@ -60,6 +61,9 @@ func GetCommand(cmd instructions.Command, buildcontext string) (DockerCommand, e
return &OnBuildCommand{cmd: c}, nil
case *instructions.VolumeCommand:
return &VolumeCommand{cmd: c}, nil
case *instructions.MaintainerCommand:
logrus.Warnf("%s is deprecated, skipping", cmd.Name())
return nil, nil
}
return nil, errors.Errorf("%s is not a supported command", cmd.Name())
}
+3
View File
@@ -85,6 +85,9 @@ func DoBuild(dockerfilePath, srcContext, destination, snapshotMode string) error
if err != nil {
return err
}
if dockerCommand == nil {
continue
}
if err := dockerCommand.ExecuteCommand(imageConfig); err != nil {
return err
}