<dependency>
<groupId>com.playtika.testcontainers</groupId>
<artifactId>embedded-azurite</artifactId>
<scope>test</scope>
</dependency>
-
embedded.azurite.enabled
(true|false, default is true)
-
embedded.azurite.reuseContainer
(true|false, default is false)
-
embedded.azurite.dockerImage
(default is 'mcr.microsoft.com/azure-storage/azurite')
-
Image versions on https://hub.docker.com/_/microsoft-azure-storage-azurite
-
-
embedded.azurite.port
(default is 10000)
Account name and account key are hardcoded as of https://github.com/Azure/Azurite#default-storage-account.
-
embedded.azurite.host
-
embedded.azurite.port
-
embedded.azurite.account-name
-
embedded.azurite.account-key
-
embedded.azurite.blob-endpoint
(computed propertyhttp://${host}:${port}/${accountName}
for convient configuration withazure-spring-boot-starter-storage
)
Use com.azure.spring:azure-spring-boot-starter-storage
(see https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-storage)
and configure your application context as follows:
azure:
storage:
account-name: ${embedded.azurite.account-name}
account-key: ${embedded.azurite.account-key}
blob-endpoint: ${embedded.azurite.blob-endpoint}
You can then access all beans from azure-spring-boot-starter-storage
, i.e. BlobServiceClientBuilder
.