Skip to content

DockerComposeContainer: add 'removeVolumes' parameter#7009

Merged
eddumelendez merged 2 commits intotestcontainers:mainfrom
daniel-odrinski:feature/docker-compose/add-remove-images-parameter-#7008
May 12, 2023
Merged

DockerComposeContainer: add 'removeVolumes' parameter#7009
eddumelendez merged 2 commits intotestcontainers:mainfrom
daniel-odrinski:feature/docker-compose/add-remove-images-parameter-#7008

Conversation

@daniel-odrinski
Copy link
Contributor

@daniel-odrinski daniel-odrinski commented May 3, 2023

Adds a removeVolumes parameter which can be controlled through the withRemoveVolumes() method.
This parameter defaults to true (as per the original ticket #7008 and to retain backward-compatibility) but can be set to false.

I have also written tests to ensure that this parameter works as intended.

Closes #7008

@daniel-odrinski daniel-odrinski requested a review from a team May 3, 2023 20:28
@eddumelendez eddumelendez added this to the next milestone May 12, 2023
@eddumelendez eddumelendez changed the title [#7008] DockerComposeContainer: add 'removeVolumes' parameter DockerComposeContainer: add 'removeVolumes' parameter May 12, 2023
@eddumelendez eddumelendez merged commit 5b9c639 into testcontainers:main May 12, 2023
@eddumelendez
Copy link
Member

Thanks for your contribution, @DanWiseProgramming !

@daniel-odrinski
Copy link
Contributor Author

Thanks for the review and changes @eddumelendez !
This change I realised only after submitting the PR and was meaning to update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: DockerComposeContainer: Add option for down -v in stop()

2 participants