Maitiro ekuisa Gitlab pane server yedu neUbuntu

Gitlab logo

Mavhiki mashoma apfuura takaziva kutenga kamwe kamwe kweGitHub neMicrosoft. Kutenga kunopokana uko vazhinji vanodzivirira sekunge kuti vaizviita kana kuzvishoropodza zvakanyanya sekunge ndiko kusvika kwekudonha kweFree Software. Ini pachangu, ini handitendi kana kudzivirira imwe yenzvimbo mbiri asi ichokwadi kuti nhau dzakadai dzakonzera vazhinji vanogadzira software kusiya Github services uye kutsvaga dzimwe nzira dzakasununguka seGithub vasati vatenga neMicrosoft.

Kune akawanda masevhisi ari kuve anozivikanwa, asi ruzhinji rwevagadziri vari kusarudza kushandisa GitLab, yemahara imwe nzira yatinogona kuisa pakombuta yedu neUbuntu kana pane yakavanzika server inoshandisa Ubuntu seinoshanda system.

Chii chinonzi GitLab?

Asi kutanga kwezvose, ngatione kuti chii chaizvo. Gitlab ndeye software vhezheni yekushandisa iyo inoshandisa Git tekinoroji. Asi zvakasiyana nemamwe masevhisi, inosanganisa mamwe mabasa kunze kweGit senge sevhisi yebasa uye nehurongwa hwekutsvagisa bug. Zvese zvakapihwa rezinesi pasi peGPL rezinesi, asi ichokwadi kuti semamwe marudzi esoftware senge WordPress kana Github pachayo, chero munhu haakwanise kushandisa Gitlab. Gitlab ine webhu saiti iyo inopa maviri marudzi emaakaundi kune ayo vatengi: account yemahara iine mahara uye eruzhinji marekodhi uye imwe yakabhadharwa kana premium account inotibvumidza isu kugadzira zvakavanzika uye neruzhinji zvinyorwa.

Izvi zvinoreva kuti data redu rese rinochengetwa pamaseva ekunze kwatiri isu tisina simba rekutonga, sekuna Github. Asi Gitlab ine vhezheni inonzi zvakare Gitlab EC o Nharaunda Yekushambadzira iyo inotibvumidza isu kuisa uye kuve neGitlab nharaunda pane server yedu kana komputa ine Ubuntu, kunyange ichinyanya kukosha kuishandisa pane server ine Ubuntu. Iyi software inotipa mabhenefiti eGitlab Premium asi tisingabhadhare chero chinhu zvacho, nekuti isu tinoisa ese software pane yedu server uye kwete pane imwe server.

Gitlab, senge neGithub sevhisi, inopa zvinonakidza zviwanikwa senge kuumbiridza nzvimbo dzekuchengetedza, kuvandudza mapepa epawebhu ane tuli neJekyll software kana vhezheni yekudzora uye kodhi inotibvumidza kuti tiziviswe kana software kana dzokororo iine chero zvikanganiso kana kwete.

Simba reGitlab rakakwirira kupfuura Github, zvirinani maererano neshumiro, kana tikarishandisa se server yedu pachedu, simba rinoenderana ne Hardware ye server yedu. Chinhu chinofanirwa kutariswa kana izvo zvatichaita kushandura iyo Github software yeGitlab software pane yedu yega server.

Chii chatinoda kuisa GitLab pane Ubuntu server?

Kuve neGitlab kana Gitlab CE pane server yedu, kutanga isu tinofanirwa kuisa zvinoenderana kana software izvo zvinodiwa kuti software ishande nemazvo. Kuti tiite izvi tinovhura terminal uye tinyore zvinotevera:

sudo apt-get install curl openssh-server ca-certificates postfix -y

Pamwe pasuru yakadai se curl inenge yatove pakombuta yedu asi kana zvisiri, uyu mukana wakanaka wekumisikidza.

GitLab kuisirwa

Gitlab CE yekunze repositi

Zvino zvatave neese maGitlab kutsamira, Isu tinofanirwa kuisa iyo Gitlab CE software, iri yeruzhinji uye tinogona kuiwana kuburikidza neyekunze kunze kune Ubuntu. Kuti tiite izvi tinovhura terminal uye tinyore zvinotevera:

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

Pane imwe nzira iri kushandisa yekunze repository asi iine Apt-tora software chishandiso. Kuti tiite izvi, pachinzvimbo chekunyora izvo zviri pamusoro muteminal, isu tinofanirwa kunyora zvinotevera:

sudo EXTERNAL_URL="http://gitlabce.example.com" apt-get install gitlab-ce

Uye neizvi tichava neGitlab CE software pane yedu Ubuntu server. Ino inguva yekuita mamwe marongero ekutanga kuti ishande nemazvo.

Gitlab CE kumisikidzwa

Chinhu chekutanga chatinofanira kuita ndeche kusunungura mamwe madoko iyo Gitlab inoshandisa uye kuti ichavharwa uye isu tinoshandisa firewall. Iwo madoko atinofanira kuvhura kana ayo anoshandiswa neGitlab ndiyo chiteshi 80 uye 443.

