Skip to content

Commit d677da2

Browse files
kianmengcpjolicoeur
authored andcommitted
[conf][docs] Update test instructions
Add missing or incorrect step to bootstrap, build, and test the latest Postgres DB using compatible config with Docker-Compose or Podman Compose.
1 parent e9b2949 commit d677da2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,17 @@ end
8282

8383
First, you'll need to build the test database.
8484

85-
```elixir
86-
MIX_ENV=test mix ecto.reset
85+
```bash
86+
MIX_ENV=test mix db.reset
8787
```
8888

89-
This task assumes you have postgres installed and that the `postgres` user can create / drop databases. If you'd prefer to use a different user, you can specify it with the environment variable `SCRIVENER_ECTO_DB_USER`.
89+
This task assumes you have Postgres installed and that the `postgres` user can create / drop databases. If you'd prefer to use a different user, you can specify it with the environment variable `SCRIVENER_ECTO_DB_USER`.
90+
91+
Alternatively, if you prefer to use Docker for database setup.
92+
93+
```bash
94+
docker-compose up
95+
```
9096

9197
With the database built, you can now run the tests.
9298

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3"
22
services:
33
db:
4-
image: "postgres:13"
4+
image: "docker.io/postgres:latest"
55
ports:
66
- "127.0.0.1:5432:5432"
77
environment:

0 commit comments

Comments
 (0)