728x90
๋ฐ˜์‘ํ˜•
  1. ec2 ๋ฐœ๊ธ‰
  2. ufw ์„ค์ • ๋ฐ port ๊ตฌ์„ฑ๋„
  3. swap ๋ฉ”๋ชจ๋ฆฌ ์„ค์ •
  4. docker ์„ค์น˜ (+ Ubuntu ๊ธฐ๋ณธ ํ™˜๊ฒฝ ์„ธํŒ…)
  5. docker-compose & jenkins ์„ค์น˜
  6. jenkins gitlab ์—ฐ๋™(project-build) ๋ฐ ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜
  7. dockerHub ์„ค์น˜ ๋ฐ ์—ฐ๋™(docker-build)
  8. dockerScript ์ž‘์„ฑ(pipeline)
  9. Nginx
  10. S3 ์„ค์น˜ ๋ฐ ์„ค์ •
  11. RDS ์„ค์น˜ ๋ฐ ์„ค์ •

 

docker ์„ค์น˜

 

Docker ?????

- ๋ฆฌ๋ˆ…์Šค ๊ธฐ๋ฐ˜์˜ ์ปจํ…Œ์ด๋„ˆํ™” ๊ธฐ์ˆ ๋กœ, ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ํšจ์œจ์ ์œผ๋กœ ๋ฐฐํฌํ•˜๊ณ  ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” ์˜คํ”ˆ์†Œ์Šค ํ”„๋กœ์ ํŠธ
- ๋„์ปค ์ปจํ…Œ์ด๋„ˆ๋Š” ๊ฐ€์ƒ ๋จธ์‹ (VM ware, VirtualBox) ๋ณด๋‹ค ๊ฐ€๋ฒผ์›Œ ๋ฆฌ์†Œ์Šค ์‚ฌ์šฉ์ด ์ ๊ณ , ํ”„๋กœ์„ธ์Šค ๊ฒฉ๋ฆฌ๋ฅผ ํ†ตํ•ด ์„ฑ๋Šฅ ์†์‹ค์ด ๊ฑฐ์˜  ์—†๋‹ค
- ๊ฐ ์ปจํ…Œ์ด๋„ˆ๋Š” ํ•„์š”ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ์‹คํ–‰ ํŒŒ์ผ๋งŒ ํฌํ•จํ•˜๋ฏ€๋กœ ์ด๋ฏธ์ง€ ํฌ๊ธฐ๊ฐ€ ์ž‘๊ณ , ๋งŒ๋“ค์–ด ๋ฐฐํฌํ•˜๋Š” ์‹œ๊ฐ„์ด ๊ฐ€์ƒ ๋จธ์‹ ์— ๋น„ํ•ด ๋น ๋ฅด๊ณ , ๋„์ปค ์—”์ง„์„ ํ†ตํ•ด ์ด๋ฏธ์ง€์™€ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๊ด€๋ฆฌํ•œ๋‹ค
- ๋„์ปค์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์ด๋ฏธ์ง€์˜ ์ด๋ฆ„ ๊ตฌ์„ฑ
 [ ์ €์žฅ์†Œ ์ด๋ฆ„ ] / [ ์ด๋ฏธ์ง€ ์ด๋ฆ„ ] : [ ํƒœ๊ทธ ]

์ €์žฅ์†Œ ์ด๋ฆ„ : ์ด๋ฏธ์ง€๊ฐ€ ์ €์žฅ๋œ ์žฅ์†Œ, ์ €์žฅ์†Œ ์ด๋ฆ„์ด ๋ช…์‹œ๋˜์ง€ ์•Š์€ ์ด๋ฏธ์ง€๋Š” ๋„์ปค ํ—ˆ๋ธŒ์˜ ๊ณต์‹ ์ด๋ฏธ์ง€๋ฅผ ๋œปํ•จ
์ด๋ฏธ์ง€ ์ด๋ฆ„ : ํ•ด๋‹น ์ด๋ฏธ์ง€๊ฐ€ ์–ด๋–ค ์—ญํ• ์„ ํ•˜๋Š”์ง€ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ•„์ˆ˜๋กœ ์„ค์ •
Ex) ubuntu:latest : ์šฐ๋ถ„ํˆฌ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•œ ์ด๋ฏธ์ง€
ํƒœ๊ทธ : ์ด๋ฏธ์ง€์˜ ๋ฒ„์ „์„ ๋‚˜ํƒ€๋ƒ„, ํƒœ๊ทธ๋ฅผ ์ƒ๋žตํ•˜๋ฉด ๋„์ปค ์—”์ง„์€ latest๋กœ ์ธ์‹ํ•จ

 

 

