containers / podhawk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

podhawk

Podhawk allows you to keep image and container up-to-date

How it works ?

You need to execute Podhawk with same user running containers.

  1. list containers and keep actually running in variable
  2. list images (name and tag)
  3. pull all images
  4. recreate containers using new images

Requirements

  • Podman in your $PATH
  • Python 3.5+ (stdlib only)

I use run from subprocess and it's available from Python 3.5

Notes

  • PEP8 and complexity tested via flake8 --max-complexity 3
  • hard typed, no black magic for arguments and variables
  • a little inspired by functional programming about how I wrote function

About


Languages

Language:Python 100.0%