๋ฐฐํฌ 1

[AWS, Docker, Jenkins] ๋„์ปค + ์  ํ‚จ์Šค + EC2 ๋กœ CICD ๊ตฌ์ถ• ํ›„ ๋ฐฐํฌํ•˜๊ธฐ

๋ฐฐํฌ ๊ฐœ์š”๋„์ปค์™€ ์  ํ‚จ์Šค๋กœ CICD๋ฅผ ๊ตฌ์ถ•ํ•˜๊ณ , EC2๋กœ ๋ฐฑ์—”๋“œ ์„œ๋ฒ„์™€ ํ”„๋ก ํŠธ ์„œ๋ฒ„๋ฅผ ๋ฐฐํฌํ•ด๋ณด์ž.์ดˆ๊ธฐ์—๋Š” ๋ฐฑ์—”๋“œ, ํ”„๋ก ํŠธ, ์  ํ‚จ์Šค ๊ฐ๊ฐ์˜ EC2๋ฅผ ์ƒ์„ฑํ•ด์„œ ๋ฐฐํฌ๋ฅผ ์ง„ํ–‰ํ•˜์˜€๋Š”๋ฐ, ๋น„์šฉ ๋ฌธ์ œ๋กœ ํ”„๋ก ํŠธ ์„œ๋ฒ„๋Š” ์ถ”ํ›„์— S3๋กœ ๋ณ€๊ฒฝํ–ˆ๋‹ค. ์„œ๋น„์Šค ์•„ํ‚คํ…์ฒ˜- ๋ฐฑ์—”๋“œ ๋ฐฐํฌ : ๋„์ปค ํŒŒ์ผ์„ ์  ํ‚จ์Šค๊ฐ€ ๊ฐ์ง€ํ•ด์„œ jar ํŒŒ์ผ ์ƒ์„ฑํ•˜์—ฌ EC2๋กœ ๋ฐฐํฌํ•œ๋‹ค.- ํ”„๋ก ํŠธ ๋ฐฐํฌ : ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์ง„ํ–‰ํ•œ๋‹ค.๊ตฌ์ถ• ๊ณผ์ •1. ์  ํ‚จ์Šค ์„œ๋ฒ„ EC2 ์„ค์ •jenkins-server EC2 ์ƒ์„ฑAMI : Ubuntu Server 22.04 LTS (HVM), SSD Volume Type์•„ํ‚คํ…์ฒ˜ : 64๋น„ํŠธ x86Quick start : ubuntu์ธ์Šคํ„ด์Šค ์œ ํ˜• : t2.microํ‚คํŽ˜์–ด ์ƒ์„ฑ ํ›„ ์ €์žฅ (jenkins-key-pair)๋„คํŠธ์›Œํฌ ์„ค์ • : ๋ณด์•ˆ๊ทธ๋ฃน..