Skip to content

embed specific envbuilder version in binary #5

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

Closed
johnstcn opened this issue Aug 1, 2024 · 0 comments · Fixed by #13
Closed

embed specific envbuilder version in binary #5

johnstcn opened this issue Aug 1, 2024 · 0 comments · Fixed by #13
Assignees

Comments

@johnstcn
Copy link
Member

johnstcn commented Aug 1, 2024

To accurately replicate a cached image, you need the exact envbuilder binary that was used to build it.

get cached image: error probing build cache: failed to optimize instructions: failed to get files used from context: failed to get fileinfo for /tmp/cached-image-data-source2380922079/.devcontainer/.envbuilder/bin/envbuilder: lstat /tmp/cached-image-data-source2380922079/.devcontainer/.envbuilder/bin/envbuilder: no such file or directory

Options:

  1. go:embed the envbuilder binary
  2. Fetch and extract the envbuilder binary from the envbuilder image dynamically.
  3. Make kaniko lie about the tag it pushes so that it actually refers to the previous layer and not the one that adds /.envbuilder/bin/envbuilder.

1 is the most efficient option, but the most annoying.
2 adds some delay as this will have to be done at runtime but is the most flexible.
3 is kinda gross...

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

Successfully merging a pull request may close this issue.

1 participant