本示例以C++开发环境为例,请根据自己的需求修改配置。
This template is based on C++ development, please modify files on your demand.
docker-compose -f .devcontainer/docker-compose.yml up -d
CLion Preferences - Build, Execution, Deployment - 1. Toolchains, 2. CMake, 3. Deployment
请注意不要在Deployment选项中修改根目录,而要在路径映射中使用全路径,否则CMake会报错:Cannot create directory(见参考文献[2])。
Please notice: don't change the ROOT directory in Deployment option, use the full path of project in the Mapping option. If not, CMake will report error: Cannot create directory(See Ref.[2]).
在容器中打开此文件夹,注意:项目根目录,而非~~*.devcontainer*~~目录。
Open this folder in container. NOTICE: ROOT directory, not the .devcontainer directory.
用户名&密码: deploy
路径挂载: 当前文件夹:/home/deploy/projects/
工作路径: /home/deploy/projects/
User & pwd: deploy
Mount: /current_folder:/home/deploy/projects/
Working directory: /home/deploy/projects/