-
Notifications
You must be signed in to change notification settings - Fork 89
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: bump seed timeout #2911
chore: bump seed timeout #2911
Changes from all commits
a30d552
a0d6eed
1318376
1316e74
ad90f0d
898664a
e6cbb22
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,10 @@ services: | |
- ../happy-life-bank/seed.yml:/workspace/seed.yml | ||
- ../happy-life-bank/private-key.pem:/workspace/private-key.pem | ||
depends_on: | ||
- cloud-nine-mock-ase | ||
- happy-life-backend | ||
happy-life-backend: | ||
condition: service_healthy | ||
cloud-nine-mock-ase: | ||
condition: service_started | ||
happy-life-backend: | ||
hostname: happy-life-bank-backend | ||
image: rafiki-backend | ||
|
@@ -69,6 +71,13 @@ services: | |
KEY_ID: 53f2d913-e98a-40b9-b270-372d0547f23d | ||
depends_on: | ||
- cloud-nine-backend | ||
healthcheck: | ||
test: ["CMD", "wget", "--header=apollo-require-preflight: true", "http://localhost:3001/graphql?query=%7B__typename%7D", "-O", "/dev/null"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To confirm, this is just making an empty GQL request > what does this header do? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, empty gql request. the header is to ensure CSRF protection doesnt block it. Took this request from apollo server docs here which mentions the header: https://www.apollographql.com/docs/apollo-server/monitoring/health-checks/ |
||
start_period: 60s | ||
start_interval: 5s | ||
interval: 30s | ||
retries: 1 | ||
timeout: 3s | ||
happy-life-auth: | ||
hostname: happy-life-bank-auth | ||
image: rafiki-auth | ||
|
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 wonder why we had the
cloud-nine-mock-ase
dependency originally, do we need it?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.
This was introduced in #1812. All
happy-life
services depend on thecloud-nine
ones to avoid building the same images twice. If we remove thedepends_on
, on a fresh localenv startup all the images will build two times since they are not found locally.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.
Got it, thanks @raducristianpopa !