Skip to content

Reproducible example of Kaniko failing with multistage builds

License

Notifications You must be signed in to change notification settings

RufusJWB/KanikoMultistageFailRepro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

This is a reproducible example of Kaniko failingworking multistage builds. Kaniko exits with 2024-01-10 17:11:24 error building image: error building stage: failed to get files used from context: failed to get fileinfo for /buildDir/PROXY Protocol Tester.csproj: lstat /buildDir/PROXY Protocol Tester.csproj: no such file or directory success.

How to reproduce

Working example

  1. Navigate to PROXY Protocol Tester directory
  2. Build image docker build -t dockerbuild:working . . Logs are at https://gist.github.com/RufusJWB/ebf95c6ff7aa85e487a55167fa3048df
  3. Run container docker run -t dockerbuild:working . Logs are at https://gist.github.com/RufusJWB/364b87c02e06c6940a750530954828b4

FailingWorking example 2

  1. Stay in root directory
  2. Build image docker build -t kanikobuild:fail . . ~~Logs are at https://gist.github.com/RufusJWB/caa2371f5f1cdbdf46b6af593ca08913 ~~
  3. Run container docker run -t kanikobuild:fail . ~~Logs are at https://gist.github.com/RufusJWB/369d8428103dda76b47b5735de0994d7 ~~

About

Reproducible example of Kaniko failing with multistage builds

Resources

License

Stars

Watchers

Forks