azure-devops - Azure DevOps 容器作业;在“第二个”图像上运行命令行命令
问题描述
我正在玩 Azure DevOps 容器作业和服务容器。我的用例如下,我(不幸的是)必须在 Private Hosted Build 代理上做所有事情。
我正在容器 A 中作为容器作业运行我的作业。我在容器 B 上安装了使用命令行的特定软件(Fortify)
基本上我希望在容器 A 上运行的步骤之一在容器 B 中运行(使用工作区中的代码进行强化扫描)。当然我可以在一份单独的工作中完成,但我更愿意在同一份工作中完成。
如果目前可行,有什么想法吗?
谢谢
解决方案
酷,我刚刚读到这个功能将在 sprint 163 版本中可用! https://docs.microsoft.com/en-us/azure/devops/release-notes/2020/sprint-163-update
resources:
containers:
- container: python
image: python:3.8
- container: node
image: node:13.2
jobs:
- job: example
container: python
steps:
- script: echo Running in the job container
- script: echo Running on the host
target: host
- script: echo Running in another container, in restricted commands mode
target:
container: node
commands: restricted
推荐阅读
- java - java - 如何使用spark和java处理并行中多个文件的不同位置?
- c++ - 选择排序不抓取数组中的最后一个元素
- ios - 查找最低定位元素
- javascript - 无法在聊天应用程序中使用 Ajax 调用从控制器返回 html
- python - 将多个数据帧转换为多索引数据帧
- c# - 选择不同的项目时,组合框属性更改属性不更新?
- php - 如何使用 google docs api php 插入文本
- python - 修补本地类引用
- database - 如何在 DigitalOcean droplet 上安装和启动 Exasol 社区?
- javascript - 检查 Laravel-blade 中所有复选框的好方法