Jenkins puas txhawb Docker?
Jenkins puas txhawb Docker?

Video: Jenkins puas txhawb Docker?

Video: Jenkins puas txhawb Docker?
Video: Ib Lub Xeem Sib Yuav Puas Txhaum? 2024, Kaum ib hlis
Anonim

Docker plugin yog kev siv "Cloud". Koj yuav tau kho Jenkins system configuration ( Jenkins > Tswj > System configuraiton) thiab ntxiv huab tshiab hom " Docker ". Configure Docker (lossis Swarm standalone) API URL nrog cov ntawv pov thawj xav tau. Lub pob kuaj cia koj txuas nrog API tau teeb tsa zoo.

Ntxiv mus, Jenkins puas siv Docker?

Jenkins saib xyuas kev sib koom ua ke tsis tu ncua & Kev xa tawm tsis tu ncua ntawm software artifacts. Docker yog thawv cav uas tuav koj daim ntawv thov. Jenkins kuj tsim tau Docker Duab raws li a Dockerfile , koj ua tau siv Docker plugin rau Jenkins tsim cov thawv ntim khoom.

Ib tug kuj yuav nug, Kuv yuav ua li cas khiav Jenkins Docker thawv? Tsim ib Docker ntim hauv lub thawv ntawm /var/jenkins_home (the Jenkins home directory) Khiav Jenkins ntawm qhov chaw nres nkoj 8080 (raws li tau teev los ntawm parameter -p)

Yog hais tias koj yuav tau ua txhua yam manually koj yuav tau:

  1. Nruab Java.
  2. Hauv Jenkins.
  3. Nruab cov plugins xav tau.
  4. Configure Jenkins.
  5. Tsim ib lub tsev tshiab.
  6. Khiav qhov tsim.

Yog li ntawd, Docker txawv ntawm Jenkins li cas?

Docker yog lub thawv cav uas tsim thiab tswj cov ntim khoom, whereas Jenkins yog lub cav CI uas tuaj yeem khiav tsim / sim ntawm koj lub app. Docker yog siv los tsim thiab khiav ntau qhov chaw txav chaw ntawm koj cov software pawg. Jenkins yog ib qho kev xeem software uas siv tau rau koj lub app.

Jenkins thawv yog dab tsi?

Kev daws teeb meem rau kev ua haujlwm CI / CD (tsim, kuaj, thiab lwm yam) hauv thawv ntawm OpenShift yog raws li Jenkins faib tsim, uas txhais tau tias: Peb xav tau a Jenkins tus tswv; nws tuaj yeem khiav hauv pawg tab sis kuj ua haujlwm nrog tus tswv sab nraud. Jenkins nta/plugins muaj raws li niaj zaus, yog li cov haujlwm uas twb muaj lawm tuaj yeem siv tau.

Pom zoo: