MemGPT/db/run_postgres.sh
Sarah Wooders 4cfc12f9c9 ci: Run tests using postgres docker container (#715)
* use postgres docker for tests

* checkout repo

* add checkout

* remove secrets
2023-12-27 13:44:33 +04:00

11 lines
253 B
Bash

# build container
docker build -f db/Dockerfile.simple -t pg-test .
# run container
docker run -d --rm \
--name memgpt-db-test \
-p 8888:5432 \
-e POSTGRES_PASSWORD=password \
-v memgpt_db_test:/var/lib/postgresql/data \
pg-test:latest