azure - 是否可以在本地运行 Azure 逻辑应用

标签 azure docker hosting workflow azure-logic-apps

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/

相关文章:

php - 另一个托管问题 : Linux, Apache2、PHP5、PostGreSQL 8.3

dns - 如何设置DNS,让一个gitlab页面的根域和子域指向同一个地址?

java - 无法以编程方式创建 AZURE VM

ASP.NET 通用提供程序 + Azure CSCFG

mysql - docker-compose mysql挂载卷把sql转成文件夹

docker - 在Nginx SNI docker swarm中重新解析后端

Azure AD 无法访问 login.microsoftonline.com/{tenantId}

azure - 工作帐户和 Microsoft 帐户之间的混淆

Azure:在 Azure Web 应用程序的 Linux 容器中运行非 Web 应用程序

node.js - appfog 无法安装 Node.js 应用程序