Skip to content

Playing with Cannonicals Chisel tool, I was curious what benefits it could provide with Corretto

License

Notifications You must be signed in to change notification settings

tgagor/docker-chiseled-corretto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Chiseled Corretto

This project is a Proof of Concept (PoC) to verify the benefits of using "chisel" tools on Ubuntu in comparison to Alpine images.

Overview

The goal of this project is to compare the performance, size, and security of Docker images built using chisel tools on Ubuntu versus those built using Alpine images. Chisel tools are designed to create minimal, hardened Docker images, and this project aims to evaluate their effectiveness.

Benefits of Chisel Tools

  • Reduced Image Size: Chisel tools help in creating smaller Docker images by removing unnecessary components.
  • Improved Security: By minimizing the attack surface, chisel tools enhance the security of Docker images.
  • Performance: Evaluate if there are any performance improvements when using chisel tools on Ubuntu.

Comparison with Alpine

Alpine Linux is known for its small size and security features. This project will compare the following aspects between chiseled Ubuntu images and Alpine images:

  • Image size
  • Build time
  • Runtime performance
  • Security vulnerabilities

Image sizes

Alpine Ubuntu Ubuntu (chiseled)
jdk-11 Docker Image Size (tag) Docker Image Size (tag)
jdk-17 Docker Image Size (tag) Docker Image Size (tag)
jdk-21 Docker Image Size (tag) Docker Image Size (tag)
jre-21 Docker Image Size (tag) Docker Image Size (tag) Docker Image Size (tag)
jre-11 Docker Image Size (tag) Docker Image Size (tag) Docker Image Size (tag)
jre-17 Docker Image Size (tag) Docker Image Size (tag) Docker Image Size (tag)

Usage

To build and run the Docker images, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/docker-chiseled-corretto.git
    cd docker-chiseled-corretto
  2. Install Template Dockerfile tool:

    sudo curl -sLfo /usr/local/bin/td https://github.com/tgagor/template-dockerfiles/releases/latest/download/td-linux-amd64
    sudo chmod +x /usr/local/bin/td
  3. Build the Docker image using chisel tools on Ubuntu:

    make

Conclusion

This PoC will help determine if using chisel tools on Ubuntu provides significant benefits over using Alpine images. The results will guide future decisions on the best practices for building minimal, secure, and performant Docker images.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Playing with Cannonicals Chisel tool, I was curious what benefits it could provide with Corretto

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published