Azure logic apps says 的最新公告
"With this release you can now run Logic Apps wherever you run Azure Functions – containerized in Docker or Kubernetes environments such as AKS (Azure Kubernetes Service) or App Service for a managed PaaS experience"
可以托管在 docker 中吗?我没有看到任何与此相关的文章。
最佳答案
是的,文档显示了如何将应用程序打包到 Docker 容器中:https://learn.microsoft.com/en-us/azure/logic-apps/create-stateful-stateless-workflows-visual-studio-code#deploy-to-docker-container .
来自文档:
dotnet build -c release
dotnet publish -c release
docker build --tag local/workflowcontainer .
该示例使用如下所示的 dockerfile:
FROM mcr.microsoft.com/azure-functions/dotnet:3.0.14492-appservice
ENV AzureWebJobsStorage <storage-account-connection-string>
ENV AZURE_FUNCTIONS_ENVIRONMENT Development
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
ENV AzureFunctionsJobHost__Logging__Console__IsEnabled=true
ENV FUNCTIONS_V2_COMPATIBILITY_MODE=true
COPY ./bin/Release/netcoreapp3.1/publish/ /home/site/wwwroot
容器然后运行:
docker run -e WEBSITE_HOSTNAME=localhost -p 8080:80 local/workflowcontainer
关于azure - 是否可以在本地运行 Azure 逻辑应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64422173/