Zvino, isu tinofanirwa kuvhura iyo Gitlab CE webhu skrini yekutanga, nekuti izvi tinovhura iyo peji rewebhu http://gitlabce.example.com mubrowser yedu. Iri peji richava reva server yedu asi, kuva kekutanga nguva, isu tinofanirwa kudaro chinja password ine iyo system nekutadza. Kana tangochinja password, tinofanirwa kunyoresa kana pinda ne password nyowani uye "mudzi" mushandisi. Nezve izvi tichava nenzvimbo yekumisikidza yega yeGitlab system pane yedu Ubuntu server.

Kana sevha yedu iri yekushandiswa neruzhinji, zvirokwazvo isu tichafanira kushandisa iyo https protocol, webhu protocol inoshandisa zvitupa kuita kuti kubhurawuza webhu kuve kwakachengeteka. Tinogona kushandisa chero chitupa asi Gitlab CE haichinje otomatiki url yeiyo repository, kuti ive izvi isu tinofanirwa kuzviita nemaoko, saka isu tinogadzirisa iyo faira /etc/gitlab/gitlab.rb uye nekunze_URL isu tinofanirwa kushandura iyo yekare kero yeiyo nyowaniMune ino kesi, ichave yekuwedzera iyo tsamba "s", asi isu tinogona zvakare kuita iyo url yakasiyana uye nekuwedzera chengetedzo yewebhu yedu server. Kana tangoponesa nekuvhara iyo faira, tinofanirwa kunyora zvinotevera mune terminal kuti shanduko dzakaitwa dzigamuchirwe:

sudo gitlab-ctl reconfigure

Izvi zvichaita shanduko dzese dzatinoita kuGitlab software kuti itange kushanda uye ichave yakagadzirira vashandisi veiyi vhezheni yekudzivirira system. Iye zvino isu tinogona kushandisa iyi software pasina chero dambudziko uye pasina kubhadhara chero chinhu kuve neyakavanzika zvinyorwa.

Gitlab kana GitHub izvo zviri nani?

Code inodonha sezvazvinoitika muGitlab

Panguva ino, zvirokwazvo vazhinji venyu muchashamisika kuti ndeapi software iri nani kushandisa kana kugadzira zvinyorwa zve software yedu. Kunyangwe uenderere mberi neGithub kana kuti uchachinjira kuGitlab. Ivo vaviri vanoshandisa Git uye vanogona kuchinjwa kana nyore kufambisa rakagadzirwa software kubva kune imwe repository kuenda kune imwe. Asi pachezvangu Ini ndinokurudzira kuenderera naGithub kana tiinayo pane yedu server uye kana isu tisina chero chinhu chakaiswa, saka hongu gadza Gitlab. Icho chikonzero cheichi ndechekuti ini ndinofunga kuti kugadzirwa kuri pamusoro pezvose, uye kuchinja imwe software kune imwe iyo mabhenefiti ayo anenge ari mashoma kushoma hakubhadhare.

Chinhu chakanaka nezvazvo ndechekuti maturusi ese ari Mahara Software uye kana tichiziva gadzira muchina chaiwo, tinogona kuyedza ese ari maviri mapurogiramu uye toona kuti ndeapi anotikodzera isu pasina kuchinja kana kukuvadza yedu Ubuntu server.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira iyo data: Miguel Ángel Gatón
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   Edgar Albalate Ibanez akadaro

    Ini ndinoshandisa imwe nzira inonzi gitea. https://github.com/go-gitea/. Unogona kuzviedza mukati https://gitea.io

  2.   wilburnmosum akadaro
  3.   justindam akadaro

    Yedu dinosaur mitambo https://dinosaurgames.org.uk/ kupa kupembera nemhuka kubva kumamirioni emakore apfuura! Iwe unogona kubata neanderthals uye ese marudzi e dinos; Tyrannosaurus Rex, Velociraptors, pamwe neBrachiosaurus zvese zvakagadzirwa! Matanho edu emadinosaurs ane mhando dzakasiyana dzemutambo, kubva pakurwira kusvika pakuziva online poker. Unogona kutamba chero mhando yemhando yezvipingamupinyi zvaunoda, ichikupa prehistoric varaidzo ye hrs kumagumo! Irwa sevanhu vemahavha maringe nezvisikwa, famba pasi, uye idya mhandu dzako!

  4.   AkanaAnH akadaro

    Iyo yepasi rose yekutanga-browser-yakavakirwa Munhu Wokutanga Egger! Wana kuputsa! Sarudza kirasi yako uyezve pedzisa vavengi vako neesteststas bias mune ino 3d multplayer shooter. Gadzira maturu anouraya seScramble Shotgun pamwe neEggK47 apo iwe unonamira nzira yako yekukunda. Koshesa maShellshockers Akavhurwa https://shellshockersunblocked.space/

  5.   wilburnmosum akadaro