简体   繁体   English

Jenkins 使用 docker 作为代理

[英]Jenkins using docker as an agent

I am not able to integrate Docker with Jenkins completely.我无法将 Docker 与 Jenkins 完全集成。 I setup Docker at Cloud Node settings in the Jenkins portal.我在 Jenkins 门户中的 Cloud Node 设置中设置了 Docker。 How can I use some image that contains Node, Ruby, etc?如何使用包含 Node、Ruby 等的图像? Must those images contain a JDK?这些镜像必须包含 JDK 吗?

There is a great post with a detailed explanation of how to deal with this here .这里有一篇很棒的文章,详细解释了如何处理这个问题 In the post, they state that every Docker image (even if you require building a Node or Ruby project) requires a JDK.在帖子中,他们声明每个 Docker 镜像(即使您需要构建一个 Node 或 Ruby 项目)都需要一个 JDK。 Seems the JDK requirement comes from the Docker plugin .似乎 JDK 要求来自Docker 插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM