将基于 Docker 的 Jenkins 服务器迁移到 AWS 上

0

【以下的问题经过翻译处理】 我有一个docker化的Jenkins构建服务器,设置如下,我想将其转移到AWS。

我有一些关于如何实现它的问题,谢谢。

1.在部署docker化的Jenkins代理时,ECS是正确的选择吗? 2.ECS的Fargate启动类型支持Windows容器吗? 3.我知道ECS可以动态地提供EC2实例,是否可以像下面这样提供ECS?

a. 如果没有构建作业,集群中没有运行的ECS2实例。

b. 如果启动构建作业,则ECS会动态启动EC2实例来运行docker化的代理以处理该作业。

c. 构建作业完成后,ECS集群将自动停止或终止运行的EC2实例。

================================================== =========

Jenkins主:

作为运行在UBUNTU虚拟机上的Linux容器运行。

Jenkins代理:

Linux代理:

作为Linux容器运行,托管在与主机相同的UBUNTU虚拟机上。

Windows代理:

作为Windows容器运行,托管在Windows Server 2019上。

profile picture
EXPERT
asked 5 months ago11 views
1 Answer
0

【以下的回答经过翻译处理】 #1 - ECS是运行Jenkins的一个完全合理的地方,许多客户都这样做。

#2 - 目前Fargate不支持Windows,您将不得不使用EC2启动类型来运行Windows服务器。

#3 - ECS今天不支持这个模型,这是我们正在密切关注的领域,敬请关注。目前,您需要运行一个实例。

/Mats

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions