Add mev exec to execute a command on the inspect pod

This commit is contained in:
Luke Van Seters 2021-11-02 14:31:47 -04:00
parent c436c6480e
commit d4a0541391
2 changed files with 6 additions and 2 deletions

View File

@ -54,7 +54,7 @@ Press "space" to see a browser of the services starting up.
On first startup, you'll need to apply database migrations with: On first startup, you'll need to apply database migrations with:
``` ```
kubectl exec deploy/mev-inspect -- alembic upgrade head ./mev exec alembic upgrade head
``` ```
## Usage ## Usage
@ -181,7 +181,7 @@ tilt up
And rerun migrations to create the tables again: And rerun migrations to create the tables again:
``` ```
kubectl exec deploy/mev-inspect -- alembic upgrade head ./mev exec alembic upgrade head
``` ```
### I was using the docker-compose setup and want to switch to kube, now what? ### I was using the docker-compose setup and want to switch to kube, now what?

4
mev
View File

@ -56,6 +56,10 @@ case "$1" in
echo "Fetching block $block_number" echo "Fetching block $block_number"
kubectl exec -ti deploy/mev-inspect -- poetry run fetch-block $block_number kubectl exec -ti deploy/mev-inspect -- poetry run fetch-block $block_number
;; ;;
exec)
shift
kubectl exec -ti deploy/mev-inspect -- $@
;;
*) *)
echo "Usage: "$1" {db|backfill|inspect|test}" echo "Usage: "$1" {db|backfill|inspect|test}"
exit 1 exit 1