From 5619dc9b5aab2b9e9f44f00029450649ced0c96a Mon Sep 17 00:00:00 2001 From: Brian Ginsburg Date: Wed, 11 Dec 2024 15:24:33 -0800 Subject: [PATCH] test: Configure integration tests with database store --- docker/docker-compose.dev.yml | 4 ++++ stack | 3 +++ 2 files changed, 7 insertions(+) diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 098f5bf7..e04dbeb9 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -7,6 +7,7 @@ services: container_name: solver depends_on: - chain + - postgres build: context: .. dockerfile: ./docker/solver/Dockerfile @@ -21,6 +22,9 @@ services: - SERVER_URL=${SERVER_URL} - WEB3_RPC_URL=${WEB3_RPC_URL} - DISABLE_TELEMETRY=${DISABLE_TELEMETRY} + - STORE_TYPE=${STORE_TYPE} + - STORE_CONN_STR=${STORE_CONN_STR} + - STORE_GORM_LOG_LEVEL=${STORE_GORM_LOG_LEVEL} ports: - 8081:8081 healthcheck: diff --git a/stack b/stack index 5e721d77..504f5e2b 100755 --- a/stack +++ b/stack @@ -11,6 +11,9 @@ OS_ARCH=$(uname -m | awk '{if ($0 ~ /arm64|aarch64/) print "arm64"; else if ($0 function compose-env() { export ADMIN_ADDRESS=${@:-"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"} export DISABLE_TELEMETRY=false + export STORE_TYPE=database + export STORE_CONN_STR=postgres://postgres:postgres@localhost:5432/solver-db?sslmode=disable + export STORE_GORM_LOG_LEVEL=silent } function compose-init() {