Add auto-restart of process. Add GracefulKiller

This commit is contained in:
Luke Van Seters
2021-09-13 20:33:00 -04:00
parent e92c36d30a
commit 7a53816d74
21 changed files with 588 additions and 10 deletions

View File

@@ -1,22 +1,25 @@
load('ext://helm_remote', 'helm_remote')
load('ext://restart_process', 'docker_build_with_restart')
load('ext://secret', 'secret_from_dict')
helm_remote("postgresql",
repo_name='bitnami',
repo_url='https://charts.bitnami.com/bitnami',
set=["postgresqlPassword=password", "postgresqlDatabase=mev_inspect"],
)
load('ext://secret', 'secret_from_dict')
k8s_yaml(secret_from_dict("mev-inspect-db-credentials", inputs = {
"username" : "postgres",
"password": "password",
}))
docker_build('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'),
],
platform='linux/arm64',
)
k8s_yaml("k8s/app.yaml")