1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

update to new localstack image

This commit is contained in:
Robin Appelman 2021-04-08 16:20:27 +02:00
commit df186df3c3
3 changed files with 8 additions and 8 deletions

View file

@ -71,7 +71,7 @@ pub enum ObjectStore {
impl ObjectStore {
fn image(&self) -> &str {
match self {
ObjectStore::S3 => "localstack/localstack:0.10.9",
ObjectStore::S3 => "localstack/localstack:0.12.7",
}
}
@ -83,7 +83,7 @@ impl ObjectStore {
fn self_env(&self) -> Vec<&str> {
match self {
ObjectStore::S3 => vec!["DEBUG=1", "SERVICES=s3:4569"],
ObjectStore::S3 => vec!["DEBUG=1", "SERVICES=s3"],
}
}
@ -130,13 +130,13 @@ impl ObjectStore {
docker,
format!("{}-object", cloud_id),
"root",
vec!["curl", "localhost:4569/"],
vec!["curl", "localhost:4566/health"],
vec![],
Some(&mut output),
)
.await?;
let output = String::from_utf8(output)?;
Ok(output.contains("ListAllMyBucketsResult"))
Ok(output.contains(r#""s3": "running""#))
}
fn container_name(&self, cloud_id: &str) -> String {