Skip to content

CoreNiko is a binary wrapper for Kaniko to simplify docker builds inside docker/kubernetes.

Notifications You must be signed in to change notification settings

CoreViewInc/CoreNiko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Develop

CoreNiko

CoreNiko aims to wrap Kaniko in an easy to deploy solution to simplify scalable builds in Kubernetes. The goal of the project is to allow developers to setup scalable docker builds quickly using kubernetes from a docker like CLI tool with as close to 1-1 compatibility as possible. The project is currently in Alpha state.

Key Features:

  • Docker CLI Proxy: CoreNiko serves as a drop-in replacement for the Docker CLI, allowing developers to execute standard Docker build commands that are then transparently translated to utilize Kaniko's executor within a Kubernetes environment.

  • Leveraging Kaniko's Strengths: Kaniko is trusted for its ability to build container images in Kubernetes without the use of Docker. CoreNiko builds upon this foundation, ensuring a seamless integration with Kubernetes by automating Kaniko's complexities with a Docker-like experience.

  • Enhanced CI/CD Workflows: By integrating Kaniko's capabilities, CoreNiko enhances CI/CD pipelines with features that improve build efficiency, support advanced caching mechanisms, and ensure that builds are free from potential Docker daemon security concerns.

  • Ease of Transition: Adopting CoreNiko means there is no need to alter Dockerfiles or learn new workflows. Development teams can switch from Docker to Kaniko-based builds without friction, thanks to CoreNiko's proxy capabilities.

How it Works:

CoreNiko acts as an intermediary proxy that simplifies the use of Kaniko. Developers can perform Docker builds using the same commands as they would on a local machine:

$ docker build -t my-image .

In the background, CoreNiko processes this command and leverages Kaniko to perform the actual image build within a Kubernetes cluster. The proxy ensures that the Docker command's functionality is preserved without the need for direct interaction with Kaniko's command structure.

Contributing to CoreNiko:

We welcome contributions to the CoreNiko project! Whether you're fixing bugs, adding features, improving documentation, or helping the community, your efforts will make a significant impact. Here's how you can contribute:

Reporting Issues:

  1. Utilize the project's issue tracker to report bugs or suggest enhancements.
  2. Provide detailed descriptions and reproducible steps if you're reporting a bug.

Code Contributions:

  1. Fork the repository and create a new branch for your contribution.
  2. Follow the code style and contribution guidelines of the project.
  3. Update or create tests as necessary.
  4. Ensure your contributions pass existing tests.
  5. Commit your changes with clear and understandable messages.
  6. Push your changes and open a pull request against the original repo.

Roadmap:

This is not an exhaustive list.

  1. Implement missing commands. Currently only docker login and docker build are functional.
  2. Implement extended features such as a local mock docker registry. This should simplify use-cases where each deployment will be independent.
  3. Implement image commands (ls etc) to provide an overview of images stored in the mock docker registry.
  4. Implement automatic detection of other auth-cred providers such as GCR and ECR.
  5. Implement a basic helm example that deploys a simple container with the docker tool inside that allows people to test it out before implementing their own build images.
  6. Implement support for multiple container registry automatic setup. This should be completed after the helm example.

Attribution:

CoreNiko uses the following external libraries:

  1. Cobra
  2. Uuid
  3. bolt
  4. k8s
  5. Afero

About

CoreNiko is a binary wrapper for Kaniko to simplify docker builds inside docker/kubernetes.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages