ci: Run tests using postgres docker container (#715)
* use postgres docker for tests * checkout repo * add checkout * remove secrets
This commit is contained in:
10
db/run_postgres.sh
Normal file
10
db/run_postgres.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user