Ubuntu ๊ธฐ๋ณธ ํ™˜๊ฒฝ ์„ธํŒ…

 

sudo apt update
sudo apt upgrade

 

  • sudo apt update : ์‹œ์Šคํ…œ์ด ์ƒˆ๋กœ์šด ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ์„ค์น˜ํ•˜๊ฑฐ๋‚˜ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•  ๋•Œ ๊ฐ€์žฅ ์ตœ์‹  ์ •๋ณด๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•จ
  • sudo apt upgrade : ์‹œ์Šคํ…œ์— ์„ค์น˜๋œ ๋ชจ๋“  ํŒจํ‚ค์ง€๋ฅผ ์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•จ 
sudo apt install apt-transport-https ca-certificates

 

  • apt-transport-https 
    : HTTPS ํ”„๋กœํ† ์ฝœ์„ ํ†ตํ•ด ์•ˆ์ „ํ•˜๊ฒŒ ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€๋ฅผ ๋‹ค์šด๋กœ๋“œํ•˜๊ณ  ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋„๋ก ๋„์™€์ฃผ๋Š” ํŒจํ‚ค์ง€
    : HTTPS๋Š” ๋ฐ์ดํ„ฐ ์ „์†ก ์ค‘์— ์•”ํ˜ธํ™”๋ฅผ ์ œ๊ณตํ•˜์—ฌ ๋ณด์•ˆ์„ฑ์„ ๊ฐ•ํ™”ํ•จ
  • ca-certificates 
    : ์ธ์ฆ์„œ(authority certificates)๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ
    : HTTPS ํ†ต์‹  ์‹œ์— ์„œ๋ฒ„์˜ ์‹ ๋ขฐํ•  ์ˆ˜ ์žˆ๋Š” ์ธ์ฆ์„œ๋ฅผ ํ™•์ธํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•จ
sudo apt install curl gnupg-agent software-properties-common
  • curl
    : ๋ฐ์ดํ„ฐ ์ „์†ก์„ ์œ„ํ•œ ๋ช…๋ น์ค„ ๋„๊ตฌ
    : ๋‹ค์–‘ํ•œ ํ”„๋กœํ† ์ฝœ์„ ์ง€์›ํ•˜๋ฉฐ ์ฃผ๋กœ ์›น์—์„œ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•˜๊ฑฐ๋‚˜ api ์š”์ฒญ์„ ๋ณด๋‚ด๋Š” ๋ฐ ์‚ฌ์šฉ
  • gnupg-agent
    : GNU Privacy Guard(GnuPG)์˜ ์—์ด์ „ํŠธ ํ”„๋กœ๊ทธ๋žจ
    : ์•”ํ˜ธํ™” ๋ฐ ์„œ๋ช… ์ž‘์—…์— ํ•„์š”ํ•œ ํ‚ค ๊ด€๋ฆฌ๋ฅผ ์ง€์›( ์บ์‹ฑํ•˜์—ฌ ์•”ํ˜ธ ํ†ต์‹ ์˜ ๋ณด์•ˆ์„ ๊ฐ•ํ™”ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ)
  • software-properties-common
    : ์†Œํ”„ํŠธ์›จ์–ด ์†Œ์Šค ๋ฐ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•œ ๊ณตํ†ต ์†Œํ”„ํŠธ์›จ์–ด ์†์„ฑ์„ ์ œ๊ณตํ•˜๋Š” ํŒจํ‚ค์ง€
    : add-apt-repository ์™€ ๊ฐ™์€ ์œ ์šฉํ•œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋จ

 

GPG ํผ๋ธ”๋ฆญ ํ‚ค ์—๋Ÿฌ

 

GPG(GNU Privacy Guard) ????

