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:
parent
8c191859b2
commit
df186df3c3
3 changed files with 8 additions and 8 deletions
|
|
@ -7,7 +7,7 @@
|
|||
'key' => 'dummy',
|
||||
'secret' => 'dummyj',
|
||||
'hostname' => 's3',
|
||||
'port' => 4569,
|
||||
'port' => 4566,
|
||||
'use_ssl' => false,
|
||||
'use_path_style'=>true
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[default]
|
||||
access_key = DUMMY
|
||||
secret_key = DUMMY
|
||||
host_base = http://s3:4569/
|
||||
host_bucket = http://s3:4569/%(bucket)
|
||||
no_ssl = True
|
||||
host_base = http://s3:4566/
|
||||
host_bucket = http://s3:4566/%(bucket)
|
||||
check_ssl_certificate = False
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue