Commit dff0a11
Improve test script
Following the model of `docker/push.sh`:
- Document expected behavior and usage with heading comments
- Exit on error, for example if the first Docker Compose command failed
- Support running from any working directory (using `cd`)
- Support any Docker Compose setup and version:
* Run `docker-compose` by default assuming v1 and `docker` group
* Support `docker compose` for Docker Compose v2
* Support `sudo ...` if needed1 parent ce8bf44 commit dff0a11
1 file changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
4 | 20 | | |
5 | 21 | | |
6 | 22 | | |
7 | 23 | | |
8 | 24 | | |
9 | 25 | | |
10 | 26 | | |
11 | | - | |
| 27 | + | |
12 | 28 | | |
0 commit comments