kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

Kaniko uses / as a build folder

Open neigrok opened this issue 1 year ago • 0 comments

Actual behavior I'm building images in k8s. Kaniko uses / as a build folder and copies there files from the conext. Therefore it consumes ephemeral storage on a node and makes resource management hard.

Expected behavior I want to be able to specify directory for build and make configure it as ephemeral volume to have a better control.

To Reproduce Steps to reproduce the behavior:

  1. make a Dockerfile with COPY . . instruction
  2. build it

Additional Information

  • Dockerfile
   FROM ubuntu
   COPY . .
  • Build Context A set of random files
  • Kaniko Image (fully qualified with digest) N/A
Description Yes/No
Please check if this a new feature you are proposing
  • - [Yes]
Please check if the build works in docker but not in kaniko
  • - [No]
Please check if this error is seen when you use --cache flag
  • - [No]
Please check if your dockerfile is a multistage dockerfile
  • - [No]

neigrok avatar Oct 08 '24 09:10 neigrok