簡體   English   中英

Azure DevOps self hosted windows agent to Azure Linux function app deployment

[英]Azure DevOps self hosted windows agent to Azure Linux function app deployment

I am working on Linux based Azure functions with Python 3.7 and trying to use Azure DevOps. 我的 python 項目有諸如 psycopg2-binary、cython 等要求。

我們已經在 Azure Devops 中配置了一個自托管的 windows 代理池。 我正在構建管道,我擔心部署不會成功,因為構建將在開發代理(在 Windows 上)上進行,並且部署在 Azure 功能(Linux)上。

在這種情況下,我們是否需要 linux 代理?

請指教。

在這種情況下,我們是否需要 linux 代理?

據我所知,您不需要使用 Linux 代理來構建 Python 項目。

You can directly use the python package built by windows agent to deploy to the linux azure function.

When you using tasks(eg Azure Functions task or Azure App Service deploy ) to deploy the package to Azure Function app, it will directly publish the packages and the Configuration to Azure Function app.

前提是部署的package滿足任務要求:package是zip或者war文件。 因此,您需要使用存檔文件任務來打包已發布的文件。

在此處輸入圖像描述

如果python項目的配置可以在linux系統中運行,同樣的配置也可以在linux Z86408593C34AF72FDD19App中運行

For more details about deploy a Python project to Azure, you could refer to this doc: deploy a Python web app to Azure App Service on Linux

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM