Merge b693b4bfd14039d34d9c5476eecdde88038be771 into ce8179f07e4fb8740b43570aa2c5826447c2af26

This commit is contained in:
Kyle Montag 2024-11-28 20:34:56 +05:00 committed by GitHub
commit aea289dc05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 121 additions and 116 deletions

View File

@ -1,6 +1,6 @@
FROM python:3.9-slim-buster
ENV POETRY_VERSION=1.1.12
ENV POETRY_VERSION=1.8.4
RUN useradd --create-home flashbot \
&& apt-get update \
@ -17,8 +17,7 @@ WORKDIR /app/
USER flashbot
RUN poetry config virtualenvs.create false \
&& poetry install
RUN poetry install
COPY --chown=flashbot . /app

6
mev
View File

@ -96,6 +96,7 @@ case "$1" in
*)
echo "prices usage: "$1" {fetch-all}"
exit 1
;;
esac
;;
backfill-export)
@ -117,6 +118,10 @@ case "$1" in
echo "Exporting $block_number"
kubectl exec -ti deploy/mev-inspect -- poetry run s3-export $block_number
;;
migrate)
echo "Applying database migrations"
kubectl exec -ti deploy/mev-inspect -- poetry run alembic upgrade head
;;
exec)
shift
kubectl exec -ti deploy/mev-inspect -- $@
@ -124,6 +129,7 @@ case "$1" in
*)
echo "Usage: "$1" {db|backfill|inspect|test}"
exit 1
;;
esac
exit 0