If you like the idea of using quadlets to manage your application containers, but everyone and their grandma only provide “compose.yml” files, you can often use Podlet to convert them to quadlets.
First, install Podlet. If you are using Arch Linux, you can just run:
Podlet cannot deal directly with certain compose features, such as variables:
In these cases, we have to normalize the docker-compose file before processing it with podlet. Podman-compose is a small utility that can help with normalization:
Let’s normalize Authentik’s compose file, which cannot be handled by Podlet directly:
Here we can see that:
No name: authentik has been specified
The application is made of a server and a worker, and needs a Redis and a PostgreSQL containers to work.
The PG_PASS variable must be defined, otherwise the “database password required” error appears. Other variables have a default value, so we don’t have to specify another one.
We can normalize the compose file by running:
Now all variables have been assigned a value, but we are still missing our pod name. We can add it by running
The compose file is finally ready to be converted through Podlet:
You can now paste parts of the output in different quadlets, and adapt them to your needs.
Happy conversion!
Did you enjoy the article?
Share it with a friend!
If you have suggestions or opinions, just
drop me a message,
I'd love to hear from you!