flagflag  If you want to see English page, please click "English" Button at Left.
5: 2021-06-29 (火) 19:16:19 iseki ソース 現: 2023-11-05 (日) 14:21:13 iseki ソース
Line 1: Line 1:
* GitLab [#h4c33028] * GitLab [#h4c33028]
 +- 衝撃の読み方「ギットラブ」!!
#br #br
 +
 +** Getting Started [#w3337f79]
 +
*** 起動 [#cd57f833] *** 起動 [#cd57f833]
- サービス: gitlab-runsvdir.service - サービス: gitlab-runsvdir.service
#br #br
-*** リポジトリ [#o259be52]+*** 設定変更 [#i8291931] 
 +- gitlab-ctl reconfigure 
 +- gitlab-ctl restart 
 +#br 
 + 
 +*** リポジトリ & レジストリ [#o259be52]
- /var/opt/gitlab/git-data - /var/opt/gitlab/git-data
 +- /var/opt/gitlab/gitlab-rails/shared/regi​stry
#br #br
Line 15: Line 25:
- チェック - チェック
-- # gitlab-rake gitlab:ldap:check RAILS_ENV=production -- # gitlab-rake gitlab:ldap:check RAILS_ENV=production
 +#br
 +*** TLS [#xaa72418]
 +- CentOS7 だと TLS1.2 しか使えない.
 +- /etc/gitlab/[[gitlab.rb>./ldap_gitlab.rb​]]
 +- 変更の反映
 +-- # gitlab-ctl reconfigure
#br #br
Line 30: Line 46:
- /etc/gitlab/gitlab.rb - /etc/gitlab/gitlab.rb
 external_url 'https://gitlab.nsl.tuis.ac.jp'  external_url 'https://gitlab.nsl.tuis.ac.jp'
 + 
 nginx['redirect_http_to_https'] = true  nginx['redirect_http_to_https'] = true
 nginx['redirect_http_to_https_port'​] = 80  nginx['redirect_http_to_https_port'​] = 80
 nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.crt"  nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.crt"
 nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.key"  nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.key"
 + 
 letsencrypt['enable'] = true  letsencrypt['enable'] = true
 letsencrypt['contact_emails'] = ['iseki@rsch.tuis.ac.jp'] # This should be an array of email addresses to add as contacts  letsencrypt['contact_emails'] = ['iseki@rsch.tuis.ac.jp'] # This should be an array of email addresses to add as contacts
Line 50: Line 66:
- Log: /var/log/gitlab/lets-encrypt/* - Log: /var/log/gitlab/lets-encrypt/*
 +#br
 +**** 更新 [#h1a70160]
 + gitlab-ctl upgrade
 + gitlab-ctl renew-le-certs
 + gitlab-ctl restart
 +#br
 +*** Docker Registry [#c60d80a9]
 +- registry ディレクトリのパーミッションが固定:drwxrwx--- 3 registry git
 +-- repository 用のディレクトリ(drwxrwx--- 3 registry git)と衝突するので位置に注意.
 +- 格納するイメージ名はある程度固定される.
 +-- ホスト名:5050/ユーザ名/プロジェクト名(大文字は小文字に,空白は-に変換)/~
 +#br
 +**** /etc/gitlab/gitlab.rb [#r3858d65]
 + #######################################​########################################​#
 + ## Container Registry settings
 + ##! Docs: https://docs.gitlab.com/ee/administratio​n/container_registry.html
 + #######################################​########################################​#
 + 
 + registry_external_url 'https://gitlab.nsl.tuis.ac.jp:5050'
 + 
 + ### Settings used by GitLab application
 + #gitlab_rails['registry_enabled'] = true
 + #gitlab_rails['registry_host'] = "gitlab.nsl.tuis.ac.jp"
 + #gitlab_rails['registry_port'] = "5050"
 + #gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/regi​stry"
 + gitlab_rails['registry_path'] = "/opt/data/registry"
 +
 +**** login [#e8f12cb7]
 + docker login gitlab.nsl.tuis.ac.jp:5050
 + ~/.docker ができる.
 +
 +- LDAP ユーザのログイン方法は?
 +#br
 +
 +**** push [#w5bfae09]
 +- user: root , Project name : DockerRegistry
 +
 + docker tag jupyterhub/singleuser-ltids:21092013  gitlab.nsl.tuis.ac.jp:5050/root/dockerre​gistry/jupytersingle-ltids
 + docker push  gitlab.nsl.tuis.ac.jp:5050/root/dockerre​gistry/jupytersingle-ltids
 +#br
 +
 +**** pull [#m7e1a85f]
 + docker pull gitlab.nsl.tuis.ac.jp:5050/root/dockerre​gistry/jupytersingle-ltids
 +#br
 +
 +** 運用 [#mce91faa]
 +*** 新規作成 [#i9d96740]
 +**** 新規プロジェクト [#x547ac2c]
 +- Create blank project
 +-- Create
 +- clone でダウンロード.それを上書き.
 +- add
 +- commit
 +- push
 +#br
 +
 +** Trouble Shooting [#y0073385]
 +
 +**** いつの間にか動かなくなっていた! [#p3cfe593]
 +- ソフトウェアの更新が上手くいっていない可能性がある.
 +- 順にバージョンを上げる必要がある.
 + /etc/yum.repos.d/gitlab_gitlab-ce.r​epo をチェック
 + # yum install gitlab-ce-5.1.*
 + # gitlab-ctl  reconfigure
 + # yum install gitlab-ce-5.2.*
 + # gitlab-ctl  reconfigure
 + # yum install gitlab-ce-5.3.*
 + # gitlab-ctl  reconfigure
 + # ........
 +- gitlab-ce-5.18 で蹴躓く
#br #br
-*** Trouble Shooting [#y0073385] 
**** LDAP でログイン時にエラー [#xb711372] **** LDAP でログイン時にエラー [#xb711372]
- Could not authenticate you from Ldapmain because "Undefined method `provider' for nil:nilclass". - Could not authenticate you from Ldapmain because "Undefined method `provider' for nil:nilclass".


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
<今日>

オンライン状況

48 人のユーザが現在オンラインです。 (18 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 48

もっと...

アクセスカウンタ

今日 : 7325732573257325
昨日 : 4372437243724372
総計 : 2366883823668838236688382366883823668838236688382366883823668838
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com