Clion Eap3 remote c++ project in a docker container.

已回答

Hello, 

I'm coding in c++ using Clion in a linux environment  without having any problems. When I discover docker, I started to move toward the container philosophy. 

After documenting my self on the status of the remote control of Clion and the toolchains, I figure out that the easier way is using Clion eap3 with the new feature of remote toolchain.

This is great! Exactly what I needed. But of course if I'm writing means that something didn't go well. Indeed after enter in ssh with the toolchain in my container I cannot load the CMakeList.txt located in the container from the host computer where I'm running Clion. 

I cannot load the CML.txt because I'm forced to load the path using the GUI and then I can't write the correct path of the CML.txt inside the docker container or neither load the folder with sftp.

Now I'm asking if somebody have resolve the deployment using Clion in the host computer and the environment + code + debug in the docker container.

Thanks for the time,

Best Regard

MT.

0

Hello! 

There is a detailed blog post about initial remote projects support: https://blog.jetbrains.com/clion/2018/09/initial-remote-dev-support-clion/. Among other things, it states that sources should be located originally on the local host, and CLion will synchronize them to the remote machine for you. So please copy the project sources to the host, configure settings in Settings | Build, Execution, Deployment | Toolchains and try to run/debug an application on the remote machine.

0

请先登录再写评论。