Sign inSign up

tgagor/corretto

By tgagor

•Updated 3 days ago

It's a Proof of Concept of benefits of using "chisel" tool on Ubuntu in comparison to Alpine images.

Image
Languages & frameworks
1

10K+

tgagor/corretto repository overview

⁠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

AlpineUbuntuUbuntu (chiseled)
jdk-11Docker Image Size (tag)Docker Image Size (tag)
jdk-17Docker Image Size (tag)Docker Image Size (tag)
jdk-21Docker Image Size (tag)Docker Image Size (tag)
jre-21Docker Image Size (tag)Docker Image Size (tag)Docker Image Size (tag)
jre-11Docker Image Size (tag)Docker Image Size (tag)Docker Image Size (tag)
jre-17Docker 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.

Tag summary

Content type

Image

Digest

sha256:053cccd92…

Size

63.4 MB

Last updated

3 days ago

docker pull tgagor/corretto:25-ubuntu24.04-chiseled