This project is a Proof of Concept (PoC) to verify the benefits of using "chisel" tools on Ubuntu in comparison to Alpine images.
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.
- 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.
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
Alpine | Ubuntu | Ubuntu (chiseled) | |
---|---|---|---|
jdk-11 | |||
jdk-17 | |||
jdk-21 | |||
jre-21 | |||
jre-11 | |||
jre-17 |
To build and run the Docker images, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/docker-chiseled-corretto.git cd docker-chiseled-corretto
-
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
-
Build the Docker image using chisel tools on Ubuntu:
make
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.
This project is licensed under the MIT License. See the LICENSE file for details.