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

use org.testcontainers:consul #298

Merged
merged 4 commits into from
Aug 28, 2024
Merged

Conversation

pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Aug 28, 2024

Host and Port for client are based on example in https://java.testcontainers.org/modules/consul/

The biggest issue with the change is the docker container for Consul has a non-deterministic port. So we need to construct a config with the mapped port.

Fixes #296

@pjfanning pjfanning marked this pull request as draft August 28, 2024 10:00
@pjfanning pjfanning marked this pull request as ready for review August 28, 2024 10:40
@pjfanning pjfanning changed the title [WIP] use org.testcontainers:consul use org.testcontainers:consul Aug 28, 2024
pekko.discovery.pekko-consul {
consul-host = "${consul.getHost()}"
consul-port = $consulPort
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see

Copy link
Member

@He-Pin He-Pin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pjfanning pjfanning merged commit 9186257 into apache:main Aug 28, 2024
15 checks passed
@pjfanning pjfanning deleted the consul-container branch August 28, 2024 11:23
@Roiocam
Copy link
Member

Roiocam commented Aug 28, 2024

Thanks you @pjfanning, i am glad someone picked up this.

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.

replace unmaintained embedded-consul with testcontainers.org/modules/consul/
3 participants