refactor: use image field in docker-compose to leverage docker buildx for caching purposes
This commit is contained in:
@@ -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=..
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user