Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Docker Compose v2 #260

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Conversation

pan3793
Copy link
Contributor

@pan3793 pan3793 commented Aug 28, 2023

This PR requires #259 to get merged first.

Close #200

This PR aims to migrate to the backend of com.dimafeng.testcontainers.DockerComposeContainer from Docker Compose V1 (a.k.a docker-compose) to the Docker Compose V2 (a.k.a docker compose)

See more details at testcontainers/testcontainers-java#5608

From July 2023 Compose V1 stopped receiving updates. It’s also no longer available in new releases of Docker Desktop.

https://docs.docker.com/compose/migrate/

Compose V1 actually reached EOL, and Compose V2 has been adopted for a long time, so I suppose the change won't break user experience.

Before this PR, docker-compose is necessary for launching compose files.
After this PR, all tests passed without docker-compose but only docker commands

@pan3793
Copy link
Contributor Author

pan3793 commented Aug 28, 2023

@dimafeng I have rebased on the latest master, would you mind taking a look? thanks.

@dimafeng dimafeng merged commit 5ef3fe0 into testcontainers:master Aug 29, 2023
3 checks passed
@pan3793
Copy link
Contributor Author

pan3793 commented Aug 29, 2023

@dimafeng, thanks, and would be nice if you can trigger a release 😄

@dimafeng
Copy link
Collaborator

released 🎉

@pan3793
Copy link
Contributor Author

pan3793 commented Aug 29, 2023

nice! thank you @dimafeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ContainerLaunchException with Docker Compose V2
2 participants