Jenkins是否支持docker-compose [英] Does Jenkins support docker-compose

查看:550
本文介绍了Jenkins是否支持docker-compose的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了某些docker插件,例如 docker-slave-plugin ,它显示了对compose的支持,但我不知道如何实现.

I read in certain docker plugins, such as docker-slave-plugin, it shows there is support for compose but I do not understand how to implement it.

有人在Jenkins管道中使用docker-compose吗?

Has anyone used docker-compose in the Jenkins pipeline and how?

推荐答案

简短的答案似乎是否".它不直接支持撰写.

The short answer appears to be no. It does not directly support compose.

我通过使用Jenkinsfile中的script{}块来手动调用docker-compose up来解决此问题,效果很好.

I got around this by using the script{} blocks in the Jenkinsfile to manually call docker-compose up which worked fine.

这篇关于Jenkins是否支持docker-compose的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