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

Possibility to pass the command that will be executed on the container #86

Merged
merged 3 commits into from Mar 25, 2017

Conversation

robertogyn19
Copy link
Contributor

This scenario is useful in cases where you need to pass some parameter that is not via environment variable.

@aeneasr
Copy link
Member

aeneasr commented Mar 25, 2017

Hey, thanks, this looks solid!

dockertest.go Outdated
Env: env,
}

return d.RunWithOptions(opts)
Copy link
Member

Choose a reason for hiding this comment

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

This could probably be a one liner:

return d.RunWithOptions(RunOptions{})

assert.NotEmpty(t, port)

err = pool.Retry(func() error {
_, err := http.Get(fmt.Sprintf("http://127.0.0.1:%s", port))
Copy link
Member

Choose a reason for hiding this comment

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

Also check for status code here, just to be sure?

Signed-off-by: Roberto Rodrigues Junior <robertogyn19@gmail.com>
@robertogyn19
Copy link
Contributor Author

Thanks for the comments, I've already made the suggested changes.

@aeneasr
Copy link
Member

aeneasr commented Mar 25, 2017

Thanks!

@aeneasr aeneasr merged commit 4e6e9b5 into ory:v3 Mar 25, 2017
@robertogyn19 robertogyn19 deleted the run-with-options branch March 26, 2017 01:07
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.

None yet

2 participants