Commit Graph

8 Commits

Author SHA1 Message Date
Matej Janezic 98f02c1c08
feat: pg_isready in `postgres import`
Fixed issue where arguments passed to `compose stop` weren't passed to
the underlying command. Added pg_isready call between each command call
in restore script.
2023-11-27 20:40:24 +01:00
Matej Janezic e061d6dc6c
feat: add compose ps command
Ps is new command scoped under compose. It is just proxy to `docker
compose ps`.
2023-08-09 13:59:58 +02:00
Matej Janezic b45cfd3e0a
feat: add compose exec and compose bash commands
Exec is new command scoped under compose. It allows sending commands
directly into appserver container. I will make this
customizable/controllable in the future.
2023-06-15 19:58:43 +02:00
Matej Janezic 316b37cd05
feat: custom command builder
Implemented custom command builder with nicer api suited for my needs.
Also returned error if there are no containers in
`scripts::postgres::get_containers`.
2023-06-02 17:18:25 +02:00
Matej Janezic 7b64d6192a
feat: docker_compose::start can be called with optional containers
Allow for starting just some of the containers. This will be needed for
implementing postgres::import where we'll need to stop all containers
and then only start postgres container.
2023-05-23 23:38:07 +02:00
Matej Janezic 9f3cc86e3f
feat: add basic error handling
Add anyhow::Result<()> return signature to all scripts and main.
2023-05-21 23:47:02 +02:00
Matej Janezic 4762c991a3
feat: finish docker compose cli
Implemented basic wanted functionality for docker compose subcommands.
We currently assume that docker-compose.yaml file is located in
local/docker/ folder.
2023-05-21 23:41:15 +02:00
Matej Janezic eb232a93f8
feat: prepare initial cli layout
Made initial command scopes
d -> docker related commands
dc -> docker compose related commands
dj -> django related commands
pg -> postgres related commands
2023-05-21 22:40:34 +02:00