{"id":1888,"date":"2015-06-29T22:09:10","date_gmt":"2015-06-29T13:09:10","guid":{"rendered":"http:\/\/mattyan.net\/blog\/?p=1888"},"modified":"2015-06-29T22:09:10","modified_gmt":"2015-06-29T13:09:10","slug":"docker%e3%81%a7gitbucket%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%81%be%e3%81%a0%e9%80%94%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/mattyan.net\/blog\/?p=1888","title":{"rendered":"docker\u3067GitBucket\u3092\u5b9f\u884c\u3057\u3066\u307f\u305f(\u307e\u3060\u9014\u4e2d)"},"content":{"rendered":"<p>\u4f8b\u306b\u3088\u3063\u3066\u81ea\u5206\u7528\u306e\u30e1\u30e2\u3060\u304b\u3089\u9593\u9055\u3063\u3066\u308b\u304b\u3082\u3057\u308c\u3093\u2026<br \/>\n<!--more--><br \/>\nDockerfile<\/p>\n<pre>\nFROM base\/archlinux\n# upgrade packages\nRUN echo \"Server = http:\/\/ftp.tsukuba.wide.ad.jp\/Linux\/archlinux\/$repo\/os\/$arch\" >> \/etc\/pacman.d\/mirrorlist\nRUN echo \"Server = http:\/\/ftp.jaist.ac.jp\/pub\/Linux\/ArchLinux\/$repo\/os\/$arch\" >> \/etc\/pacman.d\/mirrorlist\nRUN echo \"Server = https:\/\/www.archlinux.org\/packages\/$repo\/$arch\/\" >> \/etc\/pacman.d\/mirrorlist\nRUN pacman -Syy --noconfirm\nRUN pacman -S --noconfirm archlinux-keyring\nRUN pacman -Syu --noconfirm\nRUN pacman-db-upgrade\nRUN pacman -S tomcat-native --noconfirm\nRUN pacman -S jdk7-openjdk --noconfirm\nRUN pacman -S tomcat8 --noconfirm\nRUN pacman -S wget --noconfirm\nRUN wget -P \/var\/lib\/tomcat8\/webapps https:\/\/github.com\/takezoe\/gitbucket\/releases\/download\/3.4\/gitbucket.war\nEXPOSE 8080\nCMD [\"\/usr\/share\/tomcat8\/bin\/catalina.sh\", \"run\"]\n<\/pre>\n<p>\u30d3\u30eb\u30c9<br \/>\n[bash]<br \/>\ndocker build &#8211;rm -t mattyan\/gitbucket .<br \/>\n[\/bash]<br \/>\n\u5b9f\u884c<br \/>\n[bash]<br \/>\ndocker run &#8211;rm -v `pwd`\/repositories\/:\/root\/.gitbucket\/ -ti -p 8080:8080 -p 10020:10020 mattyan\/bitbucket<br \/>\n[\/bash]<br \/>\n(root\u3067\u5b9f\u884c\u3057\u3066\u308b\u304b\u3089)\/root\/.gitbucket\u4ee5\u4e0b\u306b\u30ec\u30dd\u30b8\u30c8\u30ea\u3068\u304b\u8a2d\u5b9a\u3068\u304b\u5165\u3063\u3066\u308b\u307f\u305f\u3044\u3060\u304b\u3089\u3001\u305d\u308c\u3092\u30dc\u30ea\u30e5\u30fc\u30e0\u3067\u30db\u30b9\u30c8\u306b\u62fe\u3044\u3060\u3057\u3066\u4fdd\u5b58\u3002<br \/>\n\u30dd\u30fc\u30c88080\u306ftomcat\u306e\u63a5\u7d9a\u7528\u300110020\u306fgitbucket\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306bssh\u3067\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u30dd\u30fc\u30c8\u3002<br \/>\n\u305f\u3060\u3057\u3001ssh\u306f\u30ad\u30fc\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u306a\u3044\u304b\u3089\u3001\u307e\u3060clone\u3082\u78ba\u8a8d\u3057\u3066\u306a\u3044\u3002<br \/>\n\u2026\u524d\u3005\u304b\u3089\u306a\u3093\u3068\u306a\u304f\u601d\u3063\u3066\u305f\u3051\u3069\u3001\u3053\u306ebase\/archlinux\u3063\u3066\u666e\u901a\u306earchlinux\u3058\u3083\u306a\u3044\u6c17\u304c\u3059\u308b\u2026<br \/>\n\/etc\/pacman.d\/mirrorlist\u306b\u307b\u3068\u3093\u3069\u4f55\u3082\u304b\u304b\u308c\u3066\u306a\u3044\u3057\u3001\u305d\u306e\u307e\u307e\u3060\u3068pacman -Syu\u3059\u3089\u5931\u6557\u3059\u308b\u3057\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f8b\u306b\u3088\u3063\u3066\u81ea\u5206\u7528\u306e\u30e1\u30e2\u3060\u304b\u3089\u9593\u9055\u3063\u3066\u308b\u304b\u3082\u3057\u308c\u3093\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[],"class_list":["post-1888","post","type-post","status-publish","format-standard","hentry","category-3","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1888"}],"version-history":[{"count":0,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1888\/revisions"}],"wp:attachment":[{"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattyan.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}