Launch of the ImageValidator Project
Posted: Wed Feb 12, 2025 4:13 am
The second post about my project to create with you, a tool to validate virtual machine (VM) images before deploying them on a cloud. It is an exciting project that will allow us to use specialized libraries on the manipulation of VM images among other things.
In this post, I explain how I laid the foundations of the project, with its hosting ig data on GitHub. I also explain how I built the code base by making technical choices.
Choosing Python Libraries
To simplify writing the code for handling CLI arguments and options, I chose to use Click. Click is a Python library that allows you to create command line applications in a simplified way. This library allows you to define commands, options, and arguments, while handling typing errors and automatically displaying help. Here is a basic example to illustrate the use of Click.
For log management, I currently use the module logging.
Hosting the project on GitHub
The first step was to create a GitHub repository to centralize everything related to the project. A good GitHub repository not only allows you to manage the code, but also to collaborate, document and organize the tasks to be accomplished.
1. Creating the repository
I chose the name ImageValidator and added a simple description to clarify its purpose (validating VM image compliance for the cloud).-I also filled in the section Aboutand added keywords like Python, cloud, and libguestfsto increase the visibility of the project.
In this post, I explain how I laid the foundations of the project, with its hosting ig data on GitHub. I also explain how I built the code base by making technical choices.
Choosing Python Libraries
To simplify writing the code for handling CLI arguments and options, I chose to use Click. Click is a Python library that allows you to create command line applications in a simplified way. This library allows you to define commands, options, and arguments, while handling typing errors and automatically displaying help. Here is a basic example to illustrate the use of Click.
For log management, I currently use the module logging.
Hosting the project on GitHub
The first step was to create a GitHub repository to centralize everything related to the project. A good GitHub repository not only allows you to manage the code, but also to collaborate, document and organize the tasks to be accomplished.
1. Creating the repository
I chose the name ImageValidator and added a simple description to clarify its purpose (validating VM image compliance for the cloud).-I also filled in the section Aboutand added keywords like Python, cloud, and libguestfsto increase the visibility of the project.