Skip to content

Migrate to DockerCompose V2Β #358

@balint-backmaker

Description

@balint-backmaker

Motivation

  • Docker Compose v2 offers more features that we can make use of and create a better developer experience.
  • Docker Compose v1 will no longer be receiving updates after June 2023 so we should deprecate the usage of it

Notable features

The challenges

  • dual support of v1 and v2:
    • legacy support means tougher feature parity and more testing needed for something that is in fact deprecated
    • I'd like to drop it, but this means compose contains a breaking change
    • so what is the next major release for testcontainers-python ? πŸ™‚
  • docker compose v2 is not a python package (it's written in golang and I'm not sure I'm up for making a binding for this)
    • so need to agree on a sensible way to check this on instantiation of a DockerCompose object.
    • Not hard, just needs some reviews and is a breaking change

Final thoughts

I'm happy to pick this up, in fact I have a local copy with a bunch of goodies, just need some community support in how to introduce this change.

Also since this is likely a breaking change for the compose plugin, your thoughts on how to version this would be very welcome @tillahoffmann πŸ™

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions