From afb928309dfd65d903a964656d81bef2615cbaef Mon Sep 17 00:00:00 2001 From: Luke Van Seters Date: Tue, 14 Sep 2021 12:31:54 -0400 Subject: [PATCH] Add tilt dependency on DB for mev-inspect --- Tiltfile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Tiltfile b/Tiltfile index 10714ab..b2f5799 100644 --- a/Tiltfile +++ b/Tiltfile @@ -1,11 +1,11 @@ -load('ext://helm_remote', 'helm_remote') -load('ext://restart_process', 'docker_build_with_restart') -load('ext://secret', 'secret_from_dict') -load('ext://configmap', 'configmap_from_dict') +load("ext://helm_remote", "helm_remote") +load("ext://restart_process", "docker_build_with_restart") +load("ext://secret", "secret_from_dict") +load("ext://configmap", "configmap_from_dict") helm_remote("postgresql", - repo_name='bitnami', - repo_url='https://charts.bitnami.com/bitnami', + repo_name="bitnami", + repo_url="https://charts.bitnami.com/bitnami", set=["postgresqlPassword=password", "postgresqlDatabase=mev_inspect"], ) @@ -18,13 +18,14 @@ k8s_yaml(secret_from_dict("mev-inspect-db-credentials", inputs = { "password": "password", })) -docker_build_with_restart('mev-inspect-py', '.', +docker_build_with_restart("mev-inspect-py", ".", entrypoint="/app/run.sh", live_update=[ - sync('.', '/app'), - run('cd /app && poetry install', - trigger='./pyproject.toml'), + sync(".", "/app"), + run("cd /app && poetry install", + trigger="./pyproject.toml"), ], - platform='linux/arm64', + platform="linux/arm64", ) k8s_yaml("k8s/app.yaml") +k8s_resource(workload="mev-inspect-deployment", resource_deps=["postgresql-postgresql"])