Move dockerized Jenkins server to AWS

0

I have a dockerized Jenkins build server set up like below and I want move it to AWS.

I have some questions on how to do it, Thanks.

  1. Is ECS the right choice to deploy dockerized Jenkins agents?

  2. Is Fargate launch type of ECS support Windows containers?

  3. I know ECS can dynamically provision EC2 instances, can ECS provision like below?

a. If there is no job to build, there is no ECS2 instance running in the cluster.

b. If a build job started, ECS dynamically launch a EC2 instance to run the dockerized agents to handle it.

c. After build job is finished, ECS cluster will automatically stop or terminate the running EC2 instance.

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

Jenkins master:
Runs as a Linux container hosted on a UBUNTU virtual machine.

Jenkins Agents:

Linux Agent:
Runs as a Linux container hosted on the same UBUNTU virtual machine as master.

Windows Agents:
Runs as a windows container hosted on a Windows server 2019.

질문됨 4년 전421회 조회
1개 답변
1
수락된 답변

#1 - ECS is a perfectly reasonable place to run Jenkins, lots of customers do that.

#2 - Fargate currently doesn't support Windows, you will have to use the EC2 launch type for Windows servers

#3 - ECS doesn't support this model today, this is an area we're looking closely at so stay tuned. For now you'll need to have one instance running.

/Mats

profile pictureAWS
Mats
답변함 4년 전
profile picture
전문가
검토됨 22일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