yakshaveinc / linux

software engineering for Linux projects
The Unlicense
1 stars 3 forks source link

Iterative setup for podman pods infra #22

Open abitrolly opened 4 years ago

abitrolly commented 4 years ago

podman promises to be better Docker, and provides pods on top of ordinary containers, similar to kubernetes. Let's see if it can handle the standard case of test driven/iterative infrastructure development.

In https://github.com/release-monitoring/anitya Dockerfile is greatly outdated. Missing dependencies, absent services, different commands that run for Dockerfile, for Development Ansible and for production.

Let's try to see how podman improves that. And first, let's setup DevOps workbench.

  1. Terminal pane to write container build code
  2. Terminal pane that watches container build code, rebuilds container and restarts it (could be two panes - one for building, one for starting)
  3. Terminal pane that waits for container to startup, then for services to start, then testes them and report result

This is setup for TDD for infrastructure. The third panel is our test, which is connected to the second panel - if container failed to start or failed in the middle, the test panel should detect that and report as well.

Them we can just leave all three panels independently and work on the code.

abitrolly commented 4 years ago

This setup we need to create container for https://github.com/release-monitoring/anitya and try to reuse Ansible scripts that will be shared with production.

  1. Get Anitya running
  2. Expose DB connection for inspection
  3. Run shemaspy/schemaspy container