Comments on: Spring Boot Development Mode with Testcontainers and Docker https://piotrminkowski.com/2023/05/26/spring-boot-development-mode-with-testcontainers-and-docker/ Java, Spring, Kotlin, microservices, Kubernetes, containers Fri, 13 Oct 2023 20:37:24 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2023/05/26/spring-boot-development-mode-with-testcontainers-and-docker/#comment-2159 Fri, 13 Oct 2023 20:37:24 +0000 https://piotrminkowski.com/?p=14207#comment-2159 In reply to Adam.

With e.g. annotation on the test: @ActiveProfiles({“test1”, “test2”}) ?

]]>
By: Adam https://piotrminkowski.com/2023/05/26/spring-boot-development-mode-with-testcontainers-and-docker/#comment-2157 Thu, 12 Oct 2023 11:43:33 +0000 https://piotrminkowski.com/?p=14207#comment-2157 Hey Piotr,
do you know how to set a profile for running application from test with dev testcontainers? I have a lot of mocks which I do normally use for local development, however I don’t see a way, to set a profile to start the app. Setting System.setProperty(“SPRING_PROFILES_ACTIVE”, “…”) didn’t help. Any ideas?

]]>
By: piotr.minkowski https://piotrminkowski.com/2023/05/26/spring-boot-development-mode-with-testcontainers-and-docker/#comment-2049 Mon, 19 Jun 2023 11:25:25 +0000 https://piotrminkowski.com/?p=14207#comment-2049 In reply to Can.

Hi,
I’m not sure about that, since skaffold is deploying app on k8s, while testcontainers are running locally on your docker. If you want e.g. to run the app on k8s with skaffold and run e.g. database on k8s you should provide YAML manifests to run such additional tools in the skaffold k8s directory

]]>
By: Can https://piotrminkowski.com/2023/05/26/spring-boot-development-mode-with-testcontainers-and-docker/#comment-2037 Tue, 13 Jun 2023 11:29:52 +0000 https://piotrminkowski.com/?p=14207#comment-2037 Hi Piotr

thanks for the article.How can we integrate this with skaffold and devtools’s hot reload so that whenever we change code,new docker containers with the new code is created and started?(so new codes will be in k8s cluster always)

Thanks

Can

]]>
By: Kyriakos Mandalas https://piotrminkowski.com/2023/05/26/spring-boot-development-mode-with-testcontainers-and-docker/#comment-2020 Mon, 29 May 2023 11:03:59 +0000 https://piotrminkowski.com/?p=14207#comment-2020 I think the following dependency needed for “@ServiceConnection” is not mentioned:

org.springframework.boot
spring-boot-testcontainers
test

Nice article, I am starting to look into these.

]]>