In our development process we are trying to use Azurite in our testing and CI pipelines (Azurite is the official emulator for Azure Blob, Queue Storage and Table Storage).
Unfortunately, the URL passed to the azure-storage-blob-go/azblob library is currently hardcoded right here:
|
sUrl := fmt.Sprintf("https://%s.blob.core.windows.net", conf.AccountName) |
This makes it impossible to use an Azurite container as storage destination. A possible solution would be to include an optional parameter to the Azure config that could be used to override the default value:
|
type AzureConfig struct { |
|
AccountName string `yaml:"account_name"` // (env AZURE_STORAGE_ACCOUNT) |
|
AccountKey string `yaml:"account_key"` // (env AZURE_STORAGE_KEY) |
|
ContainerName string `yaml:"container_name"` |
|
TokenCredential azblob.TokenCredential `yaml:"-"` // required for presigned url generation |
|
} |
Thank you for your time!
In our development process we are trying to use Azurite in our testing and CI pipelines (Azurite is the official emulator for Azure Blob, Queue Storage and Table Storage).
Unfortunately, the URL passed to the azure-storage-blob-go/azblob library is currently hardcoded right here:
storage/azure.go
Line 52 in 0dabf99
This makes it impossible to use an Azurite container as storage destination. A possible solution would be to include an optional parameter to the Azure config that could be used to override the default value:
storage/config.go
Lines 44 to 49 in 0dabf99
Thank you for your time!