---
title: Learn how to build a minimal Charm
description: 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  […]
url: https://canonical.com/blog/learn-how-to-build-a-minimal-charm?format=md
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Michael C. Jaeger](https://canonical.com/blog/author/mcjaeger "More about Michael C. Jaeger")

11 February 2022

# Learn how to build a minimal Charm

[Charmed Operators](https://canonical.com/blog/tag/charmed-operators)
[Community](https://canonical.com/blog/tag/community)
[Juju](https://canonical.com/blog/tag/juju)
[Software Operators](https://canonical.com/blog/tag/software-operators)

---

Share the article

The previous [blog](http://ubunut.com) [post](https://ubuntu.com/blog/a-charming-community-how-to-join-the-juju-and-charmed-operators-community) 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](https://chat.charmhub.io/charmhub/channels/community-workshops). In one of the workshops, [Erik Lönroth](https://eriklonroth.com/) held a tutorial on [how to build a minimal Charm](https://discourse.charmhub.io/t/workshop-create-your-first-operator-charm/5311).

#### 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.

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](https://juju.is/) and [LXD](https://linuxcontainers.org/lxd/introduction/).

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.](https://github.com/erik78se/juju-operators-examples)

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](https://juju.is/tutorials/build-and-deploy-mini-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](https://juju.is/tutorials). Further, great video tutorials about Charming are on [our YouTube channel](https://www.youtube.com/watch?v=tsou9S6NoDg&list=PLwFSk464RMxmvULYzpDdF3ieVwcXyAijY), such as the excellent recording of a [workshop for building a charmed operator by Jon Seager](https://www.youtube.com/watch?v=yxeJX2WRYjg&t=1221s).

#### Further readings

* [Building and deploying a mini charm](https://juju.is/tutorials/build-and-deploy-mini-charm#1-introduction)
* [Juju tutorials page](https://juju.is/tutorials)
* [Matternost Juju and Charms community channels](https://chat.charmhub.io/charmhub/)

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

By submitting this form, I confirm that I have read and agree to [Canonical's Privacy Policy](https://canonical.com/legal/dataprivacy).

Sign up

## Share on

---

## Related posts

[### Canonical becomes Gold Sponsor of Trifecta Tech Foundation](https://canonical.com/blog/canonical-becomes-gold-sponsor-of-trifecta-tech-foundation)

Canonical is pleased to announce it is now a Gold Sponsor of the Trifecta Tech Foundation, a non-profit that creates open source building blocks for critical infrastructure...

[Canonical](https://canonical.com/blog/author/canonical)

30 June 2026

[### Unmasking the Resolute Raccoon](https://canonical.com/blog/unmasking-the-resolute-raccoon)

You’ve almost certainly seen them… In the forest, rummaging through a dumpster, in poorly aging millennial memes. Raccoons are ubiquitous and endlessly entertaining creatures....

[Aaron Prisk](https://canonical.com/blog/author/aaronprisk)

26 February 2026

[### The foundations of software: open source libraries and their maintainers](https://canonical.com/blog/the-foundations-of-software-open-source-libraries-and-their-maintainers)

Open source libraries are repositories of code that developers can use and, depending on the license, contribute to, modify, and redistribute. Open source libraries are usually...

[Isobel Kate Maxwell](https://canonical.com/blog/author/iso-maxwell)

13 February 2026

[### Deploy your Spring Boot application to production](https://canonical.com/blog/deploy-spring-application-to-production)

In this article we walk through the steps required to deploy a Spring Boot application to production using Juju and Kubernetes. The goal is to showcase the integration of the...

[Javier de la Puente](https://canonical.com/blog/author/javierdelapuente)

13 January 2026
