0
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?

On-premises GitLab

Last updated at Posted at 2024-11-26

ローカルにGitlabサーバーをインストール

#関連パッケージのインストール
$sudo apt install -y curl openssh-server ca-certificates
#セキュリティーのためにキーを追加
$curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
#インストールパッケージのダウンロード元を追加
$sudo add-apt-repository "deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ $(lsb_release -cs) main"
#GITLABのインストール 1Gぐらいある
$ sudo apt install gitlab-ce
/etc/gitlab/gitlab.rb
#GITLABのアクセスURLの設定
external_url "http://127.0.0.1"
#設定の反映
$sudo gitlab-ctl reconfigure

アドミンユーザーの設定

ユーザー名はroot初期パスワードは以下に書いてある。

$cat etc/gitlab/initial_root_password
sudo cat /etc/gitlab/initial_root_password 
[sudo] password for student: 
# WARNING: This value is valid only in the following conditions
#          1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).
#          2. Password hasn't been changed manually, either via UI or via command line.
#
#          If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.

Password: bKORzwipG166LWNQmj5uQMHxfVR18Q7fVDwxP9F8Ha4=

# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
0
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
0
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?