Last active
October 15, 2019 11:56
-
-
Save justinyoo/ed7f480270239744e2f3e3efbe172242 to your computer and use it in GitHub Desktop.
Azure Storage Emulator on Azure Pipelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the latest preview | |
sudo npm install -g azurite | |
# Install the latest stable | |
sudo npm install -g azurite@2.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo azurite --silent --location /tmp --debug /tmp/debug.log & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
... | |
- task: ShellScript@3 | |
displayName: 'Install Azurite' | |
inputs: | |
targetType: inline | |
script: | | |
sudo npm install -g azurite | |
- task: ShellScript@3 | |
displayName: 'Run Azurite' | |
inputs: | |
targetType: inline | |
script: | | |
sudo azurite --silent --location /tmp --debug /tmp/debug.log & | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init ^ | |
/server "(localdb)\MsSqlLocalDb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator" start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
... | |
- task: CmdLine@2 | |
displayName: 'Run Azure Storage Emulator' | |
inputs: | |
script: | | |
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" init /server "(localdb)\MsSqlLocalDb" | |
"%ProgramFiles(x86)%\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment