Allow "startup commands"
See original GitHub issueWhich service(blob, file, queue, table) does this issue concern?
Blob.
Which version of the Azurite was used?
3.19.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What’s the Node.js version?
In Docker image.
What problem was encountered?
When trying to set up Azurite for my app’s functional tests (app uses Azure blob storage), I need to have a few containers created in the storage. The real containers are typically created with Terraform on deployment, the app itself doesn’t create the containers.
It would make sense to be able to do a similar thing with Azurite: being able to have a basic “startup commands” feature where the user can list some pre-requisites and Azurite itself creates them.
Steps to reproduce the issue?
Run Azurite container and use the container thumbnails
. The container doesn’t exists and I can’t make Azurite create it when starting up.
Have you found a mitigation/solution?
Two ways:
- the app can use its SDK and connection string to create the required containers, but since it otherwise expects them to be pre-existing, this feature would be built for tests only, messing up the application codebase with unrelated infrastructure code
- use an additional sideloaded container with a standalone SDK client (or
az
CLI tool) to run the commands, this is tricky to coordinate and quite convoluted overall, but seems like the direction which I’ll probably take
Issue Analytics
- State:
- Created a year ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Mac startup key combinations - Apple Support
Command (⌘)-R: Start up from the built-in macOS Recovery system. · Option (⌥) or Alt: Start up to Startup Manager, which allows you...
Read more >Advanced startup options (including safe mode)
On the Advanced Boot Options screen, use the arrow keys to highlight the safe mode option you want, and then press Enter. Log...
Read more >9 Ways to Access Advanced Startup/Boot Options Windows 10
Press Windows + R keys on the keyboard, and type cmd in Windows Run. Press Ctrl + Shift + Enter key to run...
Read more >How to access Advanced Startup Options on Windows 11
Press and hold the Shift key and click the Restart button. Start menu power options. After you complete the steps, the action will...
Read more >Windows Startup Settings Menu - Lifewire
The available options allow you to start Windows in some restricted fashion when it won't start normally. If Windows does start in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Full example how to create storage containers with approach 2:
@dkarlovi Thanks for the suggestion!
We will keep the issue open to track this request.
Azurite welcome contribution. It would be great if you have a good idea to implement this, and raise a PR to add this to Azurite.