Skip to content

Replace docker-compose breeze setup with testcontainers #43514

Open

Description

@potiuk

Part of breeze is a whole set of docker-compose files that are used to setup environment where various databases and integrations are set-up. This feature uses composability (sic!) of docker compose files and allows us to start breeze with the right set of database, integrations as docker-compose containers running together.

However there is a new tool called testcontainers https://testcontainers.com/?language=python that seem to have similar aim, but rather than using declarative and composable docker compose yaml files, they utiise native programming language integration to launch and shut-down necessary containers during running tests.

We could employ it to replace what breeze currently does for that part of our dev environment, and the added benefit is that you would not have to use breeze if you would like to run tests with "postgres", "kafka" etc. You would be able to do it easily using regular unit tests.

The part of breeze where it installs and manage the common container with all dependencies would still remain, but we could - I think fairly easily simplify and replace the part of Breeze where necessary containers are started via --backend and --integration database and plug them in pytest fixtures that could start/teardown necessary containers as needed even outside of breeze.

Activity

  1. converted this from a draft issue on Oct 30, 2024
  2. added
    area:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final code
    on Oct 30, 2024
  3. moved this from Ready to Backlog in CI / DEV ENV planned workon Nov 30, 2024
  4. moved this from Backlog to Ready in CI / DEV ENV planned workon Dec 24, 2024
  5. moved this from Ready to Backlog in CI / DEV ENV planned workon Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codearea:dev-tools

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions