Categories: BlogCanonicalUbuntu

Learn how to build a minimal Charm

The previous blog post talked about the community workshops taking place in the Juju and Charm community. Normally the community workshops take place every Friday at 10:00 am CET. The details for these workshops can be found in the public channel on Mattermost. In one of the workshops, Erik Lönroth held a tutorial on how to build a minimal Charm.

A Charm tutorial from the community

Unlike existing tutorials, Erik’s tutorial presumes an empty computer with a vanilla OS. It explains every step when you start from nothing.

Sponsored
class="wp-block-image">

Charming requires a test and development environment, where the application can be run and deployed. Accordingly, the first steps of the tutorial are not only about installing the tool named Charmcraft. The first steps also involve the local environments, Juju and LXD.

LXD runs and manages containers in your local environment, just like a local cloud. This local cloud will be used to run your application. At the same time Juju coordinates the local cloud software and runs the Charm for your application. After the deployment and setup of prerequisites have been finished, the tutorial goes ahead. It will explain creating and building a very simple Charm derived from Erik’s collection of example projects on his Github account.

Sponsored

So, in case you are new to Charming, and you are new to Juju and would like to start with a very first experiment: the new tutorial Build and Deploy a Minimal Charm is online now!

And if you are ready to continue on the Charming journey, you can also access more step-by-step guides in the Juju tutorials section. Further, great video tutorials about Charming are on our YouTube channel, such as the excellent recording of a workshop for building a charmed operator by Jon Seager.

Further readings

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

2 days ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

3 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

3 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

4 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

4 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

6 days ago