gpt4 book ai didi

docker - 在 docker 容器中运行 Jenkins 有什么好处

转载 作者:IT老高 更新时间:2023-10-28 21:21:10 28 4
gpt4 key购买 nike

我发现了很多关于如何在 Docker 中运行 Jenkins 的博客,但没有一个真正解释这样做的好处。

这些是我找到的唯一原因:reasons to use Docker .

1) I want most of the configuration for the server to be under version control.

2) I want the ability to run the build server locally on my machine when I’m experimenting with new features or configurations

3) I want to easily be able to set up a build server in a new environment (e.g. on a local server, or in a cloud environment such as AWS)

幸运的是,我的 Jenkins 服务器有人帮我处理,所以这些点并不重要。这些是唯一的原因还是我忽略了更好的论点,例如在一次触发许多构建时自动缩放和负载平衡(我认为这可以通过 Docker 实现)?

最佳答案

This answer对于 Docker, what is it and what is the purpose涵盖了什么是docker?为什么是docker?Docker官网也提供了explanation .
这里的简单指南是:

Faster delivery of your applications
Deploy and scale more easily
Get higher density and run more workloads
Faster deployment makes for easier management

对于 Jenkins 的使用,以 docker 方式部署/安装更快更容易。也许您现在不需要更轻松的比例功能。而且由于 docker 非常轻量级,所以你可以运行更多的工作负载。

然而

docker 方式也会带来一些其他的问题。一般来说,就是访问权限。
就像当你需要在 Jenkins(在 Docker 中)内运行 Docker 时,它会以某种方式变得复杂。 This blog将为您提供有关该情况的一些知识。

所以没有像往常一样的 Elixir 。 There is no single development, in either technology or in management technique, that by itself promises even one order-of-magnitude improvement in productivity, in reliability, in simplicity.

应根据具体场景进行选择。

关于docker - 在 docker 容器中运行 Jenkins 有什么好处,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44440164/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com