{"id":19224,"date":"2014-04-25T22:46:06","date_gmt":"2014-04-25T13:46:06","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=19224"},"modified":"2014-04-25T22:46:06","modified_gmt":"2014-04-25T13:46:06","slug":"git-bucket-practice","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/git-bucket-practice\/","title":{"rendered":"GitHub\u30af\u30ed\u30fc\u30f3\u300cGitBucket\u300d\u5b9f\u8df5\u7de8"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/04\/blogGitBucket1.jpg\" alt=\"GitBucket\" title=\"GitBucket.jpg\" border=\"0\" width=\"546\" height=\"225\" \/><\/p>\n<p>Pure Java\/Scala\u3067\u5b9f\u88c5\u3055\u308c\u305fGitHub\u30af\u30ed\u30fc\u30f3\u3067\u3042\u308b\u300c<a href=\"https:\/\/github.com\/takezoe\/gitbucket\">GitBucket<\/a>\u300d\u3092\u3001\u5b9f\u904b\u7528\u3059\u308b\u969b\u306b\u5f79\u306b\u7acb\u3061\u305d\u3046\u306aTips\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u81ea\u5b85\u74b0\u5883\u3067\u306fMac mini\u304c\u30b5\u30fc\u30d0\u30fc\u7684\u306a\u5f79\u5272\u3092\u3053\u306a\u3057\u3066\u3044\u308b\u306e\u3067\u3001OS X Mavericks \u3067\u904b\u7528\u3059\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/softantenna.com\/blog\/software\/git-bucket\/\">\u8a2d\u7f6e\/\u304a\u8a66\u3057\u306f\u3001\u8d85\u7c21\u5358<\/a>\u306b\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u4f7f\u3044\u59cb\u3081\u308b\u3068\u306a\u308b\u3068\u305d\u308c\u306a\u308a\u306b\u8003\u3048\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u8a73\u7d30\u306f\u4ee5\u4e0b\u3088\u308a\u3002<br \/>\n<!--more--><\/p>\n<h3>Tips1: Tomcat 7\u3067\u904b\u7528\u3057\u305f\u3044<\/h3>\n<h4>Tomcat\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u52d5\u4f5c\u78ba\u8a8d<\/h4>\n<p><a href=\"http:\/\/tomcat.apache.org\/download-70.cgi\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u3001apache-tomcat-7.0.53.tar.gz \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u9069\u5f53\u306a\u5834\u6240\u306b\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre>\ncd apache-tomcat-7.0.53\n.\/bin\/startup.sh\n<\/pre>\n<p>\u300chttp:\/\/localhost:8080\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<h4>gitbucket.war\u306e\u914d\u5099<\/h4>\n<p>gitbucket.war\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066webapps\u306b\u30b3\u30d4\u30fc\u3057\u3001Tomcat\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre>\ncp gitbucket.war apache-tomcat-7.0.53\/webapps\n.\/bin\/shutdown.sh\n.\/bin\/startup.sh\n<\/pre>\n<p>\u300chttp:\/\/localhost:8080\/gitbucket\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n<h4>\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/h4>\n<p>Tomcat\u3092\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u305f\u3044\u5834\u5408\u3001\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3084launchctl\u306e\u3053\u3068\u306a\u3069\u3044\u308d\u3044\u308d\u8003\u3048\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3053\u3068\u304c\u5897\u3048\u307e\u3059\u3002\u4eca\u56de\u306f\u8aac\u660e\u3092\u7701\u7565\u3057\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304c\u3068\u3066\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/code.google.com\/p\/gbif-providertoolkit\/wiki\/TomcatInstallationMacOSX\">TomcatInstallationMacOSX<\/a>\n<\/ul>\n<h4>Tomcat\u306f\u52d5\u3044\u3066\u3044\u308b\u3051\u3069GitBucket\u306f\u52d5\u304b\u306a\u3044\uff01\uff1f<\/h4>\n<p>\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u3088\u3046\u3068\u3057\u3066\u306f\u307e\u308a\u307e\u3057\u305f\u3002\u539f\u56e0\u306fTomcat\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3092_www\u306b\u8a2d\u5b9a\u3057\u3066\u8d77\u52d5\u3059\u308b\u3068\u3001GitBucket\u304c\u300c\/Library\/WebServer\/.gitbucket\u300d\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u3066\u5931\u6557\u3057\u3066\u3044\u305f\u305f\u3081(\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3067\u7121\u7406\u3060\u3063\u305f)\u3002<\/p>\n<p>catalina.sh\u3067\u74b0\u5883\u5909\u6570GITBUCKET_HOME\u3092\u9069\u5f53\u306a\u5834\u6240(_www\u30e6\u30fc\u30b6\u30fc\u304c\u66f8\u304d\u8fbc\u3081\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea)\u306b\u5909\u66f4\u3057\u3001\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Tomcat\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u51b7\u9759\u306b\u78ba\u8a8d\u3059\u308c\u3070\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>Tips2: ssh\u3067\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044<\/h3>\n<p>ssh\u3092\u4f7f\u3063\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u30a2\u30af\u30bb\u30b9\u306f\u662f\u975e\u3068\u3082\u4f7f\u3044\u305f\u304b\u3063\u305f\u306e\u3067\u8a2d\u5b9a\u3057\u307e\u3057\u305f(OS X\u3060\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u304c\u7701\u7565\u3067\u304d\u308b\u305f\u3081)\u3002<\/p>\n<p>\u3056\u3063\u304f\u308a\u8aac\u660e\u3059\u308b\u3068\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u3067SSH\u30a2\u30af\u30bb\u30b9\u3092\u6709\u52b9\u306b\u3057\u305f\u5f8c\u3001\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u516c\u958b\u9375\u3092\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059(<a href=\"http:\/\/d.hatena.ne.jp\/takezoe\/20140329#p1\">\u516c\u5f0f\u8aac\u660e<\/a>\u3082\u53c2\u7167\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059)\u3002<\/p>\n<h4>\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u306e\u5909\u66f4<\/h4>\n<p>\u300cAdministration(\u753b\u9762\u53f3\u4e0a\u30a2\u30a4\u30b3\u30f3) > System Settings\u300d\u3068\u9032\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/04\/blogSystem-Settings1.jpg\" alt=\"System Settings\" title=\"System Settings.jpg\" border=\"0\" width=\"488\" height=\"482\" \/><\/p>\n<p>\u307e\u305a\u753b\u9762\u4e0b\u90e8\u306e<span class=\"mybold\">SSH access<\/span>\u3067\u300c<span class=\"mybold\">Enable SSH access to git repository<\/span>\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u3044\u308c\u307e\u3059\u3002\u30dd\u30fc\u30c8\u756a\u53f7\u306f\u305d\u306e\u307e\u307e\u3067\u3002<\/p>\n<p>\u3064\u304e\u306b<span class=\"mybold\">Base URL<\/span>\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u6700\u521d\u4f55\u3092\u5165\u308c\u305f\u3089\u3044\u3044\u306e\u304b\u3088\u304f\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u30b5\u30f3\u30d7\u30eb\u306e\u3088\u3046\u306bgitbucket\u306b\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308burl\u3068\u3057\u3066\u300chttp:\/\/bronze:8080\/gitbucket\u300d\u3092\u6307\u5b9a\u3059\u308b\u3068\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f(bronze\u306fTomcat\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u30db\u30b9\u30c8\u540d)\u3002<\/p>\n<p>\u4f8b\u3048\u3070Web\u30b5\u30fc\u30d0\u3068Tomcat\u3092\u9023\u643a\u3055\u305b\u308b\u5834\u5408\u3001Base URL\u306f\u300chttp:\/\/bronze\/gitbucket\u300d(\u30dd\u30fc\u30c8\u756a\u53f7\u306a\u3057)\u306e\u3088\u3046\u306b\u5909\u308f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Base URL\u8a2d\u5b9a\u5f8c\u3001GitBucket\u304c\u3046\u307e\u304f\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u5834\u5408\u3001\u306a\u306b\u304b\u9593\u9055\u3048\u3066\u3044\u307e\u3059\u3002GITBUCKET_HOME\/gitbucket.conf\u306bbase_url\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u524a\u9664\u3059\u308c\u3070\u5fa9\u6d3b\u3057\u307e\u3059\u3002<\/p>\n<h4>\u516c\u958b\u9375\u306e\u767b\u9332<\/h4>\n<p>\u300cAccount Settings(\u753b\u9762\u53f3\u4e0a\u30a2\u30a4\u30b3\u30f3) > SSH Keys\u300d\u3068\u9032\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/04\/blogSSH-Keys.jpg\" alt=\"SSH Keys\" title=\"SSH Keys.jpg\" border=\"0\" width=\"546\" height=\"350\" \/><\/p>\n<p>ssh\u30a2\u30af\u30bb\u30b9\u306b\u4f7f\u7528\u3057\u305f\u3044\u516c\u958b\u9375\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002\u30bf\u30a4\u30c8\u30eb\u306f\u3054\u81ea\u7531\u306b\u3002\u4ee5\u4e0a\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h4>ssh\u3067clone\u5b9f\u884c<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/04\/blogsrc_test.jpg\" alt=\"Src test\" title=\"src_test.jpg\" border=\"0\" width=\"520\" height=\"284\" \/><\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30fc\u30c9\u306e\u3068\u3053\u308d\u3067\u3001SSH\u306eURL\u304c\u9078\u3079\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u4f8b\u3048\u3070\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306bclone\u3057\u307e\u3059\u3002<\/p>\n<pre>\n git clone ssh:\/\/src@bronze:29418\/src\/test.git\n<\/pre>\n<p>\u30dd\u30fc\u30c8\u756a\u53f7\u304c\u898b\u6163\u308c\u307e\u305b\u3093\u304c\u3001GitBucket\u306f<a href=\"http:\/\/mina.apache.org\/sshd-project\/\">MINA SSHD<\/a>\u3092\u4f7f\u3063\u3066SSH\u7d4c\u7531\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u30a2\u30af\u30bb\u30b9\u3092\u5b9f\u73fe\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3067\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3046\u307e\u304f\u9375\u3092\u4f7f\u3063\u3066\u304f\u308c\u306a\u3044\u5834\u5408\u3001.ssh\/config\u306e\u8a2d\u5b9a\u3092\u9069\u5207\u306b\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u99c6\u3051\u8db3\u3067\u3057\u305f\u304c\u3001GitBucket\u904b\u7528\u6642\u306b\u5f79\u306b\u7acb\u3064Tips\u30922\u3064\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u79c1\u306fOS X Mavericks\u3067\u8a66\u3057\u307e\u3057\u305f\u304c\u3001Linux\u306e\u5834\u5408\u3067\u3082(Windows\u3067\u3082?)\u307b\u3068\u3093\u3069\u540c\u3058\u3060\u3068\u601d\u3044\u307e\u3059(Write once, run anywhere\u3059\u3070\u3089\u3057\u3044)\u3002<\/p>\n<p>Redmine\u3068\u306e\u9023\u643a\u3082\u30012\u3064\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u540c\u4e00\u30db\u30b9\u30c8\u3067\u52d5\u3044\u3066\u3044\u308b\u306a\u3089\u3070\u3001GITBUCKET_HOME\u4ee5\u4e0b\u306b\u3042\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u76f4\u63a5\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u307f\u307e\u3057\u305f\u3002\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>GitBucket\u306f\u67081\u56de\u306e\u30da\u30fc\u30b9\u3067\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u523b\u3005\u3068\u72b6\u6cc1\u306f\u5909\u308f\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u308a\u3042\u3048\u305a\u73fe\u6bb5\u968e\u3067\u306eTips\u3068\u3044\u3046\u3053\u3068\u3067\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pure Java\/Scala\u3067\u5b9f\u88c5\u3055\u308c\u305fGitHub\u30af\u30ed\u30fc\u30f3\u3067\u3042\u308b\u300cGitBucket\u300d\u3092\u3001\u5b9f\u904b\u7528\u3059\u308b\u969b\u306b\u5f79\u306b\u7acb\u3061\u305d\u3046\u306aTips\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u81ea\u5b85\u74b0\u5883\u3067\u306fMac mini\u304c\u30b5\u30fc\u30d0\u30fc\u7684\u306a\u5f79\u5272\u3092\u3053\u306a\u3057\u3066\u3044\u308b\u306e\u3067 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":19220,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66,75],"tags":[159,2338,573],"class_list":["post-19224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","category-software","tag-git","tag-gitbucket","tag-github"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/19224","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=19224"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/19224\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/19220"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=19224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=19224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=19224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}