diff --git a/.gitignore b/.gitignore index 5d947ca8879f8a9072fe485c566204e3c2929e80..0ff2a3a288cef2f062b43e038b1538f2221f1ea6 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ bin-release/ # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` # should NOT be excluded as they contain compiler settings and other important # information for Eclipse / Flash Builder. + +# generated by MACOS +.DS_Store \ No newline at end of file diff --git a/anolis-courses/cloud-native/index.yaml b/anolis-courses/cloud-native/index.yaml index 17241c76102c1f277532e38dd8de209def9a71b5..fd43b08ac91fcb15186ebfbc76477a960ea68bfb 100644 --- a/anolis-courses/cloud-native/index.yaml +++ b/anolis-courses/cloud-native/index.yaml @@ -6,14 +6,16 @@ ctr => 是containerd提供的简易的命令行参数工具 crictl => 是containerd下CRI接口的命令行参数工具,用于创建与k8s类似的POD,Container等资源 如果使用过程有什么问题,欢迎加入龙蜥云原生SIG钉钉群交流或者询问:钉钉客户端群组直接搜索群号44701621 type: course -total_time: "60 min" -level: "beginner" # beginner、intermediate、advanced -chapters: - - name: "多种运行容器工具体验runD" - desc: "学习使用nerdctl,ctr,crictl工具运行runD" - content: "running_runD" - live_time: "30 min" - - name: "编译Rust版本RunD并体验结果" - desc: "熟悉Rust语言,并修改runD代码,编译并查看运行结果" - content: "compile_runD" - live_time: "30 min" +total_time: 60 min +level: beginner +chapters: + - name: 编译Rust版本RunD并体验结果 + desc: 体验Rust语言,并修改runD以及查看修改结果; 如果使用过程有什么问题,欢迎加入龙蜥云原生SIG钉钉群交流或者询问:群组直接搜索群号44701621 + content: + live_time: 30min - name: 多种运行容器工具体验runD + desc: 学习使用nerdctl,ctr,crictl工具运行runD; 如果使用过程有什么问题,欢迎加入龙蜥云原生SIG钉钉群交流或者询问:钉钉客户端群组直接搜索群号44701621 + content: + live_time: 30min - name: runD安全容器初体验 + desc: runD安全容器初体验; 如果使用过程有什么问题,欢迎加入龙蜥云原生SIG钉钉群交流或者询问:钉钉客户端群组直接搜索群号44701621 + content: + live_time: 30min \ No newline at end of file diff --git a/anolis-courses/cloud-native/running_runD/finish.md "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/finish.md" similarity index 100% rename from anolis-courses/cloud-native/running_runD/finish.md rename to "anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/finish.md" diff --git "a/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/index.yaml" "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/index.yaml" new file mode 100644 index 0000000000000000000000000000000000000000..306d82403fa834063443dcaea7801427e93274a7 --- /dev/null +++ "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/index.yaml" @@ -0,0 +1,16 @@ +name: runD安全容器初体验 +desc: runD安全容器初体验; 如果使用过程有什么问题,欢迎加入龙蜥云原生SIG钉钉群交流或者询问:钉钉客户端群组直接搜索群号44701621 +image: Anolis OS 8.4 ANCK 64位 +live_time: 30min +machine: x86_64-bare_metal +max_clients: 5 +details: + steps: + start: start.md + - name: 一键式部署RunD + content: step2.md + - name: 查看host内核版本 + content: step3.md + - name: 使用nerdctl运行runD + content: step4.md + finish: finish.md diff --git a/anolis-courses/cloud-native/compile_runD/start.md "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/start.md" similarity index 100% rename from anolis-courses/cloud-native/compile_runD/start.md rename to "anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/start.md" diff --git a/anolis-courses/cloud-native/compile_runD/step1.md "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step2.md" similarity index 100% rename from anolis-courses/cloud-native/compile_runD/step1.md rename to "anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step2.md" diff --git "a/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step3.md" "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step3.md" new file mode 100644 index 0000000000000000000000000000000000000000..1dcb05a3aa49bb0e85853f6b58efdb2af3e013ea --- /dev/null +++ "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step3.md" @@ -0,0 +1,2 @@ +1. 查看Host内核版本,以便于后续和runD安全容器中运行的Guest内核版本做对比 +[[ uname -a ]] diff --git "a/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step4.md" "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step4.md" new file mode 100644 index 0000000000000000000000000000000000000000..9bb16639fca8de755fd2153e5538f7b34ec2e5d9 --- /dev/null +++ "b/anolis-courses/cloud-native/runD\345\256\211\345\205\250\345\256\271\345\231\250\345\210\235\344\275\223\351\252\214/step4.md" @@ -0,0 +1,9 @@ +1. 环境已经部署上了nerdctl, 第一步是下载运行容器需要的镜像 +[[ nerdctl pull busybox ]] + +2. 直接可以使用runtime为rund来运行下载的busybox镜像,并查看内核版本 +同时可以查看当前运行的时间 +[[ time nerdctl run --runtime io.containerd.rund.v2 busybox /bin/sh -c "uname -a" ]] + +3. 此外,还可以运行qemu作为安全容器的vmm作为对比,可以看到rund启动时间会快很多 +[[ time nerdctl run --runtime io.containerd.kata-qemu.v2 busybox /bin/sh -c "uname -a" ]] diff --git "a/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/finish.md" "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/finish.md" new file mode 100644 index 0000000000000000000000000000000000000000..33ea594e70439b55cd7de5b0a52bcd4d41ff9e41 --- /dev/null +++ "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/finish.md" @@ -0,0 +1 @@ +恭喜您完成了本场景实验 diff --git a/anolis-courses/cloud-native/running_runD/index.yaml "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/index.yaml" similarity index 33% rename from anolis-courses/cloud-native/running_runD/index.yaml rename to "anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/index.yaml" index 6faeee8590949ab4e450e2bd6cbf36c0ca73cef4..983a9d02c400b354a2a0445b1fa85a4a38aeb51b 100644 --- a/anolis-courses/cloud-native/running_runD/index.yaml +++ "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/index.yaml" @@ -1,18 +1,18 @@ name: 多种运行容器工具体验runD desc: 学习使用nerdctl,ctr,crictl工具运行runD; 如果使用过程有什么问题,欢迎加入龙蜥云原生SIG钉钉群交流或者询问:钉钉客户端群组直接搜索群号44701621 -image: "Anolis OS 8.4 ANCK 64位" -live_time: "30 min" -machine: x86_64-bare_metal # cpu架构-机器规格,该字段为空,默认 x86_64-2c4g -max_clients: 1 # 最大并发使用数,不填则默认不限制 -details: - steps: - start: start.md - finish: finish.md - - name: 一键式部署RunD - content: step1.md - - name: 使用nerdctl - content: step2.md - - name: 使用ctr - content: step3.md - - name: 使用crictl - content: step4.md +image: Anolis OS 8.4 ANCK 64位 +live_time: 30min +machine: x86_64-bare_metal +max_clients: 5 +details: + steps: + finish: finish.md + start: start.md + - name: 一键式部署RunD + content: step2.md + - name: 使用nerdctl + content: step3.md + - name: 使用ctr + content: step4.md + - name: 使用crictl + content: step5.md diff --git a/anolis-courses/cloud-native/running_runD/start.md "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/start.md" similarity index 100% rename from anolis-courses/cloud-native/running_runD/start.md rename to "anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/start.md" diff --git a/anolis-courses/cloud-native/running_runD/step1.md "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step2.md" similarity index 100% rename from anolis-courses/cloud-native/running_runD/step1.md rename to "anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step2.md" diff --git a/anolis-courses/cloud-native/running_runD/step2.md "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step3.md" similarity index 100% rename from anolis-courses/cloud-native/running_runD/step2.md rename to "anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step3.md" diff --git a/anolis-courses/cloud-native/running_runD/step3.md "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step4.md" similarity index 100% rename from anolis-courses/cloud-native/running_runD/step3.md rename to "anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step4.md" diff --git a/anolis-courses/cloud-native/running_runD/step4.md "b/anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step5.md" similarity index 100% rename from anolis-courses/cloud-native/running_runD/step4.md rename to "anolis-courses/cloud-native/\345\244\232\347\247\215\350\277\220\350\241\214\345\256\271\345\231\250\345\267\245\345\205\267\344\275\223\351\252\214runD/step5.md" diff --git a/anolis-courses/cloud-native/compile_runD/finish.md "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/finish.md" similarity index 100% rename from anolis-courses/cloud-native/compile_runD/finish.md rename to "anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/finish.md" diff --git a/anolis-courses/cloud-native/compile_runD/index.yaml "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/index.yaml" similarity index 31% rename from anolis-courses/cloud-native/compile_runD/index.yaml rename to "anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/index.yaml" index 06caa47c12f569e4b71620fb0afb9df1d7f6bce5..c25bdddbf6d86292ada7831b7f27974d041bd423 100644 --- a/anolis-courses/cloud-native/compile_runD/index.yaml +++ "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/index.yaml" @@ -1,18 +1,18 @@ name: 编译Rust版本RunD并体验结果 desc: 体验Rust语言,并修改runD以及查看修改结果; 如果使用过程有什么问题,欢迎加入龙蜥云原生SIG钉钉群交流或者询问:群组直接搜索群号44701621 -image: "Anolis OS 8.4 ANCK 64位" -live_time: "30 min" -machine: x86_64-bare_metal # cpu架构-机器规格,该字段为空,默认 x86_64-2c4g -max_clients: 1 # 最大并发使用数,不填则默认不限制 -details: - steps: - start: start.md - finish: finish.md - - name: 一键式部署RunD - content: step1.md - - name: 安装git与下载代码 - content: step2.md - - name: 修改runD代码 - content: step3.md - - name: 运行查看修改的结果 - content: step4.md +image: Anolis OS 8.4 ANCK 64位 +live_time: 30min +machine: x86_64-bare_metal +max_clients: 5 +details: + steps: + finish: finish.md + start: start.md + - name: 一键式部署RunD + content: step2.md + - name: 安装git与下载代码 + content: step3.md + - name: 修改runD代码 + content: step4.md + - name: 运行查看修改的结果 + content: step5.md diff --git "a/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/start.md" "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/start.md" new file mode 100644 index 0000000000000000000000000000000000000000..69f0e2f5ba981abc39a6f62f62fbc07d99a10e5b --- /dev/null +++ "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/start.md" @@ -0,0 +1 @@ +本场景将提供一台配置了 Anolis OS 8 操作系统的裸金属服务器环境用于运行runD diff --git "a/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step2.md" "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step2.md" new file mode 100644 index 0000000000000000000000000000000000000000..3e0626358f9063ce3f9e09d515c7b02397c2ccb0 --- /dev/null +++ "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step2.md" @@ -0,0 +1,4 @@ +1. 物理机环境,或者神龙服务器环境,上面不需要安装docker,containerd,nerdctl,只需要一个干净环境即可 +运行下面的命令一键式安装与部署runD +[[ curl https://cloud-native.oss-cn-shanghai.aliyuncs.com/runtime/install-rund-nerdctl.sh -sSf | sh -s ]] +需要稍微等一会下载安装包与镜像,以及安装部署 diff --git a/anolis-courses/cloud-native/compile_runD/step2.md "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step3.md" similarity index 100% rename from anolis-courses/cloud-native/compile_runD/step2.md rename to "anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step3.md" diff --git a/anolis-courses/cloud-native/compile_runD/step3.md "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step4.md" similarity index 100% rename from anolis-courses/cloud-native/compile_runD/step3.md rename to "anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step4.md" diff --git a/anolis-courses/cloud-native/compile_runD/step4.md "b/anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step5.md" similarity index 100% rename from anolis-courses/cloud-native/compile_runD/step4.md rename to "anolis-courses/cloud-native/\347\274\226\350\257\221Rust\347\211\210\346\234\254RunD\345\271\266\344\275\223\351\252\214\347\273\223\346\236\234/step5.md"