Replies: 2 comments 2 replies
-
Great ideas here @MChorfa , thanks for compiling. The references were helpful for me to get up to speed. Besides the initial task of using a smaller base image, am I correct in sensing three major themes (and the benefits/functionality they bring)?
Have I captured the high-level themes/goals accurately? |
Beta Was this translation helpful? Give feedback.
-
I have been playing with getting porter to build with buildkit enabled. Right now it's working with docker + buildkit libraries but I think that we should consider shelling out to build tools such as buildx under the hood instead of integrating through libraries. It would require distributing the binary with porter (or providing a way to install through plugins), but is probably worth it because these tools don't always have a library to use (e.g. buildx doesn't export functions that we can use). I think the next step is a PEP that just covers
|
Beta Was this translation helpful? Give feedback.
-
Backgound
The bundles image size is getting bigger and bigger proportional to the complexity of the bundles and the numbers of mixins and dependencies required for a given bundle. Also Porter builds time increase as the instructions increase
Related issues
Suggestions
Buildkit
orPodman
orShipwright
Dockerfile
to inform the docker engine that we are usingMultistage
#MIXIN_STAGE
tag coming from the mixin, where this tag indicates what the mixin cares aboutdriver
flag to Porter to indicate which driver porter have to build the image withExample of porter command building with a buildkit driver:
Example of kubectl mixin definition:
Example of an invocation image definition before interpolation with buildkit:
Example of a invocation image definition after interpolation with buildkit:
Sequence
Porter Drivers
References
Beta Was this translation helpful? Give feedback.
All reactions