{"id":3890,"date":"2025-09-11T23:36:15","date_gmt":"2025-09-11T14:36:15","guid":{"rendered":"https:\/\/www.kdel.org\/wp\/?p=3890"},"modified":"2025-09-12T23:18:27","modified_gmt":"2025-09-12T14:18:27","slug":"mac%e3%81%a7refbox%ef%bc%88%e3%81%be%e3%81%a8%e3%82%81%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.kdel.org\/wp\/?p=3890","title":{"rendered":"Mac\u3067RefBox\uff08\u307e\u3068\u3081\uff09"},"content":{"rendered":"<p><mark><a href=\"https:\/\/www.kdel.org\/wp\/?p=3881\">Mac\u3067RefBox \u2013 \u305d\u306e2<\/a><\/mark>\u306e\u307e\u3068\u3081\u3067\u3059\uff0e<br \/>\n\u25a0\u6e96\u5099<br \/>\n\u307e\u305a\uff0cgit\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\uff0c\u30c1\u30fc\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u3068rcll-get-started\u3092\u53d6\u3063\u3066\u304d\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir ~\/git\r\ncd ~\/git\r\ngit clone https:\/\/github.com\/babytigers-r\/rcll\r\ngit clone https:\/\/github.com\/robocup-logistics\/rcll-get-started\r\ncd rcll-get-started\r\n<\/pre>\n<p>\u4fee\u6b63\u4f5c\u696d\u306e\u5185\u5bb9\u3092\u30d1\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u306b\u3057\u307e\u3057\u305f\u306e\u3067\uff0c\u305d\u306e\u30d1\u30c3\u30c1\u3092\u5f53\u3066\u307e\u3059\uff0e<br \/>\n\u30d1\u30c3\u30c1\u306e\u4e2d\u8eab\u306e\u8aac\u660e\u306f\u5f8c\u534a\u306b\u66f8\u304d\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npatch -p1 &lt; ~\/git\/rcll\/scripts\/rcll-get-started_forMac.patch\r\n<\/pre>\n<p>\u3053\u308c\u3067\uff0crcll-get-started \u306esetup.sh\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff0e<br \/>\n\u305f\u3060\u3057\uff0c\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067\u65b0\u305f\u306a\u30b3\u30de\u30f3\u30c9\uff08rc_start\u3084rc_stop\u306a\u3069\uff09\u306f\u4f7f\u3048\u307e\u305b\u3093\u306e\u3067\uff0c\u5fc5\u8981\u306a\u30b3\u30de\u30f3\u30c9\u306flocal_setup.sh \u306b\u66f8\u304f\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncd ~\/git\/rcll-get-started\r\n.\/setup.sh\r\n<\/pre>\n<p>\u3053\u308c\u3067\uff0c\u6700\u65b0\u306eRefBox\u3092Apple Silicon\uff08M1\u304b\u3089M4\uff09\u306eMacOS\u4e0a\u3067\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e<\/p>\n<p>\u3042\u3068\uff0cscreen\u3082\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3044\u307e\u3059\u304c\uff0cscreen -r\u3092\u3059\u308c\u3070Docker\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\uff0e<br \/>\n\u505c\u6b62\u306f\uff0c\u300cCtrl+C\u300d\u3092\u4e8c\u56de\u62bc\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\uff0cdocker\u305d\u306e\u3082\u306e\u3092\u505c\u6b62\u3057\u3066\u3044\u306a\u3044\u306e\u3067\uff0c<br \/>\n\u5b9f\u969b\u306b\u6b62\u3081\u308b\u306b\u306f\uff0cDocker Desktop\u306e\u30a2\u30d7\u30ea\u4e0a\u3067\u6b62\u3081\u3066\u304f\u3060\u3055\u3044\uff0e<br \/>\n\uff08\u3080\u3057\u308d\uff0c\u305d\u3053\u3067\u6b62\u3081\u306a\u3044\u3068\u305a\u3063\u3068\u52d5\u3044\u305f\u307e\u307e\u306b\u306a\u308a\uff0c\u518d\u5ea6setup.sh\u3092\u5b9f\u884c\u3057\u305f\u3089\u4e8c\u91cd\u8d77\u52d5\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff09<\/p>\n<hr>\n<p>\u4ee5\u4e0b\uff0c\u30d1\u30c3\u30c1\u306e\u4e2d\u8eab\u306e\u89e3\u8aac\u3067\u3059\uff0e<br \/>\n\u25a0\u524a\u9664<br \/>\ncompose_files\/mongodb.yaml \u3092\u524a\u9664\u3057\u307e\u3059\uff08\u2190\u534a\u5206\u529b\u6280\u3067\u306e\u5bfe\u5fdc\u65b9\u6cd5\u3067\u7533\u3057\u8a33\u306a\u3044\u3067\u3059\uff09<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nrm compose_files\/mongodb_yaml\r\n<\/pre>\n<p>\u25a0\u4fee\u6b63<br \/>\n\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u4fee\u6b63\u3057\u307e\u3059\uff0e<br \/>\n\u30fbcompose_files\/refbox.yaml \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\uff0e<br \/>\nservices: \u306e\u7d9a\u304d\u306bmongodb\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n services:\r\n  mongodb:\r\n    container_name: &quot;mongodb&quot;\r\n    # network_mode: &quot;host&quot;\r\n    image: ${MONGODB_IMAGE}:${MONGODB_TAG}\r\n    restart: &quot;no&quot;\r\n    command: mongod --port ${RC_MONGODB_PORT}\r\n    volumes:\r\n      - '${RC_MONGODB_DATA_DIR}:\/data:z'\r\n<\/pre>\n<p>mongodb-check: \u306e\u90e8\u5206\u306enetwork_mode\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\uff0cmongodb\u3078\u306e\u4f9d\u5b58\u6027\u3092\u8ffd\u8a18\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n   mongodb-check:\r\n     container_name: mongodb-check\r\n     image: ${MONGODB_IMAGE}:${MONGODB_TAG}\r\n    # network_mode: &quot;host&quot;\r\n    depends_on:\r\n      - mongodb\r\n     restart: on-failure:10\r\n<\/pre>\n<p>refbox: \u306e\u90e8\u5206\u306enetwork_mode\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\uff0c\u30dd\u30fc\u30c8\u306e\u60c5\u5831\u3092\u8ffd\u8a18\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n   refbox:\r\n     container_name: refbox\r\n     image: &quot;${REFBOX_IMAGE}:${REFBOX_TAG}&quot;\r\n    # network_mode: &quot;host&quot;\r\n    ports:\r\n      - 1234:1234\r\n     depends_on:\r\n       mongodb-check:\r\n         condition: service_completed_successfully\r\n<\/pre>\n<p>\u30fbconfig\/refbox\/comm\/default_comm.yaml \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\uff08\u3053\u308c\u306f\uff0c\u624b\u5143\u3067\u52d5\u304b\u3059\u305f\u3081\u306a\u306e\u3067\uff0cMac\u95a2\u4fc2\u306a\u304f\uff0c\u666e\u6bb5\u3082\u5909\u66f4\u3059\u308b\u90e8\u5206\u3067\u3059\uff09<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n     # Do not specify both!\r\n     public-peer:\r\n       # host: !ipv4 192.168.122.255\r\n       # host: !ipv4 172.26.255.255\r\n       host: !ipv4 127.0.0.1\r\n       # port: !udp-port 4444\r\n       send-port: !udp-port 4444\r\n       recv-port: !udp-port 4445\r\n \r\n     cyan-peer:\r\n       # host: !ipv4 192.168.122.255\r\n       # host: !ipv4 172.26.255.255\r\n       host: !ipv4 127.0.0.1\r\n       # port: !udp-port 4441\r\n       send-port: !udp-port 4441\r\n       recv-port: !udp-port 4446\r\n \r\n     magenta-peer:\r\n       # host: !ipv4 192.168.122.255\r\n       # host: !ipv4 172.26.255.255\r\n       host: !ipv4 127.0.0.1\r\n       # port: !udp-port 4442\r\n       send-port: !udp-port 4442\r\n       recv-port: !udp-port 4447\r\n<\/pre>\n<p>\u30fbconfig\/refbox\/mongodb\/default_mongodb.yaml\u3000\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\uff0e<br \/>\nMONGODB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30927.0\u304b\u3089latest\u306b\u3057\u307e\u3057\u305f\uff087.0\u3067\u306a\u305c\u52d5\u304b\u306a\u3044\u306e\u304b\u306f\u4e0d\u660e\u2026\uff09\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n export MONGODB_BACKEND_TAG=latest\r\n export MONGODB_TAG=latest\r\n<\/pre>\n<p>docker-compose\u30b3\u30de\u30f3\u30c9\u306f\u306a\u304f\u306a\u3063\u305f\u306e\u3067\uff0ccompose\u30aa\u30d7\u30b7\u30e7\u30f3\u3078\u3068\u5909\u66f4\u3057\u307e\u3059\uff08\u3053\u3053\u306e\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u91cd\u8981\uff01\uff09<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n # compose command (change in case you use alternative tools like podman\r\nexport REFBOX_COMPOSE_COMMAND=&quot;docker compose&quot;\r\n<\/pre>\n<p>\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n export RC_MONGODB_PORT=27017\r\n export RC_MONGODB_HOST=mongodb\r\n export RC_MONGODB_URI=mongodb:\/\/${RC_MONGODB_HOST}:${RC_MONGODB_PORT}\r\n<\/pre>\n<p>\u3053\u308c\u3067\u52d5\u304f\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\uff0e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u3067RefBox \u2013 \u305d\u306e2\u306e\u307e\u3068\u3081\u3067\u3059\uff0e \u25a0\u6e96\u5099 \u307e\u305a\uff0cgit\u30c7\u30a3\u30ec\u30af\u30c8\u30ea &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.kdel.org\/wp\/?p=3890\"> <span class=\"screen-reader-text\">Mac\u3067RefBox\uff08\u307e\u3068\u3081\uff09<\/span> \u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[3,40,2],"tags":[],"class_list":["post-3890","post","type-post","status-publish","format-standard","hentry","category-logistics-league","category-refbox","category-robocup"],"_links":{"self":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3890"}],"version-history":[{"count":4,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3890\/revisions"}],"predecessor-version":[{"id":3895,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3890\/revisions\/3895"}],"wp:attachment":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}