From 974aee26538d57cbbee06afa578703a1d39f97f1 Mon Sep 17 00:00:00 2001 From: dekiel Date: Wed, 9 Oct 2024 09:05:47 +0200 Subject: [PATCH] write output file to the root of container --- cmd/image-builder/images/kaniko/Dockerfile | 3 --- cmd/image-builder/main.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/image-builder/images/kaniko/Dockerfile b/cmd/image-builder/images/kaniko/Dockerfile index 9802705792ee..720b3bbf66cf 100644 --- a/cmd/image-builder/images/kaniko/Dockerfile +++ b/cmd/image-builder/images/kaniko/Dockerfile @@ -9,7 +9,4 @@ FROM gcr.io/kaniko-project/executor:v1.23.2 COPY --from=builder /app/image-builder /image-builder -# Create a tmp directory to write image-builder output in default location -RUN mkdir /tmp - ENTRYPOINT ["/image-builder"] \ No newline at end of file diff --git a/cmd/image-builder/main.go b/cmd/image-builder/main.go index a3eaafadabc7..3cf4de88e0fd 100644 --- a/cmd/image-builder/main.go +++ b/cmd/image-builder/main.go @@ -831,7 +831,7 @@ func (o *options) gatherOptions(flagSet *flag.FlagSet) *flag.FlagSet { flagSet.BoolVar(&o.parseTagsOnly, "parse-tags-only", false, "Only parse tags and print them to stdout") flagSet.StringVar(&o.oidcToken, "oidc-token", "", "Token used to authenticate against Azure DevOps backend service") flagSet.StringVar(&o.azureAccessToken, "azure-access-token", "", "Token used to authenticate against Azure DevOps API") - flagSet.StringVar(&o.tagsOutputFile, "tags-output-file", "/tmp/generated-tags.json", "Path to file where generated tags will be written as JSON") + flagSet.StringVar(&o.tagsOutputFile, "tags-output-file", "/generated-tags.json", "Path to file where generated tags will be written as JSON") return flagSet }