You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-7
Original file line number
Diff line number
Diff line change
@@ -19,30 +19,36 @@ Documentation for each subcommand:
19
19
20
20
Using Docker links to `postgres` container. This will display the usage information:
21
21
22
-
```docker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox```
22
+
```console
23
+
docker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox
24
+
```
23
25
24
26
To run the subcommand:
25
27
26
-
```docker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox <subcommand>```
28
+
```console
29
+
docker run --rm -i -t --link myserver:postgres docker.io/panubo/postgres-toolbox <subcommand>
30
+
```
27
31
28
32
## Configuration
29
33
30
34
Use `--link <postgres container name>:postgres` to automatically specify the required variables.
31
35
32
36
Or alternatively specify the environment variables:
33
37
34
-
-`DATABASE_HOST` = IP / hostname of PostgreSQL server.
35
-
-`DATABASE_PORT` = TCP Port of PostgreSQL service.
36
-
-`DATABASE_USER` = Administrative user eg postgres with SUPERUSER privileges.
37
-
-`DATABASE_PASS` = Password of administrative user.
38
+
| Name | Description |
39
+
| --- | --- |
40
+
|`DATABASE_HOST`| IP / hostname of PostgreSQL server. |
41
+
|`DATABASE_PORT`| TCP Port of PostgreSQL service. |
42
+
|`DATABASE_USER`| Administrative user eg postgres with SUPERUSER privileges. |
43
+
|`DATABASE_PASS`| Password of administrative user. |
38
44
39
45
Some subcommands require additional environment parameters.
40
46
41
47
## Testing
42
48
43
49
[bats](https://bats-core.readthedocs.io/en/stable/index.html) is used for testing. To test the image and commands bats and docker are required. Use the following commands to run all of the tests.
0 commit comments