知识卡片
编排工具也能运行单次任务
Docker Compose支持指定服务和run一次性命令,不能沿用原书“不能运行子集或短任务”的绝对比较。比较任务工具时应看实际依赖顺序、配置和维护需求,而非把某个up默认行为当全部能力。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Docker Compose is designed for running and orchestrating long-lived processes, and it also does not allow you to run a subset of specific tasks or containers. For example, docker-compose up will start all the services specified in docker-compose.yml. In contrast, batect supports both running long-lived and short-lived processes, and is better suited for defining containerized tasks that we run locally and on the CI/CD pipeline
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第03章《依赖管理的原则与工具》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch03.html)
- 结论依据:摘录中关于编排工具也能运行单次任务的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Docker Compose is designed for running and orchestrating long-lived processes, and it also does not allow you to run a subset of specific tasks or containers. For example, docker-compose up will start all the services specified in docker-compose.yml. In contrast, batect supports both running long-lived and short-lived processes, and is better suited for defining containerized tasks that we run locally and on the CI/CD pipeline