Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kaniko uses / as a build folder #3336

Open
neigrok opened this issue Oct 8, 2024 · 0 comments
Open

Kaniko uses / as a build folder #3336

neigrok opened this issue Oct 8, 2024 · 0 comments

Comments

@neigrok
Copy link

neigrok commented Oct 8, 2024

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@neigrok and others