[DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - ๋ถ€๋ก

2022. 9. 16. 16:14ใ†System ์ž‘์—…์‹ค/DevOps

728x90
๋ฐ˜์‘ํ˜•

 

์ด ๋‚ด์šฉ์€ ์ธํ”„๋Ÿฐ - Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• ๊ฐ•์˜๋ฅผ ๋ณด๊ณ  ์ •๋ฆฌํ•œ ๋‚ด์šฉ ์ž…๋‹ˆ๋‹ค.

 

 

 

๐Ÿ—‚ ๋ชฉ์ฐจ

โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - ์ž๋™ํ™” ๋„๊ตฌ์˜ ์‚ฌ์šฉ
โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - Jenkins + Infrastructure as Code ์™€์˜ ์—ฐ๋™
โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - Jenkins + Ansible + Kubernetes ์™€์˜ ์—ฐ๋™
โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - Advenced Jenkins ์‚ฌ์šฉ โ‘  - Pipeline
โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - Advenced Jenkins ์‚ฌ์šฉ โ‘ก - SonarQube
โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - Advenced Jenkins ์‚ฌ์šฉ โ‘ข - Multi Nodes
โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - ์ƒ์šฉ ํด๋ผ์šฐ๋“œ ํ™˜๊ฒฝ์— ๋ฐฐํฌํ•˜๊ธฐ
โ— [DevOps] Jenkins๋ฅผ ์ด์šฉํ•œ CI/CD Pipeline ๊ตฌ์ถ• - ๋ถ€๋ก

 

 

 

 

๐Ÿš€ ๋ถ€๋ก

    ๐Ÿ”ฝ  ๋ชป๋‹คํ•œ ์ด์•ผ๊ธฐ

        ๐Ÿ“ฆ Waterfall VS Agile


์ „ํ†ต์ ์ธ ๊ฐœ๋ฐœ ๋ฐฉ๋ฒ•๋ก ์— Waterfall (ํญํฌ์ˆ˜ ๋ชจ๋ธ๋ง) ์ด๋ผ๋Š” ๋ฐฉ์‹์ด ์žˆ์–ด์š”.
์ด๊ฒƒ์€ Project์˜ ๊ฐ ๋‹จ๊ณ„๊ฐ€ ๋šœ๋ ทํ•˜๊ฒŒ ๋‚˜๋ˆ ์ ธ ์žˆ๊ณ ,
์ˆœ์ฐจ์ ์ธ Project ๊ด€๋ฆฌ ๋ฐฉ๋ฒ•๋ก ์ด๋ผ๊ณ  ๋ถˆ๋ฆฌ๊ธฐ๋„ ํ•ด์š”.


๊ฐ๊ฐ์˜ ๋‹จ๊ณ„๋Š” ์ด์ „ ๋‹จ๊ณ„๊ฐ€ ์™„๋ฃŒ๊ฐ€ ๋˜์–ด์•ผ์ง€ ๋‹ค์Œ ๋‹จ๊ณ„๋กœ ๋„˜์–ด๊ฐ€๋Š” ๋ฐฉ์‹์ด์—์š”.
ํ•œ๋ฒˆ ์™„๋ฃŒ๋œ ๋‹จ๊ณ„๋Š” ๋‹ค์‹œ ๋Œ์•„๊ฐ€๊ธฐ๊ฐ€ ์–ด๋ ต๋‹ค๋Š” ๋‹จ์ ์ด ์žˆ์–ด์š”.

๋Œ€๋ถ€๋ถ„ SI์™€ ๊ฐ™์€ ํ™˜๊ฒฝ์—์„œ ์ด๋Ÿฐ ๋ฐฉ์‹์œผ๋กœ Project ๋ชจ๋ธ๋ง์„ ์ฑ„ํƒํ•˜๊ณ  ์žˆ์–ด์š”.

Agile์€ ํญํฌ์ˆ˜ ๊ฐœ๋ฐœ๋ก ๊ณผ๋Š” ์ƒ๋ฐ˜๋˜๋Š” ๊ฐœ๋…์ด์—์š”.
ํญํฌ์ˆ˜ ๊ฐœ๋ฐœ๋ก ์€ ์ง€๋‚˜์น˜๊ฒŒ ๊ธฐํš์— ์˜์กด์ ์ด๊ณ , ํ˜•์‹์ ์ธ ์ ˆ์ฐจ๋ฅผ ๋”ฐ๋ฅด๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์—
์‹œ๊ฐ„๋„ ์˜ค๋ž˜ ๊ฑธ๋ฆฌ๊ณ , ํšจ์œจ์„ฑ์ด ํฌ๊ฒŒ ์ €ํ•˜๋œ๋‹ค๋Š” ๋ฌธ์ œ์ ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ๋ฐฉ๋ฒ•๋ก ์ด์—์š”.

Agile์€ ์ด๋Ÿฐ ๋‹จ์ ์„ ์ตœ์†Œํ™” ํ•˜๊ณ ์ž ํ•˜๋Š” ๊ฐœ๋…์ด์—์š”.
์ฆ‰, ๊ณ„ํš์ด ๋„ˆ๋ฌด ์—†๊ฑฐ๋‚˜, ๊ณ„ํš์ด ๋„ˆ๋ฌด ๋งŽ์•„ ๋ฌธ์ œ๊ฐ€ ๋˜๋Š” ๊ฒƒ์— ์ค‘๊ฐ„์—์„œ ํƒ€ํ˜‘์ ์„ ์ฐพ๋Š” ๊ฐœ๋ฐœ๋ก ์ด์—์š”.

Project ์ƒ๋ช…์ฃผ๊ธฐ ๋™์•ˆ ๋ฐ˜๋ณต์ ์œผ๋กœ ๊ฐ ๋‹จ๊ณ„๋ฅผ ์ง„ํ–‰ํ•จ์œผ๋กœ ์ ์  ์ง„ํ™”๋˜๊ณ , ์ด์šฉ์ž์—๊ฒŒ ๋งŒ์กฑ๋„๋ฅผ ๋†’์—ฌ์ฃผ๋Š” ๊ฐœ๋ฐœ๋ก ์ด์—์š”.
๊ณ ๊ฐ๊ณผ์˜ ํ˜‘๋ ฅ, ๋ณ€ํ™”์˜ ๋Œ€์‘, ๊ฐœ์ธ๊ณผ์˜ ์ƒํ˜ธ์ž‘์šฉ, ์ž‘๋™ํ•˜๋Š” ์†Œํ”„ํŠธ์›จ์–ด์— ์ค‘์ ์„ ๋‘๊ณ  ์žˆ๋Š” ๊ฐœ๋ฐœ๋ก ์ด์—์š”.

Agile์€ ํฌ๊ฒŒ ๋„ค๊ฐ€์ง€ ๋ฐฉ๋ฒ•๋ก ์œผ๋กœ ๋‚˜๋ˆŒ ์ˆ˜ ์žˆ์–ด์š”.

์ฒซ์งธ. Extream Programming
๋‘˜์งธ. Pair Programming
์…‹์งธ. TDD (Test ์ฃผ๋„ ๊ฐœ๋ฐœ)
๋„ท์งธ. ์Šคํฌ๋Ÿฝ

์—ฐ๋„๋ณ„ ๊ฐœ๋ฐœ Issue Keyword



Cloud Native Architecture๋ž€? Cloud Native Architecture ๋ฐ ๊ธฐ์ˆ ์€ Cloud์—์„œ Build ๋˜๊ณ , Cloud Computing Model์„ ์ตœ๋Œ€ํ•œ ํ™œ์šฉํ•˜๋Š” Workload๋ฅผ Design, ์ƒ์„ฑ ๋ฐ ์šด์˜ํ•˜๋Š” ์ ‘๊ทผ ๋ฐฉ์‹์ด์—์š”.

ํด๋ผ์šฐ๋“œ ๋„ค์ดํ‹ฐ๋ธŒ ๊ธฐ์ˆ ์„ ํ†ตํ•ด ์กฐ์ง์€ ํผ๋ธ”๋ฆญ, ํ”„๋ผ์ด๋น— ๋ฐ ํ•˜์ด๋ธŒ๋ฆฌ๋“œ ํด๋ผ์šฐ๋“œ์™€ ๊ฐ™์€ ์ตœ์‹  ๋™์  ํ™˜๊ฒฝ์—์„œ ํ™•์žฅ ๊ฐ€๋Šฅํ•œ Application์„ Buildํ•˜๊ณ , ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์–ด์š”. Container, Service Mash, Micro Service, ๋ณ€๊ฒฝํ•  ์ˆ˜ ์—†๋Š” ์ธํ”„๋ผ ๋ฐ ์„ ์–ธ์  API๋Š” ์ด ์ ‘๊ทผ ๋ฐฉ์‹์„ ์˜ˆ๋กœ ๋“ค ์ˆ˜ ์žˆ์„ ๊ฒƒ์ด์—์š”.

์ด๋Ÿฌํ•œ ๊ธฐ์ˆ ์„ ์‚ฌ์šฉํ•˜๋ฉด ๋ณต์›๋ ฅ, ๊ด€๋ฆฌ ๊ฐ€๋Šฅ ๋ฐ ๊ด€์ฐฐ ๊ฐ€๋Šฅํ•œ ๋Š์Šจํ•œ ๊ฒฐํ•ฉ ์‹œ์Šคํ…œ์„ ์ด์šฉํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ์ด์—์š”.
๊ฐ•๋ ฅํ•œ ์ž๋™ํ™”์™€ ๊ฒฐํ•ฉ๋˜์–ด ์—”์ง€๋‹ˆ์–ด๋Š” ์ตœ์†Œํ•œ์˜ ์ˆ˜๊ณ ๋กœ ์ž์ฃผ ์˜ˆ์ธก ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋†’์€ ์˜ํ–ฅ์„ ๋ฏธ์น˜๋Š” ๋ณ€๊ฒฝ์„ ํ•  ์ˆ˜ ์žˆ๋‹ต๋‹ˆ๋‹ค.

 

 

 

    ๐Ÿ”ฝ  Cloud Native Application

        ๐Ÿ“ฆ ๊ตฌ์„ฑ์š”์†Œ

728x90


์‹œ์Šคํ…œ์ด ๊ฒฝ๊ณ ํ•˜๋Š” ๊ฒƒ๊ณผ ๋‹ค์–‘ํ•œ ์š”๊ตฌ์‚ฌํ•ญ, ์˜ˆ๊ธฐ์น˜ ๋ชปํ•œ ์˜ˆ์™ธ์‚ฌํ•ญ ๋ฐœ์ƒํ•œ๋‹ค๊ณ  ํ•˜์—ฌ๋„ ํ˜•ํƒœ๋‚˜, ๊ตฌ์กฐ๊ฐ€ ๊นจ์ง€์ง€ ์•Š๋Š” ๊ตฌ์กฐ์—์š”.

1. Microservices


2. Continers : Application์„ ๊ตฌ์„ฑํ•˜๊ณ  ์žˆ๋Š” Micro Service ๋“ค์„ Cloud ํ™˜๊ฒฝ์— ๋ฐฐํฌํ•˜๊ณ , ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด Container ๊ฐ€์ƒํ™” ๊ธฐ์ˆ ์ด ํ‘œ์ค€์ฒ˜๋Ÿผ ์‚ฌ์šฉ.

3. DevOps : Service์— ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธฐ๊ฑฐ๋‚˜, ์‚ฌ์šฉ์ž์˜ ์–ด๋–ค ํ•„์š”๊ฐ€ ์ƒ๊ฒผ์„ ๊ฒฝ์šฐ ๋ฐ”๋กœ ์ˆ˜์ • ๋ฐ ๋ฐ˜์˜, ๋ฐฐํฌ ํ•ด์ฃผ๊ธฐ ์œ„ํ•œ ๊ฐœ๋ฐœ, ์šด์˜ ์กฐ์ง๊ฐ„์˜ ์œ ๊ธฐ์ ์ธ ํ˜‘๋ ฅ์„ ํ†ตํ•ด ์ง€์†์  ์„œ๋น„์Šค ๊ฐœ์„ .

4. CI / CD : ๊ฐœ๋ฐœ๋œ Service๋“ค์€ CI / CD ์ž๋™ํ™” Pipeline์— ์˜ํ•ด ์ž๋™์œผ๋กœ ํ†ตํ•ฉ๋˜๊ณ , Build, Test, Deploy ๋‹จ๊ณ„๋ฅผ ๊ฑฐ์ณ ์šด์˜ ์ƒํƒœ๋กœ ๋ณ€ํ•จ.

 

 

 

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•