-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Start Botproject runtime in bot folder (#1672)
* start runtime from samplpebot csharp runtime * fix * fix * fix * use logger instead of console log * fix comment * fix comment * add port usable validation and use log instead console log * fix comments * move build script from template to server * polish output error message * remove environment * fix comments and add back the build script into template runtime * add migrate old bot feature * change docker file * remove annotation * fix docker * simpler dockerfile * fix dockerfile bug and port mapping * add bash script for unix, and remove pwsh from docker * split dockerfile into two * use nultistage instead of two dockerfile * update yarn lock * add more debug logs * fix settings file mis-created in server folder Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com> Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com> Co-authored-by: Andy Brown <asbrown002@gmail.com>
- Loading branch information
1 parent
7716b3b
commit 89faea0
Showing
22 changed files
with
330 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Param( | ||
[object] $config, | ||
[string] $customSettingFolder, | ||
[string] $luisAuthroingKey, | ||
[SecureString] $appPassword, | ||
[string] $projFolder = $(Join-Path $(Get-Location) BotProject CSharp) | ||
) | ||
|
||
if ($PSVersionTable.PSVersion.Major -lt 6){ | ||
Write-Host "! Powershell 6 is required, current version is $($PSVersionTable.PSVersion.Major), please refer following documents for help." | ||
Write-Host "For Windows - https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-6" | ||
Write-Host "For Mac - https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-6" | ||
Break | ||
} | ||
|
||
if ((dotnet --version) -lt 3) { | ||
Write-Host "! dotnet core 3.0 is required, please refer following documents for help." | ||
Write-Host "https://dotnet.microsoft.com/download/dotnet-core/3.0" | ||
Break | ||
} | ||
|
||
# This command need dotnet core more than 3.0 | ||
dotnet user-secrets init | ||
|
||
dotnet build |
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,11 @@ | ||
versionString=`dotnet --version` | ||
versionNum=`echo $versionString | cut -d . -f 1` | ||
if [[ $versionNum -lt 3 ]] | ||
then | ||
echo "! dotnet core 3.0 is required, please refer following documents for help. | ||
https://dotnet.microsoft.com/download/dotnet-core/3.0" | ||
exit 1 | ||
else | ||
dotnet user-secrets init | ||
dotnet build | ||
fi |
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
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
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
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.