[Docker] CI/CD with Jenkins

2024. 4. 16. 01:25ใ†ComputerScience/DockerKubernetes

 

 

 

 

 

๋„์ปค์—์„œ ์  ํ‚จ์Šค๋ฅผ ํ™œ์šฉํ•˜์—ฌ CI/CD ์ฒดํ—˜ํ•˜๊ธฐ

https://www.jenkins.io

 

Jenkins

Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

www.jenkins.io

https://hub.docker.com/r/jenkins/jenkins

 

Docker

 

hub.docker.com

 

 

 

 

 

์˜ค๋Š˜์€ ๋ณผ๋ฅจ(์Šคํ† ๋ฆฌ์ง€)์— ๋Œ€ํ•œ ์‹ค์Šต์„ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.

 

 

 

 

 

docker vloume inspect

 

 

 

 

 

pullํ•œ ์ด๋ฏธ์ง€๋ฅผ ์‹คํ–‰์‹œ์ผœ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๋„์šฐ๊ณ , ๋ธŒ๋ผ์šฐ์ € ์ƒ์—์„œ localhost๋กœ ์ ‘์†ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์  ํ‚จ์Šค ํ™”๋ฉด์ด ๋œน๋‹ˆ๋‹ค!

 

 

 

 

 

์—ฌ๊ธฐ์„œ job์„ ๋งŒ๋“ค๊ณ , build ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

 

 

 

 

* ์ฃผ์˜์‚ฌํ•ญ 

- ํ„ฐ๋ฏธ๋„ ์ƒ์—์„œ ํ‘œ์‹œ๋˜๋Š” key ๊ฐ’์„ ์ €์žฅํ•ด๋‘ก๋‹ˆ๋‹ค. 

- ์ดํ›„ ๋กœ๊ทธ์ธ์€ admin(ID)๊ณผ key ๊ฐ’(๋น„๋ฐ€๋ฒˆํ˜ธ)๋กœ ์ง„ํ–‰๋ฉ๋‹ˆ๋‹ค. 

- ๋™์ผํ•œ ํฌํŠธ๋กœ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๋„์šธ ์ˆ˜ ์—†์œผ๋‹ˆ, ํฌํŠธ ๋„˜๋ฒ„๋ฅผ ์ˆ˜์ •ํ•ด์ค๋‹ˆ๋‹ค. 

- ์ƒ์ดํ•œ ํฌํŠธ ๋ฒˆํ˜ธ๋กœ ๋ธŒ๋ผ์šฐ์ € ์ƒ์—์„œ ์  ํ‚จ์Šค ํ™”๋ฉด์„ ๋„์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 

 

 

 

 

 

'ComputerScience > DockerKubernetes' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Docker] Ubuntu Docker-machine ์„ค์น˜  (0) 2024.04.30
[Docker] M1 Docker-machine Error, Ubuntu ์„ค์น˜  (0) 2024.04.17
[Docker] Docker Compose  (0) 2024.04.08
[Docker] Dockerfile build & image push  (0) 2024.04.01
[Docker] Getting started with Docker  (0) 2024.03.28