mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-18 10:06:51 +01:00
multi: fix Postgres on Travis
Fixes the docker build that was caused by https://github.com/docker-library/postgres/issues/884. Using the alpine and version 13 image avoids the problem introduced with postgres 14 and debian bullseye.
This commit is contained in:
5
Makefile
5
Makefile
@@ -194,10 +194,11 @@ ifeq ($(dbbackend),postgres)
|
||||
|
||||
# Start a fresh postgres instance. Allow a maximum of 500 connections.
|
||||
# This is required for the async benchmark to pass.
|
||||
docker run --name lnd-postgres -e POSTGRES_PASSWORD=postgres -p 6432:5432 -d postgres -N 500
|
||||
docker run --name lnd-postgres -e POSTGRES_PASSWORD=postgres -p 6432:5432 -d postgres:13-alpine -N 500
|
||||
docker logs -f lnd-postgres &
|
||||
|
||||
# Wait for the instance to be started.
|
||||
sleep 3
|
||||
sleep $(POSTGRES_START_DELAY)
|
||||
endif
|
||||
|
||||
itest-only: db-instance
|
||||
|
||||
Reference in New Issue
Block a user