- ๊ฐœ์ธ์ •๋ณด ๋ณดํ˜ธ ๋ฐ ๋ฐ์ดํ„ฐ ์•”ํ˜ธํ™”๋ฅผ ์œ„ํ•œ ์˜คํ”ˆ ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด๋กœ, PGP(Pretty Good Privacy)๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“ค์–ด์กŒ์œผ๋ฉฐ, ๋ณด์•ˆํ†ต์‹ ์„ ์œ„ํ•œ ์˜คํ”ˆ์†Œ์Šค
- ๊ณต๊ฐœ ํ‚ค(Public Key) : ์ด ํ‚ค๋Š” ๋‹ค๋ฅธ ์‚ฌ๋ฆ„๋“ค์—๊ฒŒ ๊ณต์œ ๋˜๋ฉฐ, ์ด ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ฉ”์‹œ์ง€๋ฅผ ์•”ํ˜ธํ™”ํ•˜๊ฑฐ๋‚˜ ์‚ฌ์šฉ์ž์˜ ๋””์ง€ํ„ธ ์„œ๋ช…์„ ๊ฒ€์ฆํ•  ์ˆ˜ ์žˆ๋‹ค
- .๋น„๊ณต๊ฐœ ํ‚ค(Private Key) : ์ด ํ‚ค๋Š” ์‚ฌ์šฉ์ž๋งŒ ์•Œ๊ณ  ์žˆ์–ด์•ผ ํ•˜๊ณ  ์ด ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฉ”์‹œ์ง€๋ฅผ ํ•ด๋…ํ•˜๊ฑฐ๋‚˜ ์ž์‹ ์˜ ๋””์ง€ํ„ธ ์„œ๋ช…์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค
- GPG ํ‚ค๋Š” ๋””์ง€ํ„ธ ์„œ๋ช…, ์—„ํ˜ธํ™”, ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€์˜ ๋ฌด๊ฒฐ์„ฑ ๊ฒ€์ฆ ๋“ฑ์— ์‚ฌ์šฉ๋œ๋‹ค
Ex) ์˜คํ”ˆ ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด์˜ ๊ฐœ๋ฐœ์ž๋Š” GPG ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์†Œํ”„ํŠธ์›จ์–ด ํŒจํ‚ค์ง€์— ์„œ๋ช…ํ•˜๊ณ , ์‚ฌ์šฉ์ž๋Š” ๊ทธ ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‹ค์šด๋กœ๋“œํ•œ ์†Œํ”„ํŠธ์›จ์–ด๊ฐ€ ์›๋ณธ ๊ทธ๋Œ€๋กœ์ž„์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค

 

W: GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://download.docker.com/linux/ubuntu focal InRelease' is not signed.

 

ํ•ด๋‹น ์—๋Ÿฌ : Docker ์ €์žฅ์†Œ์˜ GPG ํ‚ค๊ฐ€ ์‹œ์Šคํ…œ์— ์ œ๋Œ€๋กœ ์ถ”๊ฐ€๋˜์ง€ ์•Š์•˜๋‹ค...๋ผ๋Š” ์˜๋ฏธ

 

 

๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡

์œ„ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•

 

  1. GPG ํ‚ค ์ถ”๊ฐ€
    : ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€์—๋Š” ๋ˆ„๋ฝ๋œ ๊ณต๊ฐœ ํ‚ค(NO_PUBKEY 7EA0A9C3F273FCD8) ๊ฐ€  ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. 
     ๋‹ค์Œ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ ์‹œ์Šคํ…œ์˜ ์‹ ๋ขฐํ•  ์ˆ˜ ์žˆ๋Š” ํ‚ค ๋ชฉ๋ก์— ์ด ํ‚ค๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผ ํ•œ๋‹ค!!
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  • curl -fsSL https://download.docker.com/linux/ubuntu/gpg : Docker์˜ GPG ํ‚ค๋ฅผ ์•ˆ์ „ํ•˜๊ฒŒ ๋‹ค์šด๋กœ๋“œํ•œ๋‹ค...
    ์—ฌ๊ธฐ์„œ -f ๋Š” ์‹คํŒจ ์‹œ ์—๋Ÿฌ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๊ณ , -s ๋Š” ์นจ๋ฌต ๋ชจ๋“œ(์ถœ๋ ฅ ์—†์Œ)๋กœ ์‹คํ–‰ํ•˜๋ฉฐ, -S ๋Š” ์—๋Ÿฌ ๋ฐœ์ƒ ์‹œ ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๋ฅผ ์ถœ๋ ฅ, -L ๋Š” ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ๋ฅผ ๋”ฐ๋ฆ„
  • | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg : ๋‹ค์šด๋กœ๋“œํ•œ GPG ํ‚ค๋ฅผ dearmor ํ•˜์—ฌ ๋ฐ”์ด๋„ˆ๋ฆฌ ํ˜•์‹์œผ๋กœ ๋ณ€ํ™˜ํ•˜๊ณ  /usr/share/keyrings/docker-archive-keyring.gpg์— ์ €์žฅ

 

