Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stavepan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Sq.io: jq for databases and more
(sq.io)
606 points
by
stavepan
2y ago
|
129 comments
2.
▲
OpenAI released Whisper large-v3-turbo model
(github.com)
5 points
by
stavepan
2y ago
|
0 comments
3.
▲
Elon Musk's XAI Raises $6B in Latest Funding Round
(forbes.com)
2 points
by
stavepan
2y ago
|
0 comments
4.
▲
by
stavepan
2y ago
Healthchecks are a great way to achieve this. As this repository mentions, this is the example using PostgreSQL. depends_on: postgres-database: condition: service_healthy healthcheck: test: ["CMD-SHELL", "pg_isready&q
5.
▲
by
stavepan
2y ago
Many people have the following setup in docker-compose.yml file. version: '3' services: mysql: image: mysql:8.0 app: build: . command: is_ready --timeout 10 --addr mysql:3306 -- <run migrations command>
6.
▲
by
stavepan
2y ago
To be honest, I wanted to make the title more specific regarding dependencies but the title was already too big.
7.
▲
by
stavepan
2y ago
That's true. For example, in the case of PostgreSQL, there is already a tool called pg_isready [0] to do this inside a healthcheck as you described. services: postgres-db: image: postgres healthcheck: test: ["CMD-S
8.
▲
by
stavepan
2y ago
Can you suggest to me one way for an API service to wait for a database to accept connections to run the database migrations without the API depending on the liveness of the database to start up?
9.
▲
by
stavepan
2y ago
Interesting idea for a feature request. I would love to read a GitHub issue with your specific case so I can start investigating and think about how to solve a problem like this.
10.
▲
by
stavepan
2y ago
Interesting project, I was not familiar with that. Thanks for letting me know :)
11.
▲
by
stavepan
2y ago
Regarding zero dependencies, I meant that it is a static binary and does not need any external tools to be installed. For example, some alternatives require netcat to be installed.
12.
▲
by
stavepan
2y ago
is_ready is an alternative to this. I built it for many reasons: - Most docker images do not contain netcat so you would have to download one of them in any case. - In the case of is_ready, you won't have to write this script yourself.
13.
▲
Show HN: Is_ready – Wait for many services to become available – 0 Dependencies
(github.com)
38 points
by
stavepan
2y ago
|
40 comments
14.
▲
Show HN: Django-cypress: Django integration with Cypress
(github.com)
1 points
by
stavepan
3y ago
|
0 comments
15.
▲
by
stavepan
4y ago
I also believe that one week and 30mins are are not enough for 1-on-1s. In my company, we do 1-on-1s once a month for 1 hour. The manager asks questions like: - How are you? - What's the skill that you are trying to improve this month?
16.
▲
Show HN: Free Jekyll online CV theme
(github.com)
4 points
by
stavepan
5y ago
|
0 comments