Skip to content

Commit

Permalink
Fix s3 store producer (#84)
Browse files Browse the repository at this point in the history
* Fix s3 store producer

* Revert default storage as nfs
  • Loading branch information
ruhan1 committed Apr 8, 2024
1 parent 6cc98ff commit a38627c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public interface StorageServiceConfig
String type();

@WithName( "bucket.name" )
@WithDefault( "" )
@WithDefault( "test" )
String bucketName();
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ public PathMappedFileManager getFileManager()

if ( StorageServiceConfig.STORAGE_S3.equals( storageType ) )
{
physicalStore = new FileBasedPhysicalStore( storageConfig.baseDir() );
physicalStore = new S3PhysicalStore( s3Client, storageConfig.bucketName() );
}
else
{
physicalStore = new S3PhysicalStore( s3Client, storageConfig.bucketName() );
physicalStore = new FileBasedPhysicalStore( storageConfig.baseDir() );
}

return new PathMappedFileManager( config, pathDB, physicalStore );
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ storage:
baseDir: "/tmp"
readonly: false
removableFilesystemPattern: ".+:(remote|group):.+"
type: s3
bucket:
name: test
#type: s3
#bucket:
# name: test

"%dev":
quarkus:
Expand Down

0 comments on commit a38627c

Please sign in to comment.