Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add js version deployment script #2463

Merged
merged 12 commits into from
Apr 14, 2020
50 changes: 50 additions & 0 deletions Composer/packages/lib/bot-deploy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Node Deployment

## Instructions
> 1. npm install

> 2. You should provide following params:

// Subscription Id of Auzre Account
subId: string

// The credentials from user login
creds: any

// The project path to deploy
projPath: string

// Logger
logger: (string) => any

// Deployment settings file path
deploymentSettingsPath?: string

// Deploy file path, default is .deployment file
deployFilePath?: string

// Zip file path, default is 'code.zip'
zipPath?: string

// Pulblishing folder for 'dotnet publish' command, default is 'bin/Release/netcoreapp3.1'
publishFolder?: string

// The deployment settings file path, default is 'appsettings.deployment.json'
settingsPath?: string

// The ARM template file path, default is 'DeploymentTemplates/template-with-preexisting-rg.json'
templatePath?: string

// Dotnet project path, default is 'BotProject.csproj'
dotnetProjectPath?: string

// Lubuild generated folder path, default is 'generated'
generatedFolder?: string

// Remote bot json dialog path, default is 'ComposerDialogs'
remoteBotPath?: string
> 3. run 'create' method to create azure resources, including Bot Channels Registration, Azure Cosmos DB account, Application Insights, App Service plan, App Service, Luis, Storage account
> 4. run 'deploy' method to train the related luis models and deploy the runtime to Azure.
## Details
1. If you don't provide appId, the script will create an app registration based on your password.
2. If you don't provide luis authoring key, the script will create a luis authoring service and related luis service on Azure
31 changes: 31 additions & 0 deletions Composer/packages/lib/bot-deploy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "botframeworkdeploy",
"version": "1.0.0",
"description": "typescript version of bot deployment",
"main": "lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"dependencies": {
"@azure/arm-appservice-profile-2019-03-01-hybrid": "^1.0.0",
"@azure/arm-deploymentmanager": "^3.0.0",
"@azure/arm-resources": "^2.1.0",
"@azure/arm-subscriptions": "^2.0.0",
"@azure/cognitiveservices-luis-authoring": "^4.0.0-preview.1",
"@azure/graph": "^5.0.1",
"@azure/ms-rest-browserauth": "^0.1.4",
"@azure/ms-rest-nodeauth": "^3.0.3",
"@microsoft/bf-lu": "^4.8.0",
"@microsoft/bf-luis-cli": "^4.8.0",
"@types/archiver": "^3.1.0",
"@types/fs-extra": "^8.1.0",
"@types/request": "^2.48.4",
"@types/request-promise": "^4.1.45",
"archiver": "^3.1.1",
"fs-extra": "^8.1.0",
"request": "^2.88.2",
"request-promise": "^4.2.5"
}
}
Loading