Skip to content

Commit

Permalink
better Makefile thanks to CR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeph Grunschlag committed Sep 6, 2023
1 parent 7b6041c commit f29b623
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/block-generator/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# The following variables are primarily useful for tuning dev testing and
# appear in the targets pg-up, pg-enter, pg-down, pg-query,
# run-runner, run-file-exporter, and benchmark-blocks-export:
SCENARIO = scenarios/benchmarks/stress.50000.yml
PG_UP = --start-postgres
RESETDB = --reset-db
TIMES = 1
REPORTS = ../../tmp/RUN_RUNNER_OUTPUTS
Expand All @@ -20,9 +22,7 @@ clean-generator:
rm -f block-generator

pg-up:
docker run --name $(PGCONT) -p 15432:5432 -e POSTGRES_USER=algorand -e POSTGRES_PASSWORD=algorand -d postgres
sleep 5
docker exec -it generator-test-container psql -Ualgorand -c "create database generator_db"
docker run --name $(PGCONT) -p 15432:5432 -e POSTGRES_USER=$(PGUSER) -e POSTGRES_PASSWORD=algorand -e POSTGRES_DB=$(PGDB) -d postgres

pg-enter:
docker exec -it $(PGCONT) psql -U $(PGUSER) -d $(PGDB)
Expand Down

0 comments on commit f29b623

Please sign in to comment.