โš™๏ธ Devops/๐ŸŒˆ Jenkins

โš™๏ธ Devops/๐ŸŒˆ Jenkins

Jenkins, Docker๋ฅผ ์ด์šฉํ•œ ๋ฌด์ค‘๋‹จ ๋ฐฐํฌ ์‹œ์ž‘ํ•˜๊ธฐ

์‹œ์ž‘ํ•˜๊ธฐ ์˜ˆ์ „์—๋Š” ๋ฐฐํฌํ•˜๋Š” ๋‚ ์ด๋ฉด ์ ‘์†ํ•˜๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์ ์€ ์ƒˆ๋ฒฝ์‹œ๊ฐ„์— ํ–ˆ๋‹ค๊ณ  ๋ณธ์ ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฐํฌ๋ฅผ ํ•  ๋•Œ์—๋Š” ์ƒˆ๋กœ์šด ๋ฒ„์ „์˜ jar ํŒŒ์ผ์„ ๋ฐฐํฌํ•  ์„œ๋ฒ„๋กœ ๋ณต์‚ฌ์‹œํ‚ค๊ณ , ์ง์ ‘ SSH๋กœ ์ ‘์†ํ•˜์—ฌ jar๋ฅผ ๋ณ€๊ฒฝํ•˜์—ฌ ์‹คํ–‰ํ•˜๋Š” ๊ฒƒ์ด์˜€์Šต๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ๋ฐฐํฌ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด, ๋ฐฐํฌ๋ฅผ ํ•  ๋•Œ๋งˆ๋‹ค ๊ฐœ๋ฐœ์ž์˜ ๋งŽ์€ ๋ฆฌ์†Œ์Šค๊ฐ€ ๋“ค์–ด๊ฐ„๋‹ค๋Š” ๋‹จ์ ๊ณผ jar๋ฅผ ๋ฐ”๊ฟ”๋ผ๋Š” ๊ทธ ์ฐฐ๋‚˜์— ์„œ๋น„์Šค๊ฐ€ ๋Š๊ธด๋‹ค๋Š” ์น˜๋ช…์ ์ธ ๋‹จ์ ์ด ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” ์–ด๋–ป๊ฒŒ ํ•˜๋ฉด ๋ฐฐํฌ๋ฅผ ์ž๋™ํ™”ํ•˜๊ณ , ๋˜ ๊ธฐ์กด ์„œ๋น„์Šค๋ฅผ ์ •์ง€์‹œํ‚ค์ง€ ์•Š๊ณ  ๋ฐฐํฌํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์œ„์—์„œ ๋งํ•œ ์ด ๋ฌด์ค‘๋‹จ ๋ฐฐํฌ์—๋Š” ์—ฌ๋Ÿฌ ๋ฐฉ๋ฒ•๋“ค์ด ์žˆ์Šต๋‹ˆ๋‹ค. Nginx๋กœ ๋ฌด์ค‘๋‹จ ๋ฐฐํฌ AWS์—์„œ Blue-Green ๋ฌด์ค‘๋‹จ ๋ฐฐํฌ ๋„์ปค๋ฅผ ์ด์šฉํ•œ ๋ฌด์ค‘๋‹จ ๋ฐฐํฌ ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” ํ•˜๋‚˜์˜ ์„œ๋ฒ„๊ฐ€ ์žˆ๋‹ค๊ณ  ๊ฐ€์ •ํ•˜..

iseunghan
'โš™๏ธ Devops/๐ŸŒˆ Jenkins' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก