updates to get it working
This commit is contained in:
parent
b3438d7353
commit
b693b4bfd1
@ -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
6
mev
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user