是什么原因导致在发布期间什么也不做?相反,我得到了消息Not a vso image, so not writing build commands
有什么想法吗?
❯ func azure functionapp publish <function> --python
Getting site publishing info...
Creating archive for current directory...
Performing remote build for functions project.
Deleting the old .python_packages directory
Uploading 58.18 MB [##############################################################################]
Remote build in progress, please wait...
Updating submodules.
Preparing deployment for commit id 'b731a092-c'.
PreDeployment: context.CleanOutputPath False
PreDeployment: context.OutputPath /home/site/wwwroot
Repository path is /tmp/zipdeploy/extracted
Running oryx build...
Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.8 -i /tmp/8da4bb5df31e64ce -p packagedir=.python_packages/lib/site-packages
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20220308.4, Commit: c92fa6a2d6fc14dc9646df80e2bb2e393a5cdc258, ReleaseTagName: 20220308.4
Build Operation ID: |3oThCwt0g+I=.d2a2da5e0_
Repository Commit : b731a092-cd38-49dbc-b804-9270f73ec930
Detecting platforms...
Detected following platforms:
  python: 3.8.12
Using intermediate directory '/tmp/8dad4bb5f31e64ce'.
Copying files to the intermediate directory...
Done in 11 sec(s).
Source directory     : /tmp/8da4bbd5f31e64ce
Destination directory: /tmp/build/expressbuild
Python Version: /opt/python/3.8.12/bin/python3.8
Creating directory for command manifest file if it doesnot exist
Removing existing manifest file
Running pip install...
Done in 61 sec(s).
Not a vso image, so not writing build commands
Preparing output...
Copying files to destination directory '/tmp/build/expressbuild'...
Done in 28 sec(s).
Removing existing manifest file
Creating a manifest file...
Manifest file created.
Done in 103 sec(s).
Writing the artifacts to a Zip file
Running post deployment command(s)...
Generating summary of Oryx build
Deployment Log file does not exist in /tmp/oryx-build.log
The logfile at /tmp/oryx-build.log is empty. Unable to fetch the summary of build
Triggering recycle (preview mode disabled).
Deployment successful.
Remote build succeeded!发布于 2022-06-27 15:03:21
由于您还没有共享YAML文件,下面是GitHub回购Microsoft-Azure管道- Python函数应用程序- YAML中推荐的Azure函数Python部署示例。
不是vso映像,所以不编写构建命令
这是来自Oryx远程构建的默认消息,William给出了修复Python安装日志的方法,但没有显示。
Oryx BuildScriptGenerator of Python中的代码片段
if [ "$ReadImageType" = "vso-focal" ]
then
    echo $ReadImageType
    cat "$COMMAND_MANIFEST_FILE"
else
    echo "Not a vso image, so not writing build commands"
    rm "$COMMAND_MANIFEST_FILE"https://stackoverflow.com/questions/72585268
复制相似问题