testcontainers-clj icon indicating copy to clipboard operation
testcontainers-clj copied to clipboard

Expose GenericContainer::withReuse?

Open fkretlow opened this issue 2 years ago • 4 comments

As far as I can tell, the Testcontainers API for reusable containers is currently not exposed by testcontainers-clj. I've got it to work with

(-> (tc/create ...)
    (tc/bind-filesystem! ...)
    (update :container #(.withReuse % true))

This uses GenericContainer::withReuse.

Would you consider adding something like this to the library?

fkretlow avatar Nov 26 '23 09:11 fkretlow

Hi @fkretlow, thanks for the suggestion! From a first look, this could be implemented to be expressed by data, like other configuration options, too. I will try and consider it for the next release

javahippie avatar Dec 02 '23 17:12 javahippie

@fkretlow Thanks again for the suggestion and the patience! I added a proposal for the feature in the commit 0e2d483 linked to this issue, would this interface enhancement work for you?

javahippie avatar Apr 14 '24 12:04 javahippie

Yes, thank you, I can totally work with that. :)

fkretlow avatar May 04 '24 15:05 fkretlow

@javahippie Hi Tim! Is there any chance for this to see the light of day?

marksto avatar Mar 04 '25 12:03 marksto