2. Docker ์ €์žฅ์†Œ ์ถ”๊ฐ€
  :  ์ด์ „์— ํ‚ค๊ฐ€ ์ œ๋Œ€๋กœ ์ถ”๊ฐ€๋˜์ง€ ์•Š์€ ๊ฒฝ์šฐ ์ง€์ •๋œ ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Docker ์ €์žฅ์†Œ๋ฅผ ๋‹ค์‹œ ์ถ”๊ฐ€ํ•ด์•ผ ํ•  ์ˆ˜ ๋„ ์žˆ๋‹ค

echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

 

3. ์‹œ์Šคํ…œ ์—…๋ฐ์ดํŠธ
 : ํ‚ค์™€ ์ €์žฅ์†Œ๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€ํ•œ ํ›„ ํŒจํ‚ค์ง€ ์ƒ‰์ธ์„ ์—…๋ฐ์ดํŠธ 

sudo apt-get update

 

4. Docker ์„ค์น˜ 

sudo apt-get install docker-ce docker-ce-cli containerd.io
docker -v

 

 

๋„์ปค์˜ ๊ธฐ๋ณธ ๋ช…๋ น์–ด๋“ค

 

$ docker run  // ์ƒˆ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ์‹คํ–‰
$ docker ps   // ์‹คํ–‰ ์ค‘์ธ ์ปจํ…Œ์ด๋„ˆ์˜ ๋ชฉ๋ก์„ ๋ณด์—ฌ์คŒ, -a ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•˜๋ฉด ์ข…๋ฃŒ๋œ ์ปจํ…Œ์ด๋„ˆ๊นŒ์ง€
$ doxker stop // ์‹คํ–‰ ์ค‘์ธ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ •์ง€
$ docker rm   // ์ปจํ…Œ์ด๋„ˆ ์‚ญ์ œ
$ docker images // ์‹œ์Šคํ…œ์— ์žˆ๋Š” ๋„์ปค ์ด๋ฏธ์ง€์˜ ๋ชฉ๋ก์„ ๋ณด์—ฌ์คŒ
$ docker pull 	// ๋ฆฌ๋ชจํŠธ ์ €์žฅ์†Œ์—์„œ ์ด๋ฏธ์ง€๋ฅผ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๊ธฐ
$ docker build  // doxkerfile์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋ฏธ์ง€๋ฅผ ๋นŒ๋“œ

 

 

docker-compose & jenkins ์„ค์น˜

 

Docker Compose ????

- ์—ฌ๋Ÿฌ ๊ฐœ์˜ Docker ์ปจํ…Œ์ด๋„ˆ๋“ค์„ ํ•˜๋‚˜์˜ ์„œ๋น„์Šค๋กœ ์ •์˜ํ•˜๊ณ  ๊ตฌ์„ฑํ•ด ํ•˜๋‚˜์˜ ๋ฌถ์Œ์œผ๋กœ ๊ด€๋ผํ•  ์ˆ˜ ์žˆ๋Š” ํ•˜๋‚˜์˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋งŒ๋“œ๋Š” ๊ฒƒ

 

 

๋„์ปค ์ปดํฌ์ฆˆ ์„ค์น˜

# ๋„์ปค ์ปดํฌ์ฆˆ V2 ๋ฒ„์ „ ์„ค์น˜
sudo curl -sSL "https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
 
# ์‹คํ–‰ ๊ถŒํ•œ ์„ค์ •
chmod +x /usr/local/bin/docker-compose
 
# ๋ฒ„์ „ ํ™•์ธ
docker-compose --version

 

 

docker-compose.yml ์ž‘์„ฑ

version: '3.7'

services:
  jenkins:
    image: 'jenkins/jenkins'
    restart: unless-stopped
    user: root
    privileged: true
    ports:
      - '9090:8080'
    volumes:
      - '/home/ubuntu/docker/jenkins-data:/var/jenkins_home'
      - '/var/run/docker.sock:/var/run/docker.sock'
      - '/usr/bin/docker:/usr/bin/docker'
    container_name: 'jenkins'

 

 

ํ•ด๋‹น ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๋น„๋ฒˆ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค

 

 

์ฐธ๊ณ 

 

https://seosh817.tistory.com/345

 

[Docker] ๋„์ปค๋ž€? - ๋„์ปค ๊ฐœ๋… ์ •๋ฆฌ

