-
Notifications
You must be signed in to change notification settings - Fork 36
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
Conversation
patriknw
commented
May 10, 2023
- instead of sleep in CI
* instead of sleep in CI
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.
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 |
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 that --build is not needed and --wait implies --detach
so docker-compose up --wait
should be enough
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.
Yeah, --build
is only if you need it to first build the image from a Dockerfile.
Same problem as in akka/akka-persistence-r2dbc#401 |
Have got this working for akka/akka-persistence-r2dbc#437. Where |
This reverts commit 9515620.
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.
Working now
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.
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 |
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.
these are still on the old docker-compose
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.
Should be fine, as people will probably just have one docker-compose locally, on v2.
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.
ok, confusing
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.
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.