{"id":152880,"date":"2020-09-08T03:41:44","date_gmt":"2020-09-07T19:41:44","guid":{"rendered":"http:\/\/4563.org\/?p=152880"},"modified":"2020-09-08T03:41:44","modified_gmt":"2020-09-07T19:41:44","slug":"%e5%88%9a%e5%88%9a%e6%8b%bf%e5%88%b0%e4%ba%86-github-codespaces-%e7%9a%84-beta-%e6%b5%8b%e8%af%95%e8%b5%84%e6%a0%bc","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=152880","title":{"rendered":"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zrp1994 <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7b80\u5355\u8bf4\u4e0b\u914d\u7f6e\uff1a<\/p>\n<ul>\n<li>\n<p>CPU\uff1a2x Xeon 8168 @ 2.70 GHz \u8f7b\u5ea6\u5f00\u53d1\u591f\u7528\uff0c\u8981\u662f\u7f16\u8bd1\u4ec0\u4e48\u7a0d\u5fae\u590d\u6742\u4e00\u70b9\u7684\u9879\u76ee\u4f30\u8ba1\u6b47\u83dc<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f5791f3c9e65.png\" alt=\"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c\" \/><\/p>\n<\/li>\n<li>\n<p>\u5185\u5b58\uff1a\u4e0d\u5230 4G\uff0c\u4e5f\u662f\u52c9\u5f3a\u591f\u7528<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f5791f7b0a6c.png\" alt=\"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c\" \/><\/p>\n<\/li>\n<li>\n<p>\u786c\u76d8\uff1a64G \u5de6\u53f3<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f5791fcbe353.png\" alt=\"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c\" \/><\/p>\n<\/li>\n<li>\n<p>\u7cfb\u7edf Debian Stretch \u3002VSCode \u672c\u8eab\u53ef\u4ee5\u88c5\u63d2\u4ef6\u548c\u6362\u4e3b\u9898<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f579203a417c.png\" alt=\"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c\" \/><\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u7528\u684c\u9762\u7248\u7684 VSCode \u8fdc\u7a0b\u8fde\u63a5\u5230 GitHub Codespaces \u4e0a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f5792097a69c.png\" alt=\"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c\" \/><\/p>\n<\/li>\n<\/ul>\n<p>\u770b\u8fd9\u5957\u914d\u7f6e\u5e94\u8be5\u5c31\u662f Visual Studio Codespaces \u7684\u57fa\u7840\u7248\u4e86(Basic (2 cores, 4GB RAM, 64 GB SSD))\u3002\u76ee\u524d Beta \u9636\u6bb5\u662f\u514d\u8d39\u4f7f\u7528\u7684\uff0c\u4f46\u662f\u4e4b\u540e\u80af\u5b9a\u662f\u4ed8\u8d39\u670d\u52a1\u3002\u5e76\u4e14\u5fae\u8f6f\u4eca\u5929\u521a\u8bf4 Visual Studio Codespaces \u4f1a\u8fc1\u79fb\u5230 GitHub Codespaces\uff0c\u6240\u4ee5\u4f30\u8ba1\u4e4b\u540e\u7684\u670d\u52a1\u4ef7\u683c\u5e94\u8be5\u4f1a\u548c\u73b0\u5728\u7684\u4ef7\u683c\u4fdd\u6301\u4e00\u81f4\uff0c\u4f5c\u4e3a\u4e3b\u529b\u5f00\u53d1\u73af\u5883\u7684\u8bdd\u8fd8\u662f\u633a\u8d35\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f57920e976f4.png\" alt=\"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c\" \/> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200908_5f579212686ef.png\" alt=\"\u521a\u521a\u62ff\u5230\u4e86 GitHub Codespaces \u7684 Beta \u6d4b\u8bd5\u8d44\u683c\" \/><\/p>\n<p>\u53e6\u5916\uff0cGitHub Codespaces \u597d\u50cf\u5728 Firefox \u4e0b\u6709\u8fde\u63a5\u95ee\u9898\uff0c\u6682\u65f6\u6ca1\u6cd5\u6b63\u5e38\u4f7f\u7528\u3002\u6574\u4e2a\u73af\u5883\u5b9e\u8d28\u4e0a\u662f\u4e00\u4e2a\u6302\u8f7d\u4e86 persistent storage \u7684 docker container\uff0c\u540c\u65f6 docker \u7684 socket \u4e5f\u66b4\u9732\u51fa\u6765\u4e86\uff0c\u6240\u4ee5\u53ef\u4ee5\u5728\u5176\u4e2d\u4f7f\u7528 docker \u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3204949\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kidlj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8d5e\uff0c\u5f88\u68d2\u7684\u5206\u4eab                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204950\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kidlj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u73b0\u5728\u7279\u559c\u6b22\u7528 vscode remote\uff0c\u7ed9 mac \u7701\u4e86\u4e0d\u5c11\u5185\u5b58\uff0c\u5728\u6d4b\u8bd5\u670d\u52a1\u5668\u4e0a\u8c03\u8bd5\u4e5f\u5f88\u65b9\u4fbf\uff0c\u4e0d\u7528\u5148 commit &amp; push then pull \u8fd9\u6837\u6765\u6d4b\u8bd5\u4ee3\u7801\u3002\u56fd\u5185\u4f7f\u7528 codespace \u5ef6\u8fdf\u6709\u4e9b\u9ad8\u5427\uff1f\u9700\u8981\u4f7f\u7528\u4ee3\u7406\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204951\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zrp1994 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @kidlj \u53ef\u80fd\u8fd8\u662f\u770b\u5730\u533a\u548c\u8fd0\u8425\u5546\uff0c\u4e0d\u8fc7\u80cc\u540e\u4f9d\u9760 azure \u7684\u8bdd\uff0c\u5e94\u8be5\u8fd8\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204952\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AkideLiu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4eca\u5929\u51cc\u6668\u62ff\u5230\u4e86\u8d44\u683c\uff0c\u4e0a\u53bb\u770b\u4e86\u4e00\u4e0b\u3002\u8ddf\u73b0\u5728\u7528\u7684 code-server \u533a\u522b\u4e0d\u5927\uff0c\u53ea\u662f\u66f4\u52a0\u5b8c\u7f8e\u7684\u652f\u6301\u4e86\u5fae\u8f6f\u7684\u6240\u6709\u7684 vscode \u63d2\u4ef6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204953\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : agagega <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u6536\u5230\u4e86\uff0c\u7b80\u5355\u8bd5\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0 (1) \u6ca1\u6709\u81ea\u5e26 cmake\uff0c\u53ef\u4ee5\u81ea\u5df1\u7528 apt \u5b89\u88c5\u5417\uff1f(2) \u5982\u679c\u6709\u524d\u7aef\u9879\u76ee\u60f3\u9884\u89c8\u600e\u4e48\u529e\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204954\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hwdef <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u8bd5\u8bd5 vscode online \u3002\u611f\u89c9\u8fd8\u4e0d\u9519\uff0c\uff0c\u4e4b\u524d\u5f88\u6d41\u7545\uff0c\uff0c\u7528\u4e86\u4e00\u6bb5\u65f6\u95f4\u4e4b\u540e\u89c9\u5f97\u53d8\u5361\u4e86\uff0c\uff0c\u4e0d\u77e5\u9053\u600e\u4e48\u56de\u4e8b\u3002\u3002\u4ece github pull \u4ee3\u7801 30mb\/s                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204955\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zrp1994 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @agagega \u6709 sudo\uff0c\u53ef\u4ee5 apt \u5b89\u88c5\u3002HTTP \u53ef\u4ee5\u901a\u8fc7\u7aef\u53e3\u8f6c\u53d1\u6765\u9884\u89c8\uff1a https:\/\/docs.github.com\/en\/github\/developing-online-with-codespaces\/developing-in-a-codespace#forwarding-ports                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204956\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zrp1994 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hwdef VSCode Online \u5c31\u662f Visual Studio Codespaces\uff0c\u4e5f\u5c31\u662f\u5c06\u6765\u7684 GitHub Codespaces \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3204957\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hwdef <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zrp1994 <\/p>\n<p>\u81f3\u5c11\u76ee\u524d\u4e3a\u6b62 vscode codespaces \u8ddf github codespaces \u8fd8\u662f\u6709\u533a\u522b\u7684\u3002\u3002\u3002github codespaces \u5173\u6ce8\u67d0\u4e00\u4e2a\u9879\u76ee\uff0c\uff0cvscode codespaces \u5c31\u4e0d\u5173\u6ce8\u9879\u76ee\u4e86\uff0c\u53ea\u662f\u4e00\u4e2a\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<p>\u4e0d\u8fc7\u4eca\u5929\u5fae\u8f6f\u5df2\u7ecf\u8bf4\u8981\u5173\u95ed vscode codespaces \u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u521a\u521a\u62ff\u5230\u4e86 GitHub Code&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152880"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152880"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/152880\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152880"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}