1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gitlab CE(docker版)を自宅のubuntuPCにインストールする

Posted at

gitlab について

もはや有名すぎるのでURL貼るだけで詳細説明は省略
https://about.gitlab.com/ja-jp/

gitlab CE(docker版)を起動する手順

https://gitlab-docs.creationline.com/ee/install/docker.html
https://docs.gitlab.com/ee/install/docker.html

export GITLAB_HOME=$HOME/gitlab_home  # 任意のディレクトリ指定
sudo docker pull gitlab/gitlab-ce:latest
sudo docker run --detach \
--hostname gitlab.example.com \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab \
--volume $GITLAB_HOME/logs:/var/log/gitlab \
--volume $GITLAB_HOME/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest

このあと、ブラウザからlocalhost:80にログインすればOK
(もし80-->8080にポートフォワードしていたら8080を指定する)

初回ログイン

以下を参照

GitLab Docker images
Visit the GitLab URL, and log in with username root and the password from the following command:
sudo docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password

上記が完了したら、以下を行う
・管理者アカウント作成
・プロジェクト用アカウント作成
・リポジトリ作成~以降はよしなに使用する

Error starting userland proxy: listen tcp4 0.0.0.0:22: bind: address already in use.

Error starting userland proxy: listen tcp4 0.0.0.0:22: bind: address already in use.

--> port22が他のアプリ等によって使われているため、別portを使うように変更するとよい

Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLab administrator if you think this is an error

Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLab administrator if you think this is an errorというエラーが出る場合は、以下を参照して解決する
Require administrator approval for new sign ups

To require administrator approval for new sign ups:

On the top bar, select Menu > Admin.
On the left sidebar, select Settings > General, and expand Sign-up restrictions.
Select the Require admin approval for new sign-ups checkbox, then select Save changes.

gitlab EE CEの違い

GitLab EEの有料の機能を使う予定がある場合は、GitLab EEを選択すると良さそう。
GitLab EEの有料の機能を使う予定が全くない場合は、GitLab CEを選択すると良さそう。

https://www.gitlab.jp/install/ce-or-ee/
GitLab EEの有料の機能を使用可能にするためには、ライセンスを購入する必要があります。 もしもライセンスが未登録のGitLab EEを使用している場合は、MITライセンスの無料の機能だけを使用していることになります。
つまり、GitLab EEをインストールしてライセンスを未登録のまま使用することと、GitLab CEをインストールして使用することに表面的な違いはありません。

gitlab CE のインストール方法

Install GitLab with Docker
Installing GitLab Community Edition
GitLab CE Docker image
To install the Community Edition, replace ee with ce in the commands on this page.

参考

GitLab日本語ドキュメント
Install GitLab with Docker
GitLab日本語情報サイト
知って「おっ!」てなったGitLabの知識7選
GithubでのWeb上からのマージの仕方3種とその使いどころ

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?