From b08354f03212497221b4d05dde9a2f0e776df2e3 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Thu, 26 Sep 2024 12:07:49 +0200 Subject: [PATCH] update Justfile --- Justfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Justfile b/Justfile index 8f7c3e0..b97956c 100644 --- a/Justfile +++ b/Justfile @@ -1,2 +1,20 @@ pg: docker run -d --name mina-archive-db -p 5432:5432 -v $(pwd)/sql_scripts:/docker-entrypoint-initdb.d -e POSTGRES_PASSWORD=whatever -e POSTGRES_USER=mina postgres + +pg-up: + docker start mina-archive-db + +pg-down: + docker kill mina-archive-db + +pg-rm: + docker rm mina-archive-db + +get-mainnet-archive-db: + ./scripts/get_archive_db.sh mainnet + +wait-for-pg: + ./scripts/wait_for_pg.sh + +test: + SNAP_CHECK=1 cargo test \ No newline at end of file