Use poetry directly instead of entrypoint script

This commit is contained in:
Luke Van Seters 2021-11-22 13:03:50 -05:00
parent a8c1728e35
commit 34aca861cc
3 changed files with 3 additions and 7 deletions

View File

@ -18,4 +18,5 @@ COPY . /app
# easter eggs 😝
RUN echo "PS1='🕵️:\[\033[1;36m\]\h \[\033[1;34m\]\W\[\033[0;35m\]\[\033[1;36m\]$ \[\033[0m\]'" >> ~/.bashrc
ENTRYPOINT [ "poetry"]
ENTRYPOINT [ "poetry" ]
CMD [ "run", "python", "loop.py" ]

View File

@ -30,14 +30,12 @@ k8s_yaml(secret_from_dict("mev-inspect-db-credentials", inputs = {
# "host": "trace-db-postgresql",
# }))
docker_build_with_restart("mev-inspect-py", ".",
entrypoint="poetry",
docker_build("mev-inspect-py", ".",
live_update=[
sync(".", "/app"),
run("cd /app && poetry install",
trigger="./pyproject.toml"),
],
platform='linux/arm64',
)
k8s_yaml(helm('./k8s/mev-inspect', name='mev-inspect'))
k8s_resource(workload="mev-inspect", resource_deps=["postgresql-postgresql"])

View File

@ -1,3 +0,0 @@
#!/bin/bash
python loop.py