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

fixes daily-build regressions related to npm scripts migration #18780

Merged
merged 9 commits into from
Jun 1, 2022

Conversation

mshima
Copy link
Member

@mshima mshima commented Jun 1, 2022

Fixes daily-build regressions related to npm scripts migration.


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@@ -459,6 +459,11 @@ module.exports = class JHipsterServerGenerator extends BaseBlueprintGenerator {
'docker:db:await': `echo "Waiting for Couchbase to start" && wait-on -t ${WAIT_TIMEOUT} http-get://localhost:8091/ui/index.html && sleep 30 && echo "Couchbase started"`,
});
}
if (prodDatabaseType === MYSQL) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess that now we should also add this line if devDatabaseType is Mysql too.
Maybe a liveliness probe in the docker-compose file and in the TestContainer implementation would be more efficient than an additional command

Copy link
Member Author

Choose a reason for hiding this comment

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

Testcontainer doesn’t have this problem.
Docker compose uses sleep at microservices.

A liveliness in entrypoint is nice but can be trick.

Copy link
Contributor

Choose a reason for hiding this comment

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

I remember that I made some liveliness probes for some jh services in one of my previous project, let me check

@mshima mshima changed the title Set docker:db:await script for mysql. Fixes daily-build regressions related to npm scripts migration Jun 1, 2022
@mshima mshima changed the title Fixes daily-build regressions related to npm scripts migration fixes daily-build regressions related to npm scripts migration Jun 1, 2022
@mshima
Copy link
Member Author

mshima commented Jun 1, 2022

Please squash when merging.

@mshima mshima marked this pull request as ready for review June 1, 2022 18:45
@DanielFran DanielFran merged commit b25c29d into main Jun 1, 2022
@DanielFran DanielFran deleted the skip_ci-mysql_await branch June 1, 2022 18:48
@DanielFran DanielFran added this to the 7.9.0 milestone Jun 22, 2022
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.

3 participants