1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

add minio mc command, update minio

This commit is contained in:
Robin Appelman 2024-07-22 21:30:28 +02:00
commit e8bc685974
4 changed files with 12 additions and 18 deletions

View file

@ -22,7 +22,7 @@ impl ObjectStore {
fn image(&self) -> &str {
match self {
ObjectStore::S3 | ObjectStore::S3m | ObjectStore::S3mb => {
"minio/minio:RELEASE.2023-01-20T02-05-44Z.hotfix.b9b60d73d"
"minio/minio:RELEASE.2024-07-16T23-46-41Z"
}
ObjectStore::Azure => "arafato/azurite:2.6.5",
}
@ -182,6 +182,7 @@ impl ServiceTrait for ObjectStore {
"occ files_external:config 1 use_path_style true".into(),
"occ files_external:config 1 key minio".into(),
"occ files_external:config 1 secret minio123".into(),
"mc alias set s3 http://s3:9000 minio minio123".into(),
])
} else {
Ok(Vec::new())

View file

@ -70,11 +70,6 @@ impl ServiceTrait for Sharding {
) -> Result<HashMap<String, Value>> {
let shard_config = json!({
"filecache": {
"table": "filecache",
"primary_key": "fileid",
"shard_key": "storage",
"companion_keys": ["file_id"],
"companion_tables": ["filecache_extended", "files_metadata"],
"shards": [
{
"dbname": "haze",
@ -153,11 +148,6 @@ impl ServiceTrait for SingleShard {
) -> Result<HashMap<String, Value>> {
let shard_config = json!({
"filecache": {
"table": "filecache",
"primary_key": "fileid",
"shard_key": "storage",
"companion_keys": ["file_id"],
"companion_tables": ["filecache_extended", "files_metadata"],
"shards": [
{
"dbname": "haze",