sitespeed.io
sitespeed.io copied to clipboard
Azure Storage upload for videos and screenshoots
Feature/improvement
As I know, only AWS and DigitalOcean are supported for uploading screenshots and videos from the sitespeed.io run. Will be nice to have the possibility to being able to upload also to Azure storage.
Hi @AlanCodega I think we have S3 (and Digital Ocean and others that support S3), GCS and then scp to your own server. I wouldn't mind adding Azure support but as I said in https://github.com/sitespeedio/sitespeed.io/issues/3784#issuecomment-1457633772 I wonder if there's a way to test/verify without uploading to azure (avoid having a Microsoft account). Best case I would like to have a test in an GitHub action that could verify that the API works.
Hey @soulgalore, to test azure blob storage without a microsoft account, maybe you can use azurite:
Here's how you can set up and use Azurite:
1.Install Azurite using npm:
npm install -g azurite
2.Create a directory for the local storage:
mkdir azurite-data
3.Start the Azurite service:
azurite --location azurite-data --silent --loose
Now you have a local Azure Blob Storage emulator running on your machine. By default, it will run on http://127.0.0.1:10000. You can use the default account name and key provided by Azurite to access the local storage.
Default account name: devstoreaccount1 Default account key: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
To test your code with Azurite, update the connection string in your code to point to the local emulator:
DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;
Keep in mind that Azurite is a limited emulator and may not support all features of Azure Blob Storage. It is mainly intended for development and testing purposes.
@soulgalore an alternative can be that I'll provide you the username and secret key of an Azure blob storage, that i can create for you and you can use it.