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

chore: docker-compose postgres healthcheck #890

Merged
merged 6 commits into from
Aug 8, 2023

Conversation

patriknw
Copy link
Member

  • instead of sleep in CI

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

LGTM, but we can eventually only use --wait

docker-compose -f docker-files/docker-compose-postgres.yml up -d
# TODO: could we poll the port instead of sleep?
sleep 10
docker-compose -f docker-files/docker-compose-postgres.yml up --build --detach --wait
Copy link
Member

Choose a reason for hiding this comment

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

I think that --build is not needed and --wait implies --detach

so docker-compose up --wait should be enough

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, --build is only if you need it to first build the image from a Dockerfile.

@patriknw
Copy link
Member Author

Same problem as in akka/akka-persistence-r2dbc#401

@pvlugter
Copy link
Contributor

pvlugter commented Aug 7, 2023

Have got this working for akka/akka-persistence-r2dbc#437. Where docker-compose -> v1 and docker compose -> v2. Will update this PR directly.

Copy link
Contributor

@pvlugter pvlugter left a comment

Choose a reason for hiding this comment

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

Working now

@pvlugter pvlugter merged commit 810854c into main Aug 8, 2023
@pvlugter pvlugter deleted the wip-postgres-healthcheck-patriknw branch August 8, 2023 00:19
Copy link
Member Author

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

still some old docker-compose, I can update those

@@ -248,7 +248,7 @@ your own workstation. Docker, a JDK and @java[maven]@scala[sbt] is all that need
1. Start a local PostgresSQL server on default port 5432. The included `docker-compose.yml` starts everything required for running locally.

```shell
docker-compose up -d
docker-compose up --wait
Copy link
Member Author

Choose a reason for hiding this comment

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

these are still on the old docker-compose

Copy link
Contributor

Choose a reason for hiding this comment

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

Should be fine, as people will probably just have one docker-compose locally, on v2.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, confusing

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, maybe on linux distros generally there can be both docker-compose v1 and docker compose v2? So probably good to update to docker compose everywhere.

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.

3 participants