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

Which method to use on builder? #258

Closed
epitka opened this issue May 25, 2022 · 1 comment
Closed

Which method to use on builder? #258

epitka opened this issue May 25, 2022 · 1 comment

Comments

@epitka
Copy link

epitka commented May 25, 2022

If I wanted to use this lib to spin up container for a test how would I provide last to arguments "bin/pulsar standalone"?

docker run -it -p 6650:6650  -p 8080:8080 --name pulsar_standalone apachepulsar/pulsar:latest bin/pulsar standalone

I have this

 using var container =
            new Builder().UseContainer()
                         .UseImage("apachepulsar/pulsar:latest")
                         .ExposePort(6650)
                         .ExposePort(8080)
                         .WithName("pulsar_standalone")
                         .WaitForMessageInLog("Successfully getLastMessageId -1:-1", TimeSpan.FromSeconds(20))
                         .DeleteIfExists()
                         .Build();
@epitka
Copy link
Author

epitka commented May 25, 2022

Figured it out. Command("bin/pulsar", "standalone")

@epitka epitka closed this as completed May 25, 2022
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

No branches or pull requests

1 participant