{"id":14229,"date":"2024-02-17T18:44:29","date_gmt":"2024-02-17T17:44:29","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=14229"},"modified":"2024-02-17T18:44:31","modified_gmt":"2024-02-17T17:44:31","slug":"gitlab-selbst-unter-linux-installieren-und-nutzen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2024\/02\/17\/gitlab-selbst-unter-linux-installieren-und-nutzen\/","title":{"rendered":"GitLab selbst unter Linux installieren und nutzen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GitHub war einmal die gr\u00f6\u00dfte Plattform f\u00fcr Entwickler &#8211; bis Microsoft diese gekauft hat. Dann ist GitLab gekommen und ein gro\u00dfer Teil der Entwickler hat es auf diese Plattform gezogen. Nun, nicht jeder will seinen Code gleich auf eine \u00f6ffentliche Plattform stellen oder dort entwickeln. GitLab kann man aber auch selbst hosten.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Die GitLab-Versionen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Es gibt von GitLab zwei Versionen &#8211; die kommerzielle Version und die Community-Version (<em>CE<\/em>). F\u00fcr die kommerzielle Version muss nat\u00fcrlich bezahlt werden, die CE ist kostenlos. Grunds\u00e4tzlich sollten die meisten Benutzer (auch Firmen) mit der kostenlosen Version klarkommen &#8211; die gro\u00dfen Unterschiede finden sich <a href=\"https:\/\/about.gitlab.com\/install\/ce-or-ee\/\" target=\"_blank\" rel=\"noreferrer noopener\">hier<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wozu das eigene Git?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mit <a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/git-die-versionsverwaltung-unter-linux-einstieg\/\" data-type=\"post\" data-id=\"516\">Git<\/a> kann man so gut wie alles verwalten &#8211; oder besser gesagt &#8211; versionieren. Egal, ob Text, Bilder, Anwendungen oder eben auch Code, Dokumente, &#8230; Vor allem, wenn man nicht alles in der \u00f6ffentlichen Cloud liegen haben will &#8211; und hier gen\u00fcgt schon ein Raspberry Pi.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GitLab installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Grundlegend &#8211; GitLab l\u00e4sst sich unter folgenden Linux-Distributionen ganz einfach installieren:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu<\/li>\n\n\n\n<li>Debian<\/li>\n\n\n\n<li>Alma Linux<\/li>\n\n\n\n<li>CentOS<\/li>\n\n\n\n<li>Red Hat<\/li>\n\n\n\n<li>openSUSE (<em>Leap<\/em>)<\/li>\n\n\n\n<li>Raspberry Pi OS<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Die ganzen Anleitungen finden Sie unter <a href=\"https:\/\/about.gitlab.com\/install\/?version=ce\" target=\"_blank\" rel=\"noreferrer noopener\">GitLab installieren<\/a> (<em>CE-Version<\/em>). Wir sehen uns hier die Installation unter Raspberry Pi OS an &#8211; die unter Debian und Ubuntu ist nicht anders (<em>nur das Repository muss angepasst werden<\/em>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Als Erstes installieren wir \u00fcber die Paket-Verwaltung erste n\u00f6tige Pakete &#8211; als root am Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install curl openssh-server ca-certificates apt-transport-https perl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt laden wir uns den Sicherheitsschl\u00fcssel herunter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl https:\/\/packages.gitlab.com\/gpg.key | sudo tee \/etc\/apt\/trusted.gpg.d\/gitlab.asc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ben\u00f6tigen Sie Benachrichtigungen, installieren und konfigurieren Sie <a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/10\/postfix-der-mailserver-unter-linux\/\" data-type=\"post\" data-id=\"2774\">Postfix<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install postfix<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend f\u00fcgen wir das Repository hinzu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -sS https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/raspberry-pi2\/script.deb.sh | sudo bash<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt l\u00e4sst sich GitLab installieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install gitlab-ce<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Alternativ:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Alternativ installieren Sie das passende Paket manuell von <a href=\"https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\" target=\"_blank\" rel=\"noreferrer noopener\">GitLab-Packages<\/a> &#8211; also etwa:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\/packages\/ubuntu\/focal\/gitlab-ce_16.9.0-ce.0_arm64.deb\/download.deb\napt install .\/download.deb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Das \u00d6ffnen des Paketes bei der Installation dauert ein wenig, es hat rund ein Gigabyte:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab.jpeg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1024x602.jpeg\" alt=\"\" class=\"wp-image-14230\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1024x602.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1536x903.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2048x1204.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-150x88.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-300x176.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-768x451.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nach der Installation \u00f6ffnen Sie die Konfigurationsdatei als root:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/gitlab\/gitlab.rb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hier passen Sie die URL an:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>external_url 'URL'<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1.jpeg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1-1024x602.jpeg\" alt=\"\" class=\"wp-image-14231\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1-1024x602.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1-1536x903.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1-2048x1204.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1-150x88.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1-300x176.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-1-768x451.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend wird das System neu konfiguriert (<em>dies dauert auf einem Pi ein wenig<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gitlab-ctl reconfigure<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2.jpeg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2-1024x602.jpeg\" alt=\"\" class=\"wp-image-14232\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2-1024x602.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2-1536x903.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2-2048x1204.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2-150x88.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2-300x176.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-2-768x451.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend \u00f6ffnen Sie die in der Konfigurationsdatei angegebene URL &#8211; etwa einfach die IP-Adresse des PI &#8222;<em>http:\/\/123.456.789.12<\/em>&#8222;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-scaled.jpeg\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-1024x640.jpeg\" alt=\"\" class=\"wp-image-14233\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-3-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt \u00f6ffnen Sie auf dem Pi unter &#8222;<em>\/etc\/gitlab\/<\/em>&#8220; die Datei &#8222;<strong>initial_root_password<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>less initial_root_password<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hier finden Sie das root-Passwort, mit dem Benutzer &#8222;<strong>root<\/strong>&#8220; und dem Passwort aus der oben angef\u00fchrten Datei melden Sie sich an:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-scaled.jpeg\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-1024x640.jpeg\" alt=\"\" class=\"wp-image-14234\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-4-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">GitLab nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Als Erstes sollten Sie nat\u00fcrlich das root-Passwort wechseln, dazu klicken Sie auf den Avatar links oben und w\u00e4hlen &#8222;<em>Edit profile<\/em>&#8220; &#8211; in der Mitte links l\u00e4sst sich jetzt das Passwort \u00e4ndern:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-scaled.jpeg\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-1024x640.jpeg\" alt=\"\" class=\"wp-image-14235\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-5-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Hier k\u00f6nnen Sie auch alle anderen Einstellungen anpassen. Unter den &#8222;<em>Preferences<\/em>&#8220; k\u00f6nnen Sie unter anderem die Sprache anpassen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-scaled.jpeg\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-1024x640.jpeg\" alt=\"\" class=\"wp-image-14236\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-6-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nach einem erneuten Laden der Seite ist die Software etwa in Deutsch. Hier k\u00f6nnen Sie SSH- oder GPG-Schl\u00fcssel ablegen, um auf dem Terminal mit Git zu arbeiten:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-scaled.jpeg\" rel=\"lightbox-7\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-1024x640.jpeg\" alt=\"\" class=\"wp-image-14237\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-7-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In der \u00dcbersicht kommen Sie \u00fcber die Schalter ganz oben links dazu, neue Gruppen oder eben auch Projekte zu erstellen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-scaled.jpeg\" rel=\"lightbox-8\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-1024x640.jpeg\" alt=\"\" class=\"wp-image-14238\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-8-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wollen wir ein neues Projekt \/ Repository erstellen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-scaled.jpeg\" rel=\"lightbox-9\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-1024x640.jpeg\" alt=\"\" class=\"wp-image-14239\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-9-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Im erstellten Repository k\u00f6nnen Sie jetzt Dateien anlegen, mit der Web-Gui arbeiten, oder eben auch \u00fcber dasTerminal via Git arbeiten &#8211; die n\u00f6tigen Informationen dazu zeigen sich unter dem Projekt:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-scaled.jpeg\" rel=\"lightbox-10\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-1024x640.jpeg\" alt=\"\" class=\"wp-image-14240\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/02\/gitlab-10-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Viel muss man eigentlich nicht sagen, GitLab ist einfach zu nutzen und leicht zu erlernen, selbst Pipelines lassen mit der CE-Edition erstellen &#8230;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GitLab aktualisieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ein kleines Manko hat die CE-Version leider schon &#8211; man sollte manuell aktualisieren und dies nicht unbedingt der Paket-Verwaltung \u00fcberlassen. Am einfachsten &#8211; nicht das Repository benutzen, sondern die Pakete manuell herunterladen, installieren und die Konfiguration laufen lassen. Am besten nimmt man nicht die aktuellste Version &#8211; also etwa 16.09.0, sondern eher 16.09.2 &#8211; dies ist aber auch bei der Enterprise-Edition noch so. Die Aktualisierung sollt wie folgt vor sich gehen &#8211; alles als root unter &#8222;<em>\/etc\/gitlab\/<\/em>&#8222;:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pr\u00fcfen, ob nichts Wichtiges l\u00e4uft &#8211; etwas anderes als eine <strong>0<\/strong> als Ausgabe und Sie sollten abwarten:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gitlab-rails runner -e production 'puts Gitlab::BackgroundMigration.remaining'\ngitlab-rails runner -e production 'puts Gitlab::Database::BackgroundMigration::BatchedMigration.queued.count'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt wird die Konfiguration gesichert &#8211; diese k\u00f6nnen Sie im Falle des Falles einfach wieder zur\u00fcckspielen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp -va \/etc\/gitlab\/gitlab.rb{,-$(date +%F)}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hiermit wird die automatische Konfiguration unterbunden und Sie sehen sp\u00e4ter, ob es Fehler gibt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>touch \/etc\/gitlab\/skip-auto-reconfigure<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt wird das heruntergeladene Paket installiert, wie \u00fcblich mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install ...<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend wird die Software rekonfiguriert und die Datenbank migriert &#8211; alles andere als gr\u00fcne Meldungen, sind Fehler:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gitlab-ctl reconfigure\ngitlab-ctl hup puma\ngitlab-ctl restart sidekiq\ngitlab-ctl restart redis\ngitlab-ctl status\ngitlab-rake gitlab:check SANITIZE=truegitlab-rails runner -e production 'puts Gitlab::Database::BackgroundMigration::BatchedMigration.with_status(:failed).count'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Bei Fehlermeldungen deinstallieren Sie die gerade installierte Version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt remove gitlab-ce<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend installieren Sie wieder die zuvor funktionierende Version &#8211; darum immer eine Version des Installationspaketes gespeichert behalten &#8211; und beginnen wieder wie Migration der Datenbank ab:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gitlab-ctl reconfigure<\/code><\/pre>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"14229\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">3    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"14229\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>GitHub war einmal die gr\u00f6\u00dfte Plattform f\u00fcr Entwickler &#8211; bis Microsoft diese gekauft hat. Dann ist GitLab gekommen und ein gro\u00dfer Teil der Entwickler hat es auf diese Plattform gezogen. Nun, nicht jeder will seinen Code gleich auf eine \u00f6ffentliche Plattform stellen oder dort entwickeln. GitLab kann man aber auch selbst hosten. Die GitLab-Versionen Es [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14239,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,38,308],"tags":[49,39,310],"class_list":["post-14229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-entwicklung","category-netzwerk","category-server","tag-entwicklung","tag-netzwerk","tag-server"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/14229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=14229"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/14229\/revisions"}],"predecessor-version":[{"id":14241,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/14229\/revisions\/14241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/14239"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=14229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=14229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=14229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}