kubedock icon indicating copy to clipboard operation
kubedock copied to clipboard

Implementing docker build command with Kaniko

Open ismailbaskin opened this issue 2 years ago • 5 comments

Hi,

I've observed that our current feature set lacks support for the docker build command. To enrich our capabilities, I propose the use of Kaniko, a tool designed to build Docker images in environments such as Kubernetes, without a Docker daemon.

My suggestion is to trigger a Kaniko Job on each docker build command issued, allowing the Docker image to be built and pushed directly to the specified registry within the Kubernetes cluster.

I believe this addition would significantly streamline Docker image building and deployment processes, especially beneficial in CI/CD contexts.

I'm eager to discuss this further and potentially contribute to its implementation.

Thanks.

ismailbaskin avatar May 23 '23 20:05 ismailbaskin

From an implementation perspective, I would like to offload this to something pluggable. For example, if a build call is made, it would offload it to another service which would build and publish the container. This would move most of the complexity to another layer (which can used kaniko, buildah, ... to build), and would have the registry config complexity managed there as well. Maybe directly proxying the relevant API call(s) to a pre-configured endpoint in kubedock would be sufficient in that case.

joyrex2001 avatar May 25 '23 10:05 joyrex2001

Came here to suggest the same thing.

djmcgreal-cc avatar Jun 13 '25 18:06 djmcgreal-cc

kaniko looks dead. Any suggestsions?

gecube avatar Oct 28 '25 12:10 gecube

An alternative could be buildah, but an implementation in kubedock should be agnostic towards tooling. It should provide the proper hooks to help integrate any kind of container build solution.

joyrex2001 avatar Oct 28 '25 21:10 joyrex2001

Encapsulate all that in something like https://shipwright.io?

djmcgreal-cc avatar Oct 29 '25 11:10 djmcgreal-cc