diff --git a/protocol-testing/README.md b/protocol-testing/README.md index f680c06..0c6c50f 100644 --- a/protocol-testing/README.md +++ b/protocol-testing/README.md @@ -5,6 +5,10 @@ Rust-based integration testing framework for Tycho protocol implementations. ## How to Run ```bash +# Build the images +docker buildx build -f postgres.Dockerfile -t protocol-testing-db:latest --load . +docker buildx build -f run.Dockerfile -t protocol-testing-test-runner:latest --load . + # Export necessary env vars export RPC_URL=.. export SUBSTREAMS_API_TOKEN=.. diff --git a/protocol-testing/docker-compose.yaml b/protocol-testing/docker-compose.yaml index 2db2181..0e91bad 100644 --- a/protocol-testing/docker-compose.yaml +++ b/protocol-testing/docker-compose.yaml @@ -1,8 +1,6 @@ services: db: - build: - context: . - dockerfile: postgres.Dockerfile + image: protocol-testing-db:latest restart: "always" healthcheck: test: [ "CMD-SHELL", "pg_isready -U postgres" ] @@ -21,9 +19,7 @@ services: - postgres_data:/var/lib/postgresql/data test-runner: - build: - context: . - dockerfile: run.Dockerfile + image: protocol-testing-test-runner:latest depends_on: db: condition: service_healthy