# Runtime ## 命令行 ```shell # 创建环境 /openhands/micromamba/bin/micromamba create --prefix ./myenv python=3.12 ``` ## 构建自己的 Runtime 镜像 ```shell sudo docker build -t all-hands-code-server:0.16-nikolaik . ``` ## 修改自己的 Runtime 镜像 ### 修改源文件 ```shell MOUNT_REPO=/home/mrh/program/openhands/OpenHands;APP_REPO=/openhands/code;dk rm -f csruntime; dk run --name csruntime -it -v ${MOUNT_REPO}:${MOUNT_REPO} -e MOUNT_REPO=${MOUNT_REPO} -e APP_REPO=${APP_REPO} all-hands-code-server:0.16-nikolaik bash cp ${MOUNT_REPO}/openhands/runtime/plugins/vscode/__init__.py ${APP_REPO}/openhands/runtime/plugins/vscode/__init__.py exit docker exec -it csruntime bash # 提交并覆盖 docker commit csruntime all-hands-code-server:0.16-nikolaik ``` ## code-server ```shell # 插件路径 file:///home/openhands/.local/share/code-server/extensions ```