-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Closed
Labels
theme: containersTestcontainers, Docker Compose and Buildpack featuresTestcontainers, Docker Compose and Buildpack featurestype: enhancementA general enhancementA general enhancement
Milestone
Description
When using testcontainers at development time @DynamicPropertySource
is not an option. If you're working with a container that can't use @ServiceConnection
then things are of limited use.
Chatting to @bsideup, he suggested the idea of a container factory that could create the container but also do other things.
@Bean
ContainerFactory<MyContainer> myContainer() {
return ContainerFactory.of(MyContainer::new).withProperties(container -> return Map.of("some.property", container.getSomethingDynamic()));
}
Another option might be some kind of annotation to contribute things.
linux-china
Metadata
Metadata
Assignees
Labels
theme: containersTestcontainers, Docker Compose and Buildpack featuresTestcontainers, Docker Compose and Buildpack featurestype: enhancementA general enhancementA general enhancement