Add executable as entrypoint to image
This commit is contained in:
		
							parent
							
								
									c1c257f616
								
							
						
					
					
						commit
						85183aadee
					
				|  | @ -21,3 +21,4 @@ ADD files/docker-credential-gcr /usr/local/bin/ | |||
| ADD files/config.json /root/.docker/ | ||||
| ENV HOME /root | ||||
| ENV PATH /usr/local/bin | ||||
| ENTRYPOINT ["/kbuild/executor"] | ||||
|  |  | |||
|  | @ -107,7 +107,6 @@ type testyaml struct { | |||
| } | ||||
| 
 | ||||
| var executorImage = "executor-image" | ||||
| var executorCommand = "/kbuild/executor" | ||||
| var dockerImage = "gcr.io/cloud-builders/docker" | ||||
| var ubuntuImage = "ubuntu" | ||||
| var testRepo = "gcr.io/kbuild-test/" | ||||
|  | @ -155,7 +154,7 @@ func main() { | |||
| 		kbuildImage := testRepo + kbuildPrefix + test.repo | ||||
| 		kbuild := step{ | ||||
| 			Name: executorImage, | ||||
| 			Args: []string{executorCommand, "--destination", kbuildImage, "--dockerfile", test.dockerfilePath, "--context", test.context}, | ||||
| 			Args: []string{"--destination", kbuildImage, "--dockerfile", test.dockerfilePath, "--context", test.context}, | ||||
| 		} | ||||
| 
 | ||||
| 		// Pull the kbuild image
 | ||||
|  | @ -199,7 +198,7 @@ func main() { | |||
| 		kbuildImage := testRepo + kbuildPrefix + test.repo | ||||
| 		kbuild := step{ | ||||
| 			Name: executorImage, | ||||
| 			Args: []string{executorCommand, "--destination", kbuildImage, "--dockerfile", test.dockerfilePath}, | ||||
| 			Args: []string{"--destination", kbuildImage, "--dockerfile", test.dockerfilePath}, | ||||
| 		} | ||||
| 		// Pull the kbuild image
 | ||||
| 		pullKbuildImage := step{ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue