Skip to content

Commit

Permalink
ci: add readiness_probe to other apps
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 10, 2024
1 parent e5e3418 commit a9b71fb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ local_resource(
"NEXTAUTH_SECRET": "secret",
"PORT": "3001",
},
readiness_probe = probe(
period_secs = 5,
http_get = http_get_action(
path = "/",
port = 3001,
),
),
deps = _buck2_dep_inputs(dashboard_target),
allow_parallel = True,
auto_init = run_apps,
Expand Down Expand Up @@ -91,6 +98,13 @@ local_resource(
serve_cmd = "buck2 run {}".format(pay_target),
env = pay_env,
serve_env = pay_env,
readiness_probe = probe(
period_secs = 5,
http_get = http_get_action(
path = "/",
port = 3002,
),
),
deps = _buck2_dep_inputs(pay_target),
allow_parallel = True,
resource_deps = [
Expand All @@ -117,6 +131,13 @@ local_resource(
serve_cmd = "buck2 run {}".format(admin_panel_target),
env = admin_panel_env,
serve_env = admin_panel_env,
readiness_probe = probe(
period_secs = 5,
http_get = http_get_action(
path = "/",
port = 3004,
),
),
deps = _buck2_dep_inputs(admin_panel_target),
allow_parallel = True,
resource_deps = [
Expand All @@ -142,6 +163,13 @@ local_resource(
serve_cmd = "buck2 run {}".format(map_target),
env = map_env,
serve_env = map_env,
readiness_probe = probe(
period_secs = 5,
http_get = http_get_action(
path = "/",
port = 3005,
),
),
deps = _buck2_dep_inputs(map_target),
allow_parallel = True,
resource_deps = [
Expand Down

0 comments on commit a9b71fb

Please sign in to comment.