Title: Migrate to DockerCompose V2 · Issue #358 · testcontainers/testcontainers-python · GitHub
Open Graph Title: Migrate to DockerCompose V2 · Issue #358 · testcontainers/testcontainers-python
X Title: Migrate to DockerCompose V2 · Issue #358 · testcontainers/testcontainers-python
Description: 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 feat...
Open Graph Description: 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 shoul...
X Description: 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 shoul...
Opengraph URL: https://github.com/testcontainers/testcontainers-python/issues/358
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Migrate to DockerCompose V2","articleBody":"# Motivation\r\n- Docker Compose v2 offers more features that we can make use of and create a better developer experience.\r\n- Docker Compose v1 will no longer be receiving updates after June 2023 so we should deprecate the usage of it\r\n\r\n## Notable features\r\n- `docker compose ps --format json` can help us shortcut the effort on many useful things\r\n- #226 is trivial after this and fairly safe to \"prefer the plugin over the standalone\"\r\n- #259 may have been fixed in v2 but any fixes might be better implemented for v2\r\n- #241 is more trivial to implement once we have the json format available to us\r\n- #239 is also trivial as well as giving us a much richer set of data, including the easy shortcut to get the container ID and allow `testcontainers` to start/stop these containers\r\n\r\n# The challenges\r\n- dual support of v1 and v2: \r\n - legacy support means tougher feature parity and more testing needed for something that is in fact deprecated \r\n - I'd like to drop it, but this means compose contains a breaking change\r\n - so what is the next major release for `testcontainers-python` ? :slightly_smiling_face: \r\n- 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)\r\n - so need to agree on a sensible way to check this on instantiation of a `DockerCompose` object. \r\n - Not hard, just needs some reviews and is a breaking change\r\n\r\n\r\n# Final thoughts\r\nI'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.\r\n\r\nAlso since this is likely a breaking change for the compose plugin, your thoughts on how to version this would be very welcome @tillahoffmann :pray: \r\n","author":{"url":"https://github.com/balint-backmaker","@type":"Person","name":"balint-backmaker"},"datePublished":"2023-05-24T15:51:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/358/testcontainers-python/issues/358"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:61ff923e-8a94-6cc4-9c8f-c5263d82fd08 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4D0:3BC554:6CA5DC:948DA7:6A55488C |
| html-safe-nonce | 54134efb48907b749fcdcb4d75497d7d94b3c62dcb29d2b0ce02b2d72f4574ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEQwOjNCQzU1NDo2Q0E1REM6OTQ4REE3OjZBNTU0ODhDIiwidmlzaXRvcl9pZCI6IjUwMDY3ODI2OTQ1ODUzNTQzODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d374c0d1687e76e1017da59efc72276661d3e792ee3e5f7749a6c3b03defc55e |
| hovercard-subject-tag | issue:1724304390 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/testcontainers/testcontainers-python/358/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9d881594a9ea8c479785c22b38136b0e0506257dae404add03f85fb6beba7ed/testcontainers/testcontainers-python/issues/358 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9d881594a9ea8c479785c22b38136b0e0506257dae404add03f85fb6beba7ed/testcontainers/testcontainers-python/issues/358 |
| og:image:alt | 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 shoul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | balint-backmaker |
| hostname | github.com |
| expected-hostname | github.com |
| None | cd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5 |
| turbo-cache-control | no-preview |
| go-import | github.com/testcontainers/testcontainers-python git https://github.com/testcontainers/testcontainers-python.git |
| octolytics-dimension-user_id | 13393021 |
| octolytics-dimension-user_login | testcontainers |
| octolytics-dimension-repository_id | 85802819 |
| octolytics-dimension-repository_nwo | testcontainers/testcontainers-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 85802819 |
| octolytics-dimension-repository_network_root_nwo | testcontainers/testcontainers-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width