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 oracle wait strategy for Healthcheck #2931

Closed

Conversation

KyleAure
Copy link
Contributor

@KyleAure KyleAure commented Jun 24, 2020

Wait until DATABASE IS READY TO USE! is shown in the logs before starting.
Wait until container healthcheck reports healthy
Fixes #1292

@kiview
Copy link
Member

kiview commented Jun 30, 2020

You said in #1292 that the official Dockerfile even provides a health check, so I think using the Testcontainers health check wait strategy would even be nicer and ideally more future proof, especially considering slightly altered user images.

@rnorth
Copy link
Member

rnorth commented Jun 30, 2020

If we can be confident that the images include healthchecks, then yes I think this would be a good idea.

@KyleAure KyleAure force-pushed the 1292-oracle-wait-strategy branch from 4cb868f to eb899ec Compare July 1, 2020 16:24
@KyleAure KyleAure changed the title Update oracle wait strategy for message in logs Update oracle wait strategy for Healthcheck Jul 1, 2020
@KyleAure
Copy link
Contributor Author

KyleAure commented Jul 1, 2020

Updated for healthcheck and tested locally. Though, I'd be hesitant to merge this until we have proper tests setup.

@kiview
Copy link
Member

kiview commented Jul 2, 2020

Thanks, LGTM like this.
Regarding the merging, let me create a meta-issue to track to open breaking changes to Oracle module and we try to get them in in a single breaking release.

@KyleAure KyleAure force-pushed the 1292-oracle-wait-strategy branch from eb899ec to 707de29 Compare July 30, 2020 14:51
@stale
Copy link

stale bot commented Jan 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.

@stale stale bot added the stale label Jan 24, 2021
@stale stale bot removed the stale label Jan 24, 2021
withConnectTimeoutSeconds(DEFAULT_CONNECT_TIMEOUT_SECONDS);
addExposedPorts(ORACLE_PORT, APEX_HTTP_PORT);
addExposedPorts(ORACLE_PORT, APEX_HTTP_PORT, OEM_EXPRESS_PORT);
Copy link
Member

Choose a reason for hiding this comment

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

Adding OEM_EXPRESS_PORT is not really necessary for this PR, isn't it?

@kiview kiview self-requested a review October 19, 2021 07:44
@kiview
Copy link
Member

kiview commented Oct 19, 2021

Ok, maybe I messed something up during merging, but currently, the tests fail. Will have to investigate this further.

@KyleAure
Copy link
Contributor Author

@kiview @OnnoHuijgen I believe this PR is no longer needed. This was being proposed before the gvenzl/oracle-xe image was released and we were still being forced to build our own images based on Oracle's documented process.
The gvenzl/oracle-xe does not ship with a healthcheck enabled by default. So I think continuing to use the LogMessageWaitStrategy setup in pull #4402 should be the strategy going forward.

@KyleAure KyleAure closed this Oct 19, 2021
@kiview
Copy link
Member

kiview commented Oct 19, 2021

Cool, thanks a lot for clarifying this @KyleAure (and in general for being up to date regarding this module, much appreciated).
I know that @gvenzl did plan to add a healthcheck to the image, but since this is a Docker-specific feature and not OCI compliant, there were some challenges involved regarding how the image is built.

You can find some more context here:
opencontainers/image-spec#749 (comment)

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.

Oracle XE container doesn't wait till database is ready / wait-strategy ignored
5 participants