mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-01 01:43:46 +02:00
Merge pull request #60 from priyawadhwa/entrypnt
Add executable as entrypoint to image
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user