Skip to content
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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

salaboy
Copy link
Contributor

@salaboy salaboy commented Feb 4, 2025

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:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@salaboy salaboy requested review from a team as code owners February 4, 2025 10:08
@salaboy
Copy link
Contributor Author

salaboy commented Feb 4, 2025

@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

@salaboy
Copy link
Contributor Author

salaboy commented Feb 5, 2025

This PR depends on: #1192 for the actor runtime connections

@salaboy salaboy force-pushed the 1207-sb-examples branch 2 times, most recently from 42a423d to abbdf7c Compare February 6, 2025 09:33
<parent>
<groupId>io.dapr</groupId>
<artifactId>dapr-sdk-parent</artifactId>
<version>1.14.0-SNAPSHOT</version>
Copy link
Member

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.

Copy link
Contributor Author

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?

@salaboy salaboy force-pushed the 1207-sb-examples branch 7 times, most recently from 2c47a2b to c52312a Compare February 11, 2025 04:13
Copy link

There was an error handling pipeline event f3c3e364-6449-4327-8949-b4bcc2287e1c.

Copy link

There was an error handling pipeline event e2ad4049-1f9c-43b5-9730-d9968016868d.

Copy link

There was an error handling pipeline event bfb343e8-cca5-46c1-932c-b2d0a739308e.

salaboy and others added 14 commits February 11, 2025 15:47
…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]>
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]>
@salaboy
Copy link
Contributor Author

salaboy commented Feb 11, 2025

@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.

@salaboy salaboy requested a review from artursouza February 11, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Spring Boot examples to SDK that uses Testcontainers and dapr-spring modules
4 participants