{"id":48220,"date":"2015-03-02T12:00:49","date_gmt":"2015-03-02T03:00:49","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=48220"},"modified":"2017-03-23T14:22:10","modified_gmt":"2017-03-23T05:22:10","slug":"gitbucket-with-os-x-yosemite","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/gitbucket-with-os-x-yosemite\/","title":{"rendered":"OS X Yosemite\u3067Tomcat\u3092\u4f7f\u3044\u300cGitBucket\u300d\u3092\u904b\u7528\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/05\/INewImage-3.png\" alt=\"NewImage\" title=\"NewImage.png\" border=\"0\" width=\"800\" height=\"300\" \/><\/p>\n<p>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eGitHub\u30af\u30ed\u30fc\u30f3\u3068\u3057\u3066\u4eba\u6c17\u306e\u300c<a href=\"https:\/\/github.com\/takezoe\/gitbucket\">GitBucket<\/a>\u300d\u3002\u52d5\u4f5c\u3055\u305b\u308b\u306e\u306b\u8907\u96d1\u306a\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u306a\u304f\u3001\u7c21\u5358\u306b\u52d5\u304b\u305b\u308b\u3068\u3053\u308d\u304c\u4eba\u6c17\u306e\u8981\u56e0\u306e\u4e00\u3064\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>GitBucket\u306f\u3001Scala\u3067\u4f5c\u3089\u308c\u3066\u3044\u3066\u300cjava -jar gitbucket.war\u300d\u3068\u3059\u308c\u3070\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u672c\u683c\u7684\u306b\u904b\u7528\u3057\u305f\u3044\u5834\u5408\u3001Jetty\u3001Tomcat\u3001GlassFish\u3068\u3044\u3063\u305fJava\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u7528\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u904b\u7528\u3057\u305f\u65b9\u304c\u306a\u306b\u304b\u3068\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u306fOS X Yosemite\u3067\u3001Tomcat\u3092\u4f7f\u3044\u6700\u65b0\u7248GitBucket\u3092\u904b\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>Tomcat 8\u306e\u6e96\u5099<\/h2>\n<p><a href=\"https:\/\/github.com\/takezoe\/gitbucket\/issues\/374\">Scala 2.11.0<\/a>\u306b\u3088\u308b\u3068\u3001GitBucket 2.2\u3067\u3001Scala 2.11\u3001Scalatra 2.3\u3001Slick 2.1\u304c\u5c0e\u5165\u3055\u308c\u3001Scala 2.11\u304cServlet 3.1\u3092\u8981\u6c42\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u305f\u3081GitBucket 2.2\u4ee5\u964d\u3067\u306f\u3001Tomcat 8.x\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Tomcat 8\u3092Yosemite\u3067\u52d5\u304b\u3059\u65b9\u6cd5\u306b\u95a2\u3057\u3066\u306f\u4ee5\u4e0b\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/softantenna.com\/open\/tools\/tomcat-8-with-os-x-yosemite\/\">OS X Yosemite\u3067\u300cTomcat 8\u300d\u3092\u904b\u7528\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n<\/ul>\n<h2>GitBucket\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210<\/h2>\n<p>\u307e\u305agitbucket\u306e\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5834\u6240\u6c7a\u3081\u307e\u3059\u3002<\/p>\n<p>gitbucket\u306f\u901a\u5e38\u3001$HOME\/.gitbucket\u306b\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u3001Tomcat\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3067\u540c\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3067\u304d\u308b\u3053\u3068\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u304c_www\u306e\u5834\u5408\u3001\/Library\/WebServer\/.gitbucket\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3002\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u3001\u74b0\u5883\u5909\u6570GITBUCKET_HOME\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u74b0\u5883\u5909\u6570\u306fTomcat\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3001\u4f8b\u3048\u3070<a href=\"https:\/\/softantenna.com\/open\/tools\/tomcat-8-with-os-x-yosemite\/\">tomcat-launchd.sh<\/a>\u7b49\u3067\u8a2d\u5b9a\u3059\u308c\u3070\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"bash\">export GITBUCKET_HOME=\/opt\/home\/gitbucket\r\n<\/code><\/pre>\n<p>Tomcat\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3067\u3001GITBUCKET_HOME\u304c\u4f5c\u6210\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u3001\u624b\u4f5c\u696d\u3067\u3042\u3089\u304b\u3058\u3081\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f\u307b\u3046\u304c\u30c8\u30e9\u30d6\u30eb\u304c\u5c11\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u3001GITBUCKET_HOME\u304c\/opt\/home\/gitbucket\u306e\u5834\u5408\u3002<\/p>\n<pre><code class=\"nohighlight\"># cd \/opt\/home\r\n# mkdir gitbucket\r\n# chown -R _www gitbucket\r\n# chgrp -R _www gitbucket\r\n<\/code><\/pre>\n<h2>GitBucket\u306e\u30c7\u30d7\u30ed\u30a4<\/h2>\n<p><a href=\"https:\/\/github.com\/takezoe\/gitbucket\/releases\">Releases<\/a>\u304b\u3089\u6700\u65b0\u7248\u306egitbucket.war\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001Tomcat\u306ewebapps\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/localhost:8080\/gitbucket\u3092\u958b\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/IGitBucket.png\" alt=\"GitBucket\" title=\"GitBucket.png\" border=\"0\" width=\"580\" height=\"307\" \/><\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d:root\u3001\u30d1\u30b9\u30ef\u30fc\u30c9:root\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210<\/h2>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/IManage_Users.png\" alt=\"Manage Users\" title=\"Manage_Users.png\" border=\"0\" width=\"580\" height=\"160\" \/><\/p>\n<p>root\u306e\u307e\u307e\u3060\u3068\u30ab\u30c3\u30b3\u60aa\u3044\u306e\u3067\u3001Administration\u30e1\u30cb\u30e5\u30fc\u3067\u3001\u666e\u6bb5\u4f7f\u3044\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>ssh\u30a2\u30af\u30bb\u30b9\u306e\u6709\u52b9\u5316<\/h2>\n<p>GitBucket\u306fssh\u30b5\u30fc\u30d0\u30fc\u6a5f\u80fd\u3092\u5185\u8535\u3057\u3066\u3044\u308b\u305f\u3081(\u3044\u308f\u3086\u308bsshd\u3068\u306f\u5225\u7269\u3067\u3059)\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u30a2\u30af\u30bb\u30b9\u306bssh\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u306b\u306f\u3001Administration\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001System Settings\u3092\u958b\u3044\u3066Base URL\u3068\u3001SSH access\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/ISystem_Settings.png\" alt=\"System Settings\" title=\"System_Settings.png\" border=\"0\" width=\"580\" height=\"203\" \/><\/p>\n<p><b>Base URL<\/b>\u306fgitbucket\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306eURL\u3067\u3001\u4f8b\u3048\u3070\u300csrcw.net\u300d\u3068\u3044\u3046\u30b5\u30fc\u30d0\u30fc\u3067\u52d5\u304b\u3057\u3066\u3044\u308b\u5834\u5408\u300chttp:\/\/srcw.net:8080\/gitbucket\u300d\u3068\u306a\u308a\u307e\u3059\u3002\u5916\u90e8\u306b\u516c\u958b\u305b\u305a\u81ea\u5206\u3060\u3051\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308c\u3070\u826f\u3044\u5834\u5408\u3001\u300chttp:\/\/macmini:8080\/gitbucket\u300d (macmini\u306f\u30db\u30b9\u30c8\u540d)\u307f\u305f\u3044\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/ISystem_Settings1.png\" alt=\"System Settings1\" title=\"System_Settings1.png\" border=\"0\" width=\"580\" height=\"83\" \/><\/p>\n<p><b>SSH access<\/b>\u306f\u3001\u300cEnable SSH access to git repository\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3044\u308c\u308b\u3060\u3051\u3067\u3059\u3002\u30dd\u30fc\u30c8\u756a\u53f7\u306f\u305d\u306e\u307e\u307e\u3067\u826f\u3044\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/Iroot_sample.png\" alt=\"Root sample\" title=\"root_sample.png\" border=\"0\" width=\"580\" height=\"259\" \/><\/p>\n<p>\u305d\u3046\u3059\u308b\u3068\u30ea\u30dd\u30b8\u30c8\u30ea\u306bssh\u3092\u4f7f\u3063\u305f\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002URL\u306f\u300cssh:\/\/root@maroon:29418\/root\/sample.git\u300d\u306e\u3088\u3046\u306a\u5f62\u5f0f\u3068\u306a\u308a\u307e\u3059(\u30dd\u30fc\u30c8\u756a\u53f7\u304c\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30dd\u30fc\u30c8\u756a\u53f7\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044)\u3002<\/p>\n<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2017\/03\/ISSH_Keys.png\" alt=\"SSH Keys\" title=\"SSH_Keys.png\" border=\"0\" width=\"580\" height=\"331\" \/><\/p>\n<p>\u305f\u3060\u3057ssh\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u30e6\u30fc\u30b6\u30fc\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u8a2d\u5b9a\u3067ssh\u306e\u516c\u958b\u9375\u3092\u767b\u9332\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u81ea\u5206\u304c\u4f7f\u3044\u305f\u3044\u516c\u958b\u9375\u3092Key\u306e\u3068\u3053\u308d\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046(\u30bf\u30a4\u30c8\u30eb\u306f\u4f55\u3067\u3082\u3088\u3044)\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>GitBucket\u3092Mac\u3067\u904b\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002Tomcat\u306b\u3053\u3060\u308f\u3089\u306a\u3051\u308c\u3070\u3001brew install gitbucket\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u52d5\u304b\u3057\u305f\u3044\u3068\u3044\u3046\u5834\u5408\u3001\u305d\u3061\u3089\u306e\u307b\u3046\u304c\u3066\u3063\u3068\u308a\u901f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305fhttp\u30a2\u30af\u30bb\u30b9\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\u3092\u7701\u7565\u3057\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/softantenna.com\/open\/tools\/git-credential-osxkeychain\/\">git-credential-osxkeychain<\/a>\u3092\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eGitHub\u30af\u30ed\u30fc\u30f3\u3068\u3057\u3066\u4eba\u6c17\u306e\u300cGitBucket\u300d\u3002\u52d5\u4f5c\u3055\u305b\u308b\u306e\u306b\u8907\u96d1\u306a\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u306a\u304f\u3001\u7c21\u5358\u306b\u52d5\u304b\u305b\u308b\u3068\u3053\u308d\u304c\u4eba\u6c17\u306e\u8981\u56e0\u306e\u4e00\u3064\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 GitBucket\u306f\u3001Scala\u3067\u4f5c\u3089\u308c\u3066\u3044\u3066\u300cjav [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":37955,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2047],"tags":[159,2338,573,8,2419],"class_list":["post-48220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-git","tag-gitbucket","tag-github","tag-osx","tag-yosemite"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/48220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=48220"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/48220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/37955"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=48220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=48220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=48220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}