{"id":553,"date":"2015-11-23T21:30:31","date_gmt":"2015-11-23T12:30:31","guid":{"rendered":"https:\/\/fal.ms\/b\/?p=553"},"modified":"2017-01-10T00:08:13","modified_gmt":"2017-01-09T15:08:13","slug":"build-openwrt-on-docker","status":"publish","type":"post","link":"https:\/\/fal.ms\/b\/2015\/11\/build-openwrt-on-docker\/","title":{"rendered":"Docker\u4e0a\u3067OpenWrt\u306e\u30d3\u30eb\u30c9\u3092\u884c\u3046\u3002"},"content":{"rendered":"<p>\u5148\u65e5\u3001\u81ea\u5b85\u30e9\u30c3\u30af\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3082\u73cd\u3057\u3044OpenWrt\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u4f1a\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/atnd.org\/events\/71830\" target=\"_blank\">\u81ea\u5b85\u30e9\u30c3\u30af\u52c9\u5f37\u4f1a #4.0 2015 \u30c0\u30f3\u30dc\u30fc\u3001OpenWRT\u3001SoftEther\u3001\u3055\u3041\u30cf\u30c3\u30af\u306e\u6642\u9593\u3067\u3059\u3002<\/a><br \/>\n\u5bb6\u5ead\u7528\u30eb\u30fc\u30bf\u30fc\u3092\u4e2d\u5fc3\u3068\u3057\u3066OpenWrt\u306b\u3064\u3044\u3066\u30a2\u30ec\u30b3\u30ec\u3001\u306a\u304b\u306a\u304b\u6fc3\u3044\u52c9\u5f37\u4f1a\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u969b\u3001OpenWrt\u306e\u30d3\u30eb\u30c9\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3069\u3046\u306b\u3082\u30d3\u30eb\u30c9\u74b0\u5883\u3092\u4f5c\u308b\u306e\u304c\u82e6\u624b\u306a\u306e\u3067\u3001\u5f53\u521d\u306fOpenWrt Buildroot\u74b0\u5883\u304c\u6574\u3063\u305f\u65e2\u5b58\u306eDocker\u30a4\u30e1\u30fc\u30b8\uff08<a href=\"https:\/\/hub.docker.com\/r\/noonien\/openwrt-buildroot\/\" target=\"_blank\">noonien\/openwrt-buildroot &#8211; Docker Hub<\/a>\uff09\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u304c\u3001\u554f\u984c\u3082\u3042\u3063\u3066\u3001OpenWrt Barrier Breaker 14.07\u7528\u3067\u3042\u3063\u305f\u308a\u3001Dockerfile\u306e\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3067\u3042\u308bubuntu:14.10\u304cLTS\u3067\u306f\u306a\u3044\u305f\u3081\u306bapt-get\u3057\u3066\u3082\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3069\u3046\u305b\u306a\u3089\u81ea\u5206\u7528\u306bDockerfile\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u7acb\u3061\u3001\u8a66\u884c\u932f\u8aa4\u3057\u306a\u304c\u3089\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u52c9\u5f37\u4f1a\u5f8c\u306b\u624b\u76f4\u3057\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/github.com\/falms\/docker-openwrt-buildroot\" target=\"_blank\">falms\/docker-openwrt-buildroot &#8211; GitHub<\/a><br \/>\n\u5b89\u5b9a\u5fd7\u5411\u306e\u305f\u3081\u3001master\u3067\u306f\u306a\u304f15.05\u30d6\u30e9\u30f3\u30c1\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001PLANEX DB-WRT01\u306e\u30b5\u30dd\u30fc\u30c8\u306f\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<br \/>\nSoftEther VPN\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u60f3\u5b9a\u3067\u3042\u3063\u305f\u305f\u3081\u3001el1n\u3055\u3093\u4f5c\u6210\u306eOpenWRT-package-softether\u3082\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u52c9\u5f37\u4f1a\u3067\u306f\u3001\u6301\u53c2\u3057\u305fMacBook Air Mid 2012\u306b\u5165\u308c\u3066\u304a\u3044\u305fDocker Toolbox\u4e0a\u3067\u30d3\u30eb\u30c9\u3092\u884c\u3044\u307e\u3057\u305f\u3002<br \/>\n\u30ed\u30fc\u30ab\u30eb\u306b\u4f5c\u6210\u3057\u305fDockerfile\u3092\u3082\u3068\u306bdocker build\u5f8c\u3001docker run\u3057\u3066\u3001\u3042\u3068\u306f\u901a\u5e38\u306eOpenWrt\u30d3\u30eb\u30c9\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n<p>\u4eca\u304b\u3089\u5b9f\u65bd\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u624b\u9806\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre>git clone https:\/\/github.com\/falms\/docker-openwrt-buildroot.git\r\ncd docker-openwrt-buildroot\r\ndocker build --tag openwrt-buildroot .\r\ndocker run -it openwrt-buildroot sudo -iu openwrt bash\r\n<\/pre>\n<p>\u30d3\u30eb\u30c9\u6642\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3067Docker\u30b3\u30f3\u30c6\u30ca\u304c\u7acb\u3061\u4e0a\u304c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre>cd openwrt\r\n.\/scripts\/feeds update\r\n.\/scripts\/feeds install luci\r\n.\/scripts\/feeds install softethervpn\r\nmake defconfig\r\nmake prereq\r\nmake menuconfig\r\n<\/pre>\n<p>\u7acb\u3061\u4e0a\u304c\u3063\u305f\u30e1\u30cb\u30e5\u30fc\u3067Target System\u3084Subtarget\u306a\u3069\u6307\u5b9a\u3057\u3001softethervpn\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001Exit\u6642\u306bSave\u3057\u307e\u3059\u3002<\/p>\n<pre>make -j2<\/pre>\n<p>\u9069\u5b9c-j2\u306e\u90e8\u5206\u306fCPU\u30b3\u30a2\u6570\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3059\u308b\u3068\u3057\u3066\u3001\u5f8c\u306f\u30d3\u30eb\u30c9\u304c\u5b8c\u4e86\u307e\u3067\u5f85\u3064\u306e\u307f\u30021\u6642\u9593\u304f\u3089\u3044\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fDocker Toolbox\u4e0a\u3067\u884c\u3044\u307e\u3057\u305f\u304c\u3001Docker Toolbox\u3067\u4f7f\u308f\u308c\u308bVirtualBox\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u304c\u4f4e\u3081\u306e\u305f\u3081\u3001\u5272\u308a\u5f53\u3066\u30b3\u30a2\u6570\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e1\u304b\u30892\u306b\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002\u30e1\u30e2\u30ea\u3082\u4f59\u88d5\u304c\u3042\u308b\u306a\u3089\u30014GB\u304f\u3089\u3044\u5272\u308a\u5f53\u3066\u3066\u304a\u3044\u305f\u65b9\u304c\u3088\u3055\u305d\u3046\u3067\u3057\u305f\u3002<\/p>\n<p>\u52c9\u5f37\u4f1a\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u306eMacBook Air\u3067\u30d3\u30eb\u30c9\u4e2d\u306b\u3001VPS\u3067\u3082\u540c\u3058Dockerfile\u3092\u4f7f\u3063\u3066\u30d3\u30eb\u30c9\u3092\u5b9f\u884c\u3055\u305b\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001VPS\u306f1GB\u3057\u304b\u30e1\u30e2\u30ea\u304c\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u30d3\u30eb\u30c9\u9014\u4e2d\u306b\u30b3\u30b1\u3066\u3057\u307e\u3044\u3001\u4f55\u5ea6\u518d\u958b\u3057\u3066\u3082\u9032\u307e\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001\uff08CPU\u3068\u30e1\u30e2\u30ea\u304c\u3042\u308bDocker\u74b0\u5883\u306a\u3089\uff09\u3069\u3053\u3067\u3082OpenWrt Chaos Calmer 15.05\u3092\u30d3\u30eb\u30c9\u3067\u304d\u308b\u74b0\u5883\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u3042\u308b\u3068\u306f\u3044\u3048\u3001Docker\u306f\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u3001\u81ea\u5b85\u30e9\u30c3\u30af\u52c9\u5f37\u4f1a\u306b\u53c2\u52a0\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3082\u73cd\u3057\u3044OpenWrt\u306b\u3064\u3044\u3066\u306e\u52c9\u5f37\u4f1a\u3067\u3059\u3002 \u81ea\u5b85\u30e9\u30c3\u30af\u52c9\u5f37\u4f1a #4.0 2015 \u30c0\u30f3\u30dc\u30fc\u3001OpenWRT\u3001SoftEther\u3001\u3055\u3041\u30cf\u30c3\u30af\u306e\u6642\u9593\u3067\u3059\u3002 \u5bb6\u5ead\u7528\u30eb\u30fc\u30bf\u30fc\u3092\u4e2d\u5fc3\u3068\u3057 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[25,37],"tags":[22],"class_list":["post-553","post","type-post","status-publish","format-standard","hentry","category-c_network","category-37","tag-openwrt"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/posts\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":0,"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"wp:attachment":[{"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fal.ms\/b\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}