Skip to content

A template for combining systemd and podman

License

Notifications You must be signed in to change notification settings

erikbgithub/simpleserver

 
 

Repository files navigation

Podman+Systemd example: Simpleserver

This project shows in a simple example how to enable systemd control for your podman containers. It is intended as a template for more complex setups.

The idea for this repository came to me from reading this excellent blog post from my colleague Valentin Rothberg.

The idea about healthchecks came from this (slightly outdated) blog post by my colleague Brent Baude.

Howto

Ensure that you run this with a user that can control systemctl, then just build the example container with:

$ make

Install it with:

$ make install

And then you can control it with:

$ systemctl enable simpleserver
$ systemctl start simpleserver
$ systemctl stop simpleserver

Testing

You can see the start page at localhost:8080 and the metrics at localhost:8080/server-status.

About

A template for combining systemd and podman

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 66.7%
  • Makefile 23.4%
  • Dockerfile 9.9%