{"id":3183,"date":"2019-11-04T13:33:54","date_gmt":"2019-11-04T04:33:54","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=3183"},"modified":"2019-11-04T13:33:56","modified_gmt":"2019-11-04T04:33:56","slug":"post-3183","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2019\/11\/04\/post-3183\/","title":{"rendered":"GitLab\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f"},"content":{"rendered":"\n<p>Git\u306e\u7ba1\u7406\u3067\u697d\u3092\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001GitLab\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002\uff08\u3082\u3063\u3068\u697d\u3092\u3059\u308b\u306a\u3089\u3070\u3001GitHub\u3084Backlog\u3092\u5951\u7d04\u3059\u308c\u3070\u3044\u3044\u306e\u3060\u308d\u3046\u3051\u3069\uff09<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u306f\u3001Ubuntu\u00a018.04\u00a0Desktop\u3002Server\u306b\u3057\u3066\u304a\u3051\u3070\u3088\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u306bGitLab\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\nsudo apt install openssh-server\nsudo apt install curl\nsudo apt install postfix \n<\/pre>\n\n\n\n<p>\u6b21\u306b\u3001apt\u306e\u53c2\u7167\u5148\u306bgitlab\u306e\u3082\u306e\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\ncurl -sS https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ce\/script.deb.sh | sudo bash \n<\/pre>\n\n\n\n<p>apt\u3067gitlab\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\nsudo apt install gitlab-ce \n<\/pre>\n\n\n\n<p>gitlab\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3002\u30a8\u30c7\u30a3\u30bf\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u597d\u304d\u306a\u3082\u306e\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\nsudo xemacs21 \/etc\/gitlab\/gitlab.rb \n<\/pre>\n\n\n\n<p>\u6700\u4f4e\u9650\u306e\u30a2\u30af\u30bb\u30b9\u7528\u306eURL\u3068\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u5909\u66f4\u3059\u308b\u3002\u305d\u308c\u4ee5\u5916\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3002\u3068\u308a\u3042\u3048\u305a\u52d5\u304b\u3059\u3060\u3051\u306a\u3089\u3070\u3001\u3053\u306e\uff12\u3064\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>external_url <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>gitlab_rails['time_zone'] = 'Asia\/Tokyo' <\/code><\/pre>\n\n\n\n<p>\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u3002<\/p>\n\n\n\n<pre>\nsudo gitlab-ctl reconfigure \n<\/pre>\n\n\n\n<p>\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u3001Gitlab\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3002\u521d\u56de\u306e\u30a2\u30af\u30bb\u30b9\u6642\u306broot\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u304c\u3042\u308b\u306e\u3067\u3001\u5fd8\u308c\u305a\u306b\u884c\u3046\u3002<\/p>\n\n\n\n<p>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u304d\u306e\u30ed\u30b0\u3002<\/p>\n\n\n\n<pre>\nzen@LAB:~$ curl -sS https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ce\/script.deb.sh | sudo bash\nDetected operating system as Ubuntu\/bionic.\nChecking for curl...\nDetected curl...\nChecking for gpg...\nDetected gpg...\nRunning apt-get update... done.\nInstalling apt-transport-https... done.\nInstalling \/etc\/apt\/sources.list.d\/gitlab_gitlab-ce.list...done.\nImporting packagecloud gpg key... done.\nRunning apt-get update... done.\n\nThe repository is setup! You can now install packages.\nzen@LAB:~$\nzen@LAB:~$\nzen@LAB:~$\nzen@LAB:~$\nzen@LAB:~$ sudo apt install gitlab-ce\n\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059... \u5b8c\u4e86\n\u4f9d\u5b58\u95a2\u4fc2\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\n\u72b6\u614b\u60c5\u5831\u3092\u8aad\u307f\u53d6\u3063\u3066\u3044\u307e\u3059... \u5b8c\u4e86\n\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u65b0\u305f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\n  gitlab-ce\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9: 0 \u500b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: 1 \u500b\u3001\u524a\u9664: 0 \u500b\u3001\u4fdd\u7559: 0 \u500b\u3002\n708 MB \u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n\u3053\u306e\u64cd\u4f5c\u5f8c\u306b\u8ffd\u52a0\u3067 1,858 MB \u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u6d88\u8cbb\u3055\u308c\u307e\u3059\u3002\n\u53d6\u5f97:1 https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\/ubuntu bionic\/main amd64 gitlab-ce amd64 12.3.2-ce.0 [708 MB]\n708 MB \u3092 15\u79d2 \u3067\u53d6\u5f97\u3057\u307e\u3057\u305f (47.3 MB\/s)\n\u4ee5\u524d\u306b\u672a\u9078\u629e\u306e\u30d1\u30c3\u30b1\u30fc\u30b8 gitlab-ce \u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002\n(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059 ... \u73fe\u5728 172865 \u500b\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002)\n...\/gitlab-ce_12.3.2-ce.0_amd64.deb \u3092\u5c55\u958b\u3059\u308b\u6e96\u5099\u3092\u3057\u3066\u3044\u307e\u3059 ...\ngitlab-ce (12.3.2-ce.0) \u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059...\ngitlab-ce (12.3.2-ce.0) \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059 ...\nIt looks like GitLab has not been configured yet; skipping the upgrade script.\n\n       *.                  *.\n      ***                 ***\n     *****               *****\n    .******             *******\n    ********            ********\n   ,,,,,,,,,***********,,,,,,,,,\n  ,,,,,,,,,,,*********,,,,,,,,,,,\n  .,,,,,,,,,,,*******,,,,,,,,,,,,\n      ,,,,,,,,,*****,,,,,,,,,.\n         ,,,,,,,****,,,,,,\n            .,,,***,,,,\n                ,*,.\n\n\n\n     _______ __  __          __\n    \/ ____(_) \/_\/ \/   ____ _\/ \/_\n   \/ \/ __\/ \/ __\/ \/   \/ __ `\/ __ \\\n  \/ \/_\/ \/ \/ \/_\/ \/___\/ \/_\/ \/ \/_\/ \/\n  \\____\/_\/\\__\/_____\/\\__,_\/_.___\/\n\n\nThank you for installing GitLab!\nGitLab was unable to detect a valid hostname for your instance.\nPlease configure a URL for your GitLab instance by setting `external_url`\nconfiguration in \/etc\/gitlab\/gitlab.rb file.\nThen, you can start your GitLab instance by running the following command:\n  sudo gitlab-ctl reconfigure\n\nFor a comprehensive list of configuration options please see the Omnibus GitLab readme\nhttps:\/\/gitlab.com\/gitlab-org\/omnibus-gitlab\/blob\/master\/README.md\n\nzen@LAB:~$\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Git\u306e\u7ba1\u7406\u3067\u697d\u3092\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001GitLab\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002\uff08\u3082\u3063\u3068\u697d\u3092\u3059\u308b\u306a\u3089\u3070\u3001GitHub\u3084Backlog\u3092\u5951\u7d04\u3059\u308c\u3070\u3044\u3044\u306e\u3060\u308d\u3046\u3051\u3069\uff09 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u306f\u3001Ubuntu\u00a018.04\u00a0Desktop\u3002Ser [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[183,110],"class_list":["post-3183","post","type-post","status-publish","format-standard","hentry","category-linux","tag-gitlab","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/3183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=3183"}],"version-history":[{"count":2,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/3183\/revisions"}],"predecessor-version":[{"id":3281,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/3183\/revisions\/3281"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=3183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=3183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=3183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}