Skip to content

Commit

Permalink
Use health-cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dlen committed Oct 21, 2023
1 parent ee3db1b commit ba447a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mysql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ impl Image for Mysql {
fn env_vars(&self) -> Box<dyn Iterator<Item = (&String, &String)> + '_> {
Box::new(self.env_vars.iter())
}

fn health_cmd(&self) -> Option<String> {
Some("mysqladmin ping --silent".to_owned())
}
}

#[cfg(test)]
Expand Down

0 comments on commit ba447a1

Please sign in to comment.