-
Notifications
You must be signed in to change notification settings - Fork 210
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
Adding producer and consumer app examples for Spring Boot integration #1208
base: master
Are you sure you want to change the base?
Conversation
c7a933a
to
100d037
Compare
@artur-ciocanu @artursouza @cicoyle recommendations are more than welcome on these examples.. I will add a README.md to this, but I appreciate code reviews and suggestions to get this merged ASAP |
265c708
to
695b93e
Compare
This PR depends on: #1192 for the actor runtime connections |
42a423d
to
abbdf7c
Compare
spring-boot-examples/consumer-app/src/main/java/io/dapr/springboot/examples/consumer/Order.java
Show resolved
Hide resolved
...onsumer-app/src/main/java/io/dapr/springboot/examples/consumer/SubscriberRestController.java
Outdated
Show resolved
Hide resolved
spring-boot-examples/pom.xml
Outdated
<parent> | ||
<groupId>io.dapr</groupId> | ||
<artifactId>dapr-sdk-parent</artifactId> | ||
<version>1.14.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the release script to update any new pom files. This is the disadvantage of creating a new project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@artursouza I've updated only the update sdk script.. do I need to update somewhere else?
2c47a2b
to
c52312a
Compare
There was an error handling pipeline event f3c3e364-6449-4327-8949-b4bcc2287e1c. |
There was an error handling pipeline event e2ad4049-1f9c-43b5-9730-d9968016868d. |
There was an error handling pipeline event bfb343e8-cca5-46c1-932c-b2d0a739308e. |
cbb58f3
to
555fa34
Compare
@artursouza I've updated the tutorial to use a local registry, so we don't need to create container images and push containers to the dapr registry. |
@artursouza this is ready for reviewing and merging.. I am not sure if there are more things to update on the release scripts.. can you please check? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salaboy great job! I have left comments, but those are mostly about formatting, I think it makes sense to add Checkstyle and fix all the issues. The POM files are also weirdly formatted, ideally it should use the same convention as in the other modules.
My biggest concern/question is around usage of DockerClient, to be honest I am not sure why it was required and if there is a way to have a simpler setup.
spring-boot-examples/consumer-app/src/test/resources/application.properties
Outdated
Show resolved
Hide resolved
...roducer-app/src/test/java/io/dapr/springboot/examples/producer/DaprTestContainersConfig.java
Outdated
Show resolved
Hide resolved
|
||
|
||
@Bean | ||
public RabbitMQContainer rabbitMQContainer(Network daprNetwork){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting is off
} | ||
|
||
@Bean | ||
public PostgreSQLContainer<?> postgreSQLContainer(Network daprNetwork){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting is off
rabbitMqProperties.put("user", "guest"); | ||
rabbitMqProperties.put("password", "guest"); | ||
|
||
return new DaprContainer("daprio/daprd:1.14.4") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting is off
...producer-app/src/test/java/io/dapr/springboot/examples/producer/TestProducerApplication.java
Outdated
Show resolved
Hide resolved
@artur-ciocanu ok.. the formatting is getting better.. this is one of the reasons to change to IntelliJ Enterprise @artursouza :) |
@artur-ciocanu look at the nice trick for reuse that @eddumelendez suggested.. now I've updated the readme and the code to pick up an SB app arg to check in which mode we are running :) |
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
…rs module (dapr#1210) * feat: Adding basic HTTPEndpoint configuration support in testcontainers module Signed-off-by: Laurent Broudoux <[email protected]> * feat: dapr#1209 Adding test for HTTPEndpoint in testcontainers module Signed-off-by: Laurent Broudoux <[email protected]> --------- Signed-off-by: Laurent Broudoux <[email protected]> Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
* Add app health check support to Dapr Testcontainer Signed-off-by: Artur Ciocanu <[email protected]> * Some minor cleanup Signed-off-by: Artur Ciocanu <[email protected]> * Move waiting to beforeEach, it looks more natural Signed-off-by: Artur Ciocanu <[email protected]> --------- Signed-off-by: Artur Ciocanu <[email protected]> Co-authored-by: Artur Ciocanu <[email protected]> Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
…ainers Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
…vide steps to create containers with spring boot Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>
04cb659
to
ad77a1f
Compare
Description
This PR adds two Spring Boot application examples as part of a new directory called
spring-boot-examples
to differentiate from the plain Java examples provided in this repo.This tests uses Testcontainers and the
dapr-spring
modules.Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #1207
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: