[Project/4th] 4. ํ…Œ์ŠคํŠธ ์„œ๋ฒ„ ์ธํ”„๋ผ ๊ตฌ์ถ• - SSH ์ ‘์†, Docker๋กœ ์ˆ˜๋™๋ฐฐํฌ
ยท
Project
[ํ”„๋กœ์ ํŠธ ์ผ์ง€] 4๋ฒˆ์งธ ํ”„๋กœ์ ํŠธ - 1. ์„œ๋ฒ„ ์„ค๊ณ„ํ•˜๊ธฐ[ํ”„๋กœ์ ํŠธ ์ผ์ง€] 4๋ฒˆ์งธ ํ”„๋กœ์ ํŠธ - 2. ์Šคํ”„๋ง ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ, ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์„ฑ[ํ”„๋กœ์ ํŠธ ์ผ์ง€] 4๋ฒˆ์งธ ํ”„๋กœ์ ํŠธ - 3. JPA Entity ๊ด€๊ณ„ ์„ค์ •ํ•˜๊ธฐ    ์ €๋ฒˆ์ฃผ์— ์ง„ํ–‰ํ–ˆ๋˜ ์ผ์ด์ง€๋งŒ, ๋’ค๋Šฆ๊ฒŒ ์ž‘์„ฑ์„ ํ•œ๋‹ค. ๊ทธ๋™์•ˆ ์ง„ํ–‰ํ•œ ๊ฒŒ ๋งŽ์€๋ฐ ๋ฐ€๋ ธ๋‹ค๐Ÿฅฒ     ํ˜„์žฌ ๋ฐฑ์—”๋“œ ์„œ๋ฒ„์—์„œ API ๊ฐœ๋ฐœ์ด ์กฐ๊ธˆ์”ฉ ์ง„ํ–‰๋˜๊ณ  ์žˆ๋‹ค. ํ”„๋ก ํŠธ์—”๋“œ์™€์˜ API ์—ฐ๊ฒฐ ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•ด ํ…Œ์ŠคํŠธ ์„œ๋ฒ„๋ฅผ ๋”ฐ๋กœ ๋ฐฐํฌํ•  ํ•„์š”๊ฐ€ ์žˆ์—ˆ๋‹ค. ์‹ค์ œ ์„œ๋น„์Šค๋Š” EC2์—์„œ ๋ฐฐํฌํ•˜๊ธฐ๋กœ ํ–ˆ์ง€๋งŒ, ์•„์ง ์ถœ์‹œ ์ „์ด๋ผ ์„œ๋ฒ„๋ฅผ ๊ตฌ๋งคํ•˜์ง€ ์•Š์•˜๋‹ค. ๊ทธ๋ฆฌ๊ณ  ํ…Œ์ŠคํŠธ ์„œ๋ฒ„๋Š” 5์›”๊นŒ์ง€ ๊ฐœ๋ฐœํ•˜๋Š” ๋™์•ˆ ์ž ๊น ์“ธ ๊ฑฐ๋ผ์„œ ๋‹ค๋ฅธ ํŒ€์›์˜ GCP 1๋…„ ๋ฌด๋ฃŒ ์„œ๋น„์Šค๋กœ ๊ตฌ๋™ํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค.  ํŒ€์— ์ธํ”„๋ผ๋ฅผ ์ „๋‹ดํ•˜๋Š” ์‚ฌ๋žŒ์ด ์—†๋‹ค๋ฉด, ๋ฐฑ์—”๋“œ์—์„œ ์ธ..
[Infra] Docker, Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ MSA ํ”„๋กœ์ ํŠธ CI/CD ๊ตฌ์ถ•ํ•˜๊ธฐ(3) - Jenkins ํŒŒ์ดํ”„๋ผ์ธ ๊ตฌ์ถ•
ยท
Infra
์ด ์‹œ๋ฆฌ์ฆˆ์—์„œ๋Š” MSA ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ ๋’ค, Docker์™€ Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ CI/CD๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ๊ณผ์ •์„ ์„ค๋ช…ํ•˜๋„๋ก ํ•˜๊ฒ ๋‹ค. ์ด์ „ ํฌ์ŠคํŒ…์—์„œ๋Š” Docker๋ฅผ ์„ค์น˜์™€ ์ˆ˜๋™ ๋ฐฐํฌ ๊ณผ์ •๊ณผ ์ž๋™ ๋ฐฐํฌ์˜ ํ•„์š”์„ฑ์— ๋Œ€ํ•ด ์„ค๋ช…ํ–ˆ์—ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  Jenkins๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ๋„ ์„ค๋ช…ํ–ˆ๋‹ค Docker ์„ค์น˜ํ•˜๊ธฐ : https://programmingiraffe.tistory.com/12 [Infra] Docker, Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ MSA ํ”„๋กœ์ ํŠธ CI/CD ๊ตฌ์ถ•ํ•˜๊ธฐ(1) - Docker ์„ค์น˜ ์ด ํฌ์ŠคํŒ…์—์„œ๋Š” MSA ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ ๋’ค, Docker์™€ Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ CI/CD๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ๊ณผ์ •์„ ์„ค๋ช…ํ•˜๋„๋ก ํ•˜๊ฒ ๋‹ค. ๊ตฌ๊ธ€๋ง ํ•˜๋ฉด์„œ ๋…ํ•™์„ ํ–ˆ๊ณ , ๋ฌด์ˆ˜ํ•œ ์‚ฝ์งˆ๊ณผ ์ด์ „ ํ”„๋กœ์ ํŠธ๋“ค์˜ ๋ฌธ์„œ์™€ ์ฃผ๋ณ€ ๋™..
[Infra] Docker, Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ MSA ํ”„๋กœ์ ํŠธ CI/CD ๊ตฌ์ถ•ํ•˜๊ธฐ(2) - Jenkins ์„ค์น˜
ยท
Infra
์ด ์‹œ๋ฆฌ์ฆˆ์—์„œ๋Š” MSA ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ ๋’ค, Docker์™€ Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ CI/CD๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ๊ณผ์ •์„ ์„ค๋ช…ํ•˜๋„๋ก ํ•˜๊ฒ ๋‹ค. ์ด์ „ ํฌ์ŠคํŒ…์—์„œ๋Š” Docker๋ฅผ ์„ค์น˜์™€ ์ˆ˜๋™ ๋ฐฐํฌ ๊ณผ์ •๊ณผ ์ž๋™ ๋ฐฐํฌ์˜ ํ•„์š”์„ฑ์— ๋Œ€ํ•ด ์„ค๋ช…ํ–ˆ์—ˆ๋‹ค. https://programmingiraffe.tistory.com/123 [Infra] Docker, Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ MSA ํ”„๋กœ์ ํŠธ CI/CD ๊ตฌ์ถ•ํ•˜๊ธฐ(1) - Docker ์„ค์น˜ ์ด ํฌ์ŠคํŒ…์—์„œ๋Š” MSA ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ ๋’ค, Docker์™€ Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ CI/CD๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ๊ณผ์ •์„ ์„ค๋ช…ํ•˜๋„๋ก ํ•˜๊ฒ ๋‹ค. ๊ตฌ๊ธ€๋ง ํ•˜๋ฉด์„œ ๋…ํ•™์„ ํ–ˆ๊ณ , ๋ฌด์ˆ˜ํ•œ ์‚ฝ์งˆ๊ณผ ์ด์ „ ํ”„๋กœ์ ํŠธ๋“ค์˜ ๋ฌธ์„œ์™€ ์ฃผ๋ณ€ ๋™ programmingiraffe.tistory.com ์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” ์ง€์†์  ..
[Infra] Docker, Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ MSA ํ”„๋กœ์ ํŠธ CI/CD ๊ตฌ์ถ•ํ•˜๊ธฐ(1) - Docker ์„ค์น˜
ยท
Infra
์ด ํฌ์ŠคํŒ…์—์„œ๋Š” MSA ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ ๋’ค, Docker์™€ Jenkins๋ฅผ ์ด์šฉํ•˜์—ฌ CI/CD๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ๊ณผ์ •์„ ์„ค๋ช…ํ•˜๋„๋ก ํ•˜๊ฒ ๋‹ค. ๊ตฌ๊ธ€๋ง ํ•˜๋ฉด์„œ ๋…ํ•™์„ ํ–ˆ๊ณ , ๋ฌด์ˆ˜ํ•œ ์‚ฝ์งˆ๊ณผ ์ด์ „ ํ”„๋กœ์ ํŠธ๋“ค์˜ ๋ฌธ์„œ์™€ ์ฃผ๋ณ€ ๋™๊ธฐ๋“ค์˜ ๋„์›€์„ ๋ฐ›์€ ๋์— ๋‚ด ํ”„๋กœ์ ํŠธ์˜ ํ™˜๊ฒฝ์— ๋งž๊ฒŒ CI/CD๋ฅผ ๊ตฌ์ถ•ํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค! ๋ถ€์กฑํ•œ ๋ถ€๋ถ„๋„ ์žˆ์ง€๋งŒ(๋ฌด์ค‘๋‹จ ๋ฐฐํฌ X, docker-compse ์‚ฌ์šฉ X, ๋ณด์•ˆ ์‹ ๊ฒฝ ๋ชป์”€) ์Šค์Šค๋กœ Docker, Jenkins์˜ ๊ฐœ๋…์„ ๊ณต๋ถ€ํ•˜๊ณ , ๋ฐ”๋กœ ํŒ€ ํ”„๋กœ์ ํŠธ์— ์ ์šฉํ–ˆ๋‹ค๋Š” ์ ์—์„œ ์ข‹์•˜๋‹ค. ์‚ฝ์งˆํ•˜๋ฉด์„œ ๋ฐฐ์šด ๊ฒƒ์„ ์•ˆ ๊นŒ๋จน๊ณ ์ž, ๊ทธ๋ฆฌ๊ณ  ๋ˆ„๊ตฐ๊ฐ€์—๊ฒŒ ๋„์›€์ด ๋˜๊ณ ์ž ๊ณผ์ •์„ ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. 3๊ฐœ์˜ ํฌ์ŠคํŒ…์— ๋‚˜๋ˆ ์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋‚ด์šฉ์œผ๋กœ ์ง„ํ–‰๋  ๊ฒƒ์ด๋‹ค. 1. Docker ์„ค์น˜ํ•˜๊ธฐ + ์ˆ˜๋™ ๋ฐฐํฌ 2. ์ž๋™ ๋ฐฐํฌ๋ฅผ ์œ„ํ•œ Je..
giraffe_
'์ธํ”„๋ผ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก