Cov txheej txheem:

Kuv yuav pib Jenkins hauv Docker li cas?
Kuv yuav pib Jenkins hauv Docker li cas?

Video: Kuv yuav pib Jenkins hauv Docker li cas?

Video: Kuv yuav pib Jenkins hauv Docker li cas?
Video: PRESTIN - Hnub No Koj Yuav Ncaim Mus (Cover) 2024, Kaum ib hlis
Anonim

LESSON 1: TAM SIM NO thiab ua koj daim duab thawj zaug

  1. Kauj ruam 1: INSTALL DOCKER . Mus rau: docker .com/ docker -mac or docker .com/ docker - qhov rais.
  2. KAUJ RUAM 2: rub thiab khiav cov huab cua JENKINS CONTAINER . Nyob hauv koj Docker qhov rai qhov rais.
  3. KAUJ RUAM 3: Ua qhov no me ntsis ntxiv tswv yim.
  4. Kauj Ruam 4: Muab nws tag nrho ua ke.

Kuj paub, Kuv yuav txuas Jenkins rau Docker li cas?

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. Ib lub pob kuaj cia koj kev sib txuas nrog API tau teeb tsa zoo.

Qhov thib ob, kuv yuav tsim cov duab docker los ntawm Jenkins li cas? Mus rau Jenkins homepage, nyem rau ntawm "Cov Khoom Tshiab", xaiv "Pipeline" thiab nkag mus rau lub npe txoj haujlwm ua "docker-test ".

  1. New pipeline Txoj Haujlwm.
  2. Pipeline hauv txoj haujlwm config.
  3. Txoj Haujlwm Menu.
  4. Dockerhub ntawv qhia zaub mov los tsim Repository.
  5. Tsim Dockerhub Repository.
  6. Cov ntawv pov thawj.
  7. Muab koj daim ntawv pov thawj thiab txuag nws.

Kuj Paub, Docker ua haujlwm nrog Jenkins li cas?

Jenkins yog siv los tsim thiab xa koj daim ntawv thov los ntawm qhov chaws. Koj tuaj yeem khiav koj daim ntawv thov sab hauv Docker thawv. Jenkins tuaj yeem tsim cov Docker duab nrog koj daim ntawv thov thiab thawb nws mus rau pej xeem lossis ntiag tug Docker npe. Koj tuaj yeem khiav koj daim ntawv thov sab hauv Docker thawv.

Dab tsi yog qhov txawv ntawm Docker thiab Jenkins?

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.

Pom zoo: