Add executable as entrypoint to image

This commit is contained in:
Priya Wadhwa 2018-04-02 11:18:56 -07:00
parent c1c257f616
commit 85183aadee
No known key found for this signature in database
GPG Key ID: 0D0DAFD8F7AA73AE
2 changed files with 3 additions and 3 deletions

View File

@ -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"]

View File

@ -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{