Skip to content

Commit

Permalink
fix web editor conflicts resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Jan 30, 2020
1 parent 47ab3fe commit 2dadde9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
28 changes: 13 additions & 15 deletions integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func getGitRepo() string {
}
return "github.com/GoogleContainerTools/kaniko"
}

func TestGitBuildcontext(t *testing.T) {
repo := getGitRepo()
dockerfile := "integration/dockerfiles/Dockerfile_test_run_2"
Expand Down Expand Up @@ -262,11 +262,11 @@ func TestGitBuildcontext(t *testing.T) {
}

func TestBuildViaRegistryMirror(t *testing.T) {
repo := "github.com/GoogleContainerTools/kaniko"
repo := getGitRepo()
dockerfile := "integration/dockerfiles/Dockerfile_registry_mirror"

// Build with docker
dockerImage := GetDockerImage(config.imageRepo, "Dockerfile_test_git")
dockerfile := dockerfileTestRun
dockerImage := GetDockerImage(config.imageRepo, "Dockerfile_registry_mirror")
dockerCmd := exec.Command("docker",
append([]string{"build",
"-t", dockerImage,
Expand All @@ -278,17 +278,15 @@ func TestBuildViaRegistryMirror(t *testing.T) {
}

// Build with kaniko
kanikoImage := GetKanikoImage(config.imageRepo, "Dockerfile_test_git")
dockerfile = "integration/dockerfiles/Dockerfile_registry_mirror"
kanikoCmd := exec.Command("docker",
append([]string{"run",
"-v", os.Getenv("HOME") + "/.config/gcloud:/root/.config/gcloud",
ExecutorImage,
"-f", dockerfile,
"-d", kanikoImage,
"--registry-mirror", "gcr.io",
contextFlag, contextPath
"-b", config.gcsBucket)...)
kanikoImage := GetKanikoImage(config.imageRepo, "Dockerfile_registry_mirror")
dockerRunFlags := []string{"run", "--net=host"}
dockerRunFlags = addServiceAccountFlags(dockerRunFlags, config.serviceAccount)
dockerRunFlags = append(dockerRunFlags, ExecutorImage,
"-f", dockerfile,
"-d", kanikoImage,
"-c", fmt.Sprintf("git://%s", repo))

kanikoCmd := exec.Command("docker", dockerRunFlags...)

out, err = RunCommandWithoutTest(kanikoCmd)
if err != nil {
Expand Down
4 changes: 1 addition & 3 deletions pkg/config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ type KanikoOptions struct {
ImageNameDigestFile string
OCILayoutPath string
RegistryMirror string
InsecureRegistries multiArg
InsecureRegistries multiArg
SkipTLSVerifyRegistries multiArg
Destinations multiArg
BuildArgs multiArg
InsecureRegistries multiArg
SkipTLSVerifyRegistries multiArg
Insecure bool
SkipTLSVerify bool
InsecurePull bool
Expand Down

0 comments on commit 2dadde9

Please sign in to comment.