coder / envbuilder

Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly.
Apache License 2.0
170 stars 28 forks source link

Explore buildah in place of kaniko #148

Open matifali opened 7 months ago

matifali commented 7 months ago

https://buildah.io/

Buildah is an OCI image builder by the same team who builds podman. It's worth exploring if we can get any benefits using buildah in place of kaniko.

aaronlehmann commented 7 months ago

We just migrated from using envbuilder directly to processing .devcontainer with envbuilder's devcontainer.Compile and invoking buildah with the resulting Dockerfile, env, etc. (also embedding buildah in our Go code). The big win for us is ability to prepull and unpack base images in advance so they are ready to go when running the actual build. This base image pulling and unpacking can dominate the build time with kaniko. Also, buildah uses overlayfs when available, so snapshotting is free and more robust than kaniko's userspace mechanism.