Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Wadhwa committed Mar 6, 2019
1 parent 2a96d4f commit 3c63ff7
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 43 deletions.
46 changes: 23 additions & 23 deletions integration/dockerfiles/Dockerfile_test_copy_same_file_many_times
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@ COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
# COPY context/foo /foo
1 change: 1 addition & 0 deletions integration/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ func (d *DockerFileBuilder) BuildImage(imageRepo, gcsBucket, dockerfilesPath, do
)

timer = timing.Start(dockerfile + "_kaniko")
fmt.Println(kanikoCmd)
out, err = RunCommandWithoutTest(kanikoCmd)
timing.DefaultRun.Stop(timer)
if err != nil {
Expand Down
44 changes: 24 additions & 20 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,26 +150,26 @@ func TestMain(m *testing.M) {
name: "Building kaniko image",
command: []string{"docker", "build", "-t", ExecutorImage, "-f", "../deploy/Dockerfile", ".."},
},
{
name: "Building cache warmer image",
command: []string{"docker", "build", "-t", WarmerImage, "-f", "../deploy/Dockerfile_warmer", ".."},
},
{
name: "Building onbuild base image",
command: []string{"docker", "build", "-t", config.onbuildBaseImage, "-f", "dockerfiles/Dockerfile_onbuild_base", "."},
},
{
name: "Pushing onbuild base image",
command: []string{"docker", "push", config.onbuildBaseImage},
},
{
name: "Building hardlink base image",
command: []string{"docker", "build", "-t", config.hardlinkBaseImage, "-f", "dockerfiles/Dockerfile_hardlink_base", "."},
},
{
name: "Pushing hardlink base image",
command: []string{"docker", "push", config.hardlinkBaseImage},
},
// {
// name: "Building cache warmer image",
// command: []string{"docker", "build", "-t", WarmerImage, "-f", "../deploy/Dockerfile_warmer", ".."},
// },
// {
// name: "Building onbuild base image",
// command: []string{"docker", "build", "-t", config.onbuildBaseImage, "-f", "dockerfiles/Dockerfile_onbuild_base", "."},
// },
// {
// name: "Pushing onbuild base image",
// command: []string{"docker", "push", config.onbuildBaseImage},
// },
// {
// name: "Building hardlink base image",
// command: []string{"docker", "build", "-t", config.hardlinkBaseImage, "-f", "dockerfiles/Dockerfile_hardlink_base", "."},
// },
// {
// name: "Pushing hardlink base image",
// command: []string{"docker", "push", config.hardlinkBaseImage},
// },
}

for _, setupCmd := range setupCommands {
Expand All @@ -192,6 +192,10 @@ func TestMain(m *testing.M) {
g := errgroup.Group{}
for dockerfile := range imageBuilder.FilesBuilt {
df := dockerfile
if df != "Dockerfile_test_copy_same_file_many_times" {
fmt.Println("skipping", df)
continue
}
g.Go(func() error {
return imageBuilder.BuildImage(config.imageRepo, config.gcsBucket, dockerfilesPath, df)
})
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c63ff7

Please sign in to comment.