Skip to content

Commit

Permalink
chore: add core api to Tiltfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Oct 24, 2023
1 parent 86cb4de commit ee64b8e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
33 changes: 31 additions & 2 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
docker_compose("./docker-compose.deps.yml", ".env","galoy-dev")

groups = {
"core": [
"mongodb",
"redis",
],
"bitcoin": [
"lnd1",
"bria",
Expand All @@ -13,8 +15,35 @@ groups = {
"otel-agent",
],
}

api_target = "//core/api:api"
local_resource(
"api",
labels = ["core"],
cmd = "buck2 build {}".format(api_target),
serve_cmd = "buck2 run {}".format(api_target),
allow_parallel = True,
readiness_probe = probe(
period_secs = 5,
http_get = http_get_action(
path = "healthz",
port = 4012,
),
),
resource_deps = [
"init-onchain",
"lnd1",
]
)

docker_compose("./docker-compose.deps.yml", project_name = "galoy-dev")

for service in groups["bitcoin"]:
dc_resource(service, labels = ["bitcoin"])
for service in groups["tracing"]:
dc_resource(service, labels = ["tracing"])
for service in groups["core"]:
dc_resource(service, labels = ["core"])

local_resource(
name='init-onchain',
Expand Down
7 changes: 7 additions & 0 deletions dev/docker-compose.deps.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
---
version: "3"
services:
redis:
image: redis:7.0.8
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
mongodb:
image: mongo:7.0.2
ports:
Expand Down

0 comments on commit ee64b8e

Please sign in to comment.