-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: allow oracle-free to use RemoteDockerImage constructor #10263
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -64,9 +64,18 @@ public OracleContainer(String dockerImageName) { | |||||||||||||||||||||||||||||||||||||||||
| this(DockerImageName.parse(dockerImageName)); | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| public OracleContainer(Future<String> image) { | ||||||||||||||||||||||||||||||||||||||||||
| super(image); | ||||||||||||||||||||||||||||||||||||||||||
| preconfigure(); | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| public OracleContainer(final DockerImageName dockerImageName) { | ||||||||||||||||||||||||||||||||||||||||||
| super(dockerImageName); | ||||||||||||||||||||||||||||||||||||||||||
| dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME); | ||||||||||||||||||||||||||||||||||||||||||
| preconfigure(); | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| private void preconfigure() { | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+69
to
+78
|
||||||||||||||||||||||||||||||||||||||||||
| preconfigure(); | |
| } | |
| public OracleContainer(final DockerImageName dockerImageName) { | |
| super(dockerImageName); | |
| dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME); | |
| preconfigure(); | |
| } | |
| private void preconfigure() { | |
| configureStartupWait(); | |
| } | |
| public OracleContainer(final DockerImageName dockerImageName) { | |
| super(dockerImageName); | |
| dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME); | |
| configureStartupWait(); | |
| } | |
| private void configureStartupWait() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we normally have this config in a protected void configure() method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new Future constructor does not enforce compatibility with DEFAULT_IMAGE_NAME. Consider parsing the resolved image into a DockerImageName and calling assertCompatibleWith(DEFAULT_IMAGE_NAME) to maintain consistent safety checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That comment is actually correct.