Skip to content

Commit

Permalink
test: Configure integration tests with database store
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Jan 10, 2025
1 parent c9ac38f commit 2d73db8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
container_name: solver
depends_on:
- chain
- postgres
build:
context: ..
dockerfile: ./docker/solver/Dockerfile
Expand All @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions stack
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2d73db8

Please sign in to comment.