Skip to content

Commit 964bcab

Browse files
committed
Add local testing example and modify variables
1 parent 8bf2d2a commit 964bcab

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ Or alternatively specify the environment variables:
3939
| --- | --- |
4040
| `DATABASE_HOST` | IP / hostname of PostgreSQL server. |
4141
| `DATABASE_PORT` | TCP Port of PostgreSQL service. |
42-
| `DATABASE_USER` | Administrative user eg postgres with SUPERUSER privileges. |
43-
| `DATABASE_PASS` | Password of administrative user. |
42+
| `DATABASE_USERNAME` | Administrative user eg postgres with SUPERUSER privileges. |
43+
| `DATABASE_PASSWORD` | Password of administrative user. |
4444

4545
Some subcommands require additional environment parameters.
4646

@@ -60,3 +60,8 @@ Using bats setup and teardown and avoiding exposing postgres ports etc should al
6060
## Status
6161

6262
Feature incomplete. Work in progress.
63+
64+
## Local Testing
65+
66+
* `Example` - Create user
67+
docker run --rm -i -t -e DATABASE_HOST=localhost -e DATABASE_USERNAME=postgres -e DATABASE_PASSWORD=mysecretpassword -e DATABASE_PORT=5432 --network=host docker.io/panubo/postgres-toolbox create-user-db test test

0 commit comments

Comments
 (0)