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.
This commit is contained in:
2023-11-27 16:33:00 +01:00
parent 2754a3bb30
commit 98f02c1c08
3 changed files with 23 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ pub fn ps() -> Result<()> {
/// `docker compose --env-file ./.env -f docker/local/docker-compose.yaml up start`
pub fn start(containers: Option<&str>) -> Result<()> {
let args = format!("start {}", containers.unwrap_or(""));
CommandBuilder::docker_compose().args("start").exec()
CommandBuilder::docker_compose().args(&args).exec()
}
pub fn stop() -> Result<()> {