-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #366 from Azure/dev
3.4.0 Release - Sync dev branch to master
- Loading branch information
Showing
127 changed files
with
26,238 additions
and
1,661 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.vscode/** | ||
node_modules/** | ||
swagger/** | ||
__blobstorage__/** | ||
__queuestorage__/** | ||
__*.json | ||
__*__ | ||
*.tgz | ||
*.vsix | ||
*.log | ||
*.png | ||
*.env | ||
*.yml | ||
temp | ||
swagger | ||
.git | ||
.gitattributes | ||
.gitignore | ||
.lintstagedrc | ||
.vscode | ||
.vscodeignore | ||
dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,8 @@ debug.log | |
__*__.json | ||
__*__ | ||
*.env | ||
temp | ||
temp | ||
.gitattributes | ||
.dockerignore | ||
README.mcr.md | ||
icon.png |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,27 @@ | |
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Azurite Queue Service", | ||
"name": "Azurite Service - Loki", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeArgs": ["-r", "ts-node/register"], | ||
"args": ["${workspaceFolder}/src/azurite.ts", "-d", "debug.log"], | ||
"env": { "AZURITE_ACCOUNTS": "" }, | ||
"outputCapture": "std" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Azurite Service - Loki, Loose", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeArgs": ["-r", "ts-node/register"], | ||
"args": ["${workspaceFolder}/src/azurite.ts", "-d", "debug.log", "-L"], | ||
"env": { "AZURITE_ACCOUNTS": "" }, | ||
"outputCapture": "std" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Azurite Queue Service - Loki", | ||
"cwd": "${workspaceFolder}", | ||
"runtimeArgs": ["-r", "ts-node/register"], | ||
"args": ["${workspaceFolder}/src/queue/main.ts", "-d", "debug.log"], | ||
|
@@ -32,7 +52,7 @@ | |
"runtimeArgs": ["-r", "ts-node/register"], | ||
"args": ["${workspaceFolder}/src/blob/main.ts", "-d", "debug.log"], | ||
"env": { | ||
"AZURITE_DB": "mariadb://root:[email protected]:3306/azurite_blob", | ||
"AZURITE_DB": "mysql://root:[email protected]:3306/azurite_blob", | ||
"AZURITE_ACCOUNTS": "" | ||
}, | ||
"outputCapture": "std" | ||
|
@@ -82,7 +102,7 @@ | |
], | ||
"env": { | ||
"AZURITE_ACCOUNTS": "", | ||
"AZURITE_TEST_DB": "mariadb://root:[email protected]:3306/azurite_blob_test" | ||
"AZURITE_TEST_DB": "mysql://root:[email protected]:3306/azurite_blob_test" | ||
}, | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"outputCapture": "std" | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,34 +15,33 @@ In the root of the repository, we have provided pre-defined debugging scripts. T | |
Manually follow following steps to build and run all services in Azurite: | ||
|
||
```bash | ||
npm install | ||
npm ci | ||
npm run azurite | ||
``` | ||
|
||
Or build and run a certain service like Blob service: | ||
|
||
```bash | ||
npm install | ||
npm ci | ||
npm run blob | ||
``` | ||
|
||
## Debug with SQL based Persisted Metadata Storage | ||
|
||
By default, Azurite leverages loki as metadata database. | ||
However, loki limits Azurite's scalability and extensibility. | ||
Set environment variable `AZURITE_DB=dialect://[username][:password][@]host:port/database` to make Azurite blob service switch to a SQL database based metadata storage, like MySql, SqlServer, MariaDB. | ||
Set environment variable `AZURITE_DB=dialect://[username][:password][@]host:port/database` to make Azurite blob service switch to a SQL database based metadata storage, like MySql, SqlServer. | ||
|
||
For example, connect to MariaDB, MySql or SqlServer by set environment variables: | ||
For example, connect to MySql or SqlServer by set environment variables: | ||
|
||
```bash | ||
set AZURITE_DB=mariadb://root:[email protected]:3306/azurite_blob | ||
set AZURITE_DB=mysql://localhost:3306/azurite_blob | ||
set AZURITE_DB=mysql://root:[email protected]:3306/azurite_blob | ||
set AZURITE_DB=mssql://username:password@localhost:1024/azurite_blob | ||
``` | ||
|
||
> Note. Need to manually create database before starting Azurite instance. | ||
> Tips. Create database instance quickly with docker, for example `docker run --name mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:latest`. | ||
> Tips. Create database instance quickly with docker, for example `docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest`. And grant external access and create database `azurite_blob` using `docker exec mysql mysql -u root -pmy-secret-pw -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES; create database azurite_blob;"`. Notice that, above commands are examples, you need to carefully define the access permissions in your production environment. | ||
## Develop for Visual Studio Code Extension | ||
|
||
|
@@ -57,7 +56,7 @@ We also provide a predefined Visual Studio Code debug configuration "Current Moc | |
Or manually execute all test cases: | ||
|
||
```bash | ||
npm install | ||
npm ci | ||
npm run test | ||
``` | ||
|
||
|
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
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
Oops, something went wrong.