Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
| # This is a simple example of how to run a basic service inside a container with Podman | |
| # Podman | |
| ## Pull the Docker image | |
| podman pull docker.io/redis | |
| ## Run the container as you would do with Docker | |
| podman run -d --name redis_server -p 6379:6379 redis | |
| # But Podman facilitate some extra ways: |
Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
| ''' | |
| Generic object to dict converter. Recursively convert. | |
| Useful for testing and asserting objects with expectation. | |
| ''' | |
| def todict(obj, classkey=None): | |
| if isinstance(obj, dict): | |
| data = {} | |
| for (k, v) in obj.items(): | |
| data[k] = todict(v, classkey) |
Contributed by Fabien Loudet, Linux SysAdmin at Rosetta Stone
Tired of always having to enter your SSH key passphrase when logging in to remote machines?
Here comes ssh-agent. Enter the passphrase once and it will keep it in memory for you
Using ssh-agent in your shell session: