chore: simplify testing

This commit is contained in:
Balázs Orbán
2023-10-08 19:05:19 +02:00
parent 979c9f06b3
commit 2f0b85b27c
3 changed files with 8 additions and 14 deletions

View File

@@ -1,13 +0,0 @@
version: "3"
services:
postgres:
image: postgres:latest
container_name: pg-adapter
environment:
POSTGRES_DB: adapter-postgres-test
POSTGRES_USER: pg
POSTGRES_PASSWORD: pg
volumes:
- ./example-schema.sql:/docker-entrypoint-initdb.d/example-schema.sql
ports:
- 5432:5432

View File

@@ -1,6 +1,13 @@
#!/usr/bin/env bash
docker-compose up -d
docker run --name pg-adapter \
-d \
-e POSTGRES_DB=adapter-postgres-test \
-e POSTGRES_USER=pg \
-e POSTGRES_PASSWORD=pg \
-p 5432:5432 \
-v "$(pwd)"/schema.sql:/docker-entrypoint-initdb.d/schema.sql \
postgres:latest
echo "waiting 10 seconds for databases to start..."
sleep 10