-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrading from preview to stable azure functions v2
- Loading branch information
1 parent
ae7ee69
commit 4de8cda
Showing
20 changed files
with
544 additions
and
521 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,14 @@ | ||
FROM mcr.microsoft.com/azure-functions/dotnet | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends apt-utils 2>&1 | ||
|
||
RUN apt-get -y install git procps lsb-release | ||
|
||
RUN apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV DEBIAN_FRONTEND=dialog | ||
|
||
ENV SHELL /bin/bash |
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 @@ | ||
{ | ||
"name": "Blazor Sandbox", | ||
"dockerFile": "Dockerfile", | ||
"appPort": 9000, | ||
"extensions": ["ms-vscode.csharp"] | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
bin | ||
obj | ||
node_modules | ||
.vs | ||
.vs | ||
.ionide |
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 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-azuretools.vscode-azurefunctions", | ||
"ms-vscode.csharp" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,26 +1,11 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
// { | ||
// "name": ".NET Core Launch (console)", | ||
// "type": "coreclr", | ||
// "request": "launch", | ||
// "preLaunchTask": "build", | ||
// "program": "${workspaceFolder}/TicTacToe.Tests/bin/Debug/netcoreapp2.0/TicTacToe.Tests.dll", | ||
// "args": [], | ||
// "cwd": "${workspaceFolder}", | ||
// "console": "internalConsole", | ||
// "stopAtEntry": false, | ||
// "internalConsoleOptions": "openOnSessionStart" | ||
// }, | ||
{ | ||
"name": ".NET Core Attach", | ||
"name": "Attach to .NET Functions", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command:pickProcess}" | ||
"processId": "${command:azureFunctions.pickProcess}" | ||
} | ||
] | ||
} | ||
} |
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,9 @@ | ||
{ | ||
"FSharp.fsacRuntime": "netcore", | ||
"azureFunctions.projectRuntime": "~2", | ||
"azureFunctions.projectLanguage": "C#", | ||
"azureFunctions.deploySubpath": "DDDApi.Functions/bin/Release/netcoreapp2.1/publish", | ||
"azureFunctions.preDeployTask": "publish", | ||
"debug.internalConsoleOptions": "neverOpen", | ||
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" | ||
} |
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 |
---|---|---|
@@ -1,61 +1,57 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet build", | ||
"type": "shell", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"presentation": { | ||
"reveal": "silent" | ||
{ | ||
"label": "clean", | ||
"command": "dotnet clean", | ||
"type": "shell", | ||
"problemMatcher": "$msCompile", | ||
"options": { | ||
"cwd": "${workspaceFolder}/DDDApi.Functions" | ||
} | ||
}, | ||
"problemMatcher": "$msCompile", | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe" | ||
{ | ||
"label": "build", | ||
"command": "dotnet build", | ||
"type": "shell", | ||
"dependsOn": "clean", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": "$msCompile", | ||
"options": { | ||
"cwd": "${workspaceFolder}/DDDApi.Functions" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet publish", | ||
"dependsOn": "build", | ||
"type": "shell", | ||
"problemMatcher": [], | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe" | ||
}, | ||
{ | ||
"label": "clean release", | ||
"command": "dotnet clean --configuration Release", | ||
"type": "shell", | ||
"problemMatcher": "$msCompile", | ||
"options": { | ||
"cwd": "${workspaceFolder}/DDDApi.Functions" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "run func", | ||
"command": "cd DDDApi.Functions;func start --script-root bin/debug/netstandard2.0/publish", | ||
"dependsOn": "publish", | ||
"type": "shell", | ||
"problemMatcher": [], | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe" | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet publish --configuration Release", | ||
"type": "shell", | ||
"dependsOn": "clean release", | ||
"problemMatcher": "$msCompile", | ||
"options": { | ||
"cwd": "${workspaceFolder}/DDDApi.Functions" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "func", | ||
"dependsOn": "build", | ||
"options": { | ||
"cwd": "${workspaceFolder}/DDDApi.Functions/bin/Debug/netcoreapp2.1" | ||
}, | ||
"command": "host start", | ||
"isBackground": true, | ||
"problemMatcher": "$func-watch" | ||
} | ||
}, | ||
// { | ||
// "label": "run test", | ||
// "command": "dotnet run --project 'TicTacToe.Tests/TicTacToe.Tests.fsproj'", | ||
// "type": "shell", | ||
// "problemMatcher": [] | ||
// } | ||
] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"http": { | ||
"routePrefix": "api" | ||
} | ||
} | ||
"version": "2.0" | ||
} |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{ | ||
"IsEncrypted": false, | ||
"Values": { | ||
"AzureWebJobsStorage": "UseDevelopmentStorage=true" | ||
"AzureWebJobsStorage": "UseDevelopmentStorage=true", | ||
"FUNCTIONS_WORKER_RUNTIME": "dotnet" | ||
}, | ||
"ConnectionStrings": {}, | ||
"Sessionize": { | ||
"ApiKey": "" | ||
} | ||
} | ||
} |
Oops, something went wrong.