본문 바로가기
DevOps/컨테이너

(Docker) Windows Docker Agent Images / 도커 윈도우 컨테이너를 젠킨스 slave 로 연결하기

by 정보봇따리 2022. 2. 9.
728x90
반응형
SMALL

 

이미지 설명

 : jenkins agent(slave)

 : Windows OS

 

 

일단 레퍼런스

 

https://www.jenkins.io/blog/2020/05/11/docker-windows-agents/

 

Windows Docker Agent Images: General Availability

We would like to announce the availability of official Windows agent images for Docker. These images allow provisioning Jenkins agents with Windows OS on Docker and Kubernetes. New images All official Docker images for agents now provide nanoserver-1809 an

www.jenkins.io

 

https://tech.forums.softwareag.com/t/windows-docker-container-as-jenkins-slaves/237027

 

Windows Docker container as Jenkins slaves

Introduction: Why we need this document Docker support is now known to be extended to Windows 2016 server and we can use these windows containers as slaves to a Jenkins master. For this, I did a small PoC and thought of sharing my experience in this docume

tech.forums.softwareag.com



 

이미지가 여러개인데, 아래 이미지 활용할 예정

 

 

1. Jenkins Master 에서 node 를 등록해준다.

 

2. jenkins agent 도커이미지로 연결한다

docker run jenkins/inbound-agent:windowsservercore-1809 `
   -Url http://jenkins-server:port `
   -WorkDir=C:/Users/jenkins/Agent `
   -Secret <SECRET> `
   -Name <AGENTNAME>

 

3. Trouble Shooting

3-1

-Agent TCP 연결은 기본이 disable 이라 enable 해줌 >> 포트 지정 (50001 로 함)

젠킨스/configureSecurity

 

-성공함

[도커 컨테이너 출력]

[마스터에 정상 등록]

 

 

 

728x90
반응형
LIST