๋„์ปค๋ž€? ๋„์ปค(Docker)๋Š” ๋ฆฌ๋ˆ…์Šค ์ปจํ…Œ์ด๋„ˆ์— ๋ฆฌ๋ˆ…์Šค ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ํ”„๋กœ์„ธ์Šค ๊ฒฉ๋ฆฌ๊ธฐ์ˆ ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋” ์‰ฝ๊ฒŒ ์ปจํ…Œ์ด๋„ˆ๋กœ ์‹คํ–‰ํ•˜๊ณ  ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” ์˜คํ”ˆ์†Œ์Šค ํ”„๋กœ์ ํŠธ ์ž…๋‹ˆ๋‹ค. ๋„์ปค๋Š” ์ผ๋ฐ˜์ 

seosh817.tistory.com

 

https://uyfuyfuy-042.tistory.com/entry/GPG-keyPGP

 

GPG key(PGP)

GPG(GNU Privacy Guard) ๊ฐœ์ธ์ •๋ณด ๋ณดํ˜ธ ๋ฐ ๋ฐ์ดํ„ฐ ์•”ํ˜ธํ™”๋ฅผ ์œ„ํ•œ ์˜คํ”ˆ ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด์ž…๋‹ˆ๋‹ค. PGP(Pretty Good Privacy)๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“ค์–ด์กŒ์œผ๋ฉฐ, ๋ณด์•ˆํ†ต์‹ ์„ ์œ„ํ•œ ์˜คํ”„์†Œ์Šค์ด๋‹ค. ๊ณต๊ฐœ ํ‚ค(Public Key): ์ด ํ‚ค๋Š”

uyfuyfuy-042.tistory.com

 

https://hstory0208.tistory.com/entry/Docker-%EB%8F%84%EC%BB%A4-%EB%AA%85%EB%A0%B9%EC%96%B4-%EC%B4%9D%EB%AA%A8%EC%9D%8C%EC%A7%91-image-container-compose

 

[Docker] ๋„์ปค ๋ช…๋ น์–ด ์ด๋ชจ์Œ์ง‘ (image, container, compose)

๐Ÿ“Œ Docker ์‹คํ–‰ sudo systemctl status docker # 1 sudo /etc/init.d/docker start # 2 Docker Image ๊ด€๋ จ ๋ช…๋ น์–ด ์ด๋ฏธ์ง€ ๋นŒ๋“œ Dockerfile์„ ์ด์šฉํ•ด์„œ ์ด๋ฏธ์ง€ ์ƒ์„ฑ (์ œ์ผ ๋งŽ์ด ์“ฐ๋Š” ์ด๋ฏธ์ง€ ์ƒ์„ฑ ๋ฐฉ๋ฒ•) โžก docker build -t {์ด๋ฏธ์ง€

hstory0208.tistory.com

 

https://hstory0208.tistory.com/entry/Docker-%EB%8F%84%EC%BB%A4-%EC%BB%B4%ED%8F%AC%EC%A6%88Docker-Compose%EB%9E%80-%EC%99%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%EA%B0%80

 

[Docker] ๋„์ปค ์ปดํฌ์ฆˆ(Docker Compose)๋ž€? ์™œ ์‚ฌ์šฉํ•˜๋Š”๊ฐ€?

๐Ÿ“Œ ๋„์ปค ์ปดํฌ์ฆˆ๋ž€? ์—ฌ๋Ÿฌ ๊ฐœ์˜ Docker ์ปจํ…Œ์ด๋„ˆ๋“ค์„ ํ•˜๋‚˜์˜ ์„œ๋น„์Šค๋กœ ์ •์˜ํ•˜๊ณ  ๊ตฌ์„ฑํ•ด ํ•˜๋‚˜์˜ ๋ฌถ์Œ์œผ๋กœ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ํ•˜๋‚˜์˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋งŒ๋“œ๋Š” ๊ฒƒ์ด๋‹ค. ๋„์ปค ์ปดํฌ์ฆˆ ์„ค์น˜ # ๋„์ปค ์ปดํฌ์ฆˆ V2

hstory0208.tistory.com

 

https://velog.io/@suhongkim98/jenkins-%EB%8F%84%EC%BB%A4%EB%A1%9C-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0

 

jenkins ๋„์ปค๋กœ ์„ค์น˜ํ•˜๊ธฐ

์šฐ๋ถ„ํˆฌ์— ์  ํ‚จ์Šค๋ฅผ ๋„์ปค๋กœ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ด…๋‹ˆ๋‹ค

velog.io

 

728x90
๋ฐ˜์‘ํ˜•

+ Recent posts