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

Update Pulsar Container #858

Merged
merged 1 commit into from
Sep 13, 2018
Merged

Conversation

aahmed-se
Copy link
Contributor

@aahmed-se aahmed-se commented Sep 5, 2018

Simply startup script using defaults.

@bsideup
Copy link
Member

bsideup commented Sep 6, 2018

Hi @aahmed-se! It seems that 2.2.0 is not released yet :D

@aahmed-se aahmed-se changed the title Update Pulsar Container [WIPUpdate Pulsar Container Sep 6, 2018
@aahmed-se
Copy link
Contributor Author

my mistake it's actually another change for something else, will mark it wip for now

@aahmed-se aahmed-se changed the title [WIPUpdate Pulsar Container [WIP] Update Pulsar Container Sep 6, 2018
@aahmed-se
Copy link
Contributor Author

This is ready for review now

@aahmed-se aahmed-se changed the title [WIP] Update Pulsar Container Update Pulsar Container Sep 9, 2018

public PulsarContainer() {
this("2.1.0-incubating");
super(IMAGE_NAME);
Copy link
Member

Choose a reason for hiding this comment

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

could you please revert constructor removal? That's a breaking change

waitingFor(Wait.forLogMessage(".*messaging service is ready.*\\s", 1));
@Override
public void start() {
this.waitStrategy = new HttpWaitStrategy()
Copy link
Member

Choose a reason for hiding this comment

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

please use waitingFor during the configuration

*/
public class PulsarContainer extends GenericContainer<PulsarContainer> {
public class PulsarContainer<T extends PulsarContainer<T>> extends GenericContainer<T> {
Copy link
Member

Choose a reason for hiding this comment

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

this container is a final container, there is no need for the self-typing

@aahmed-se
Copy link
Contributor Author

Comments addressed

waitingFor(Wait.forLogMessage(".*messaging service is ready.*\\s", 1));
withExposedPorts(BROKER_HTTP_PORT, BROKER_PORT);
withCommand("/bin/bash", "-c", "/pulsar/bin/pulsar standalone --no-functions-worker -nss");
waitingFor(Wait.forHttp(METRICS_ENDPOINT).forStatusCode(200));
Copy link
Member

Choose a reason for hiding this comment

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

would be better to specify port here explicitly, otherwise it uses "first exposed port" and users might change exposed ports according to their needs


waitingFor(Wait.forLogMessage(".*messaging service is ready.*\\s", 1));
withExposedPorts(BROKER_HTTP_PORT, BROKER_PORT);
withCommand("/bin/bash", "-c", "/pulsar/bin/pulsar standalone --no-functions-worker -nss");
Copy link
Member

Choose a reason for hiding this comment

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

fyi should also work with withCommand("/pulsar/bin/pulsar standalone", "--no-functions-worker", "-nss");

@aahmed-se
Copy link
Contributor Author

Made the changes

@aahmed-se
Copy link
Contributor Author

@bsideup let me know if there any more comments.

@bsideup bsideup modified the milestones: 1.9.0-rc1, next Sep 12, 2018
@aahmed-se
Copy link
Contributor Author

@bsideup is there anything else to change ?

@bsideup bsideup merged commit 66e89ec into testcontainers:master Sep 13, 2018
@bsideup
Copy link
Member

bsideup commented Sep 13, 2018

@aahmed-se it looks great, thank you 👍

@aahmed-se aahmed-se deleted the pulsar_update1 branch September 13, 2018 08:12
@rnorth
Copy link
Member

rnorth commented Sep 21, 2018

Released for preview in 1.9.0-rc2, to be published on Bintray.

Thanks @aahmed-se!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants