Docker with C/C++ toolchain

Answered

Hello,

 

I'm trying to figure out a setting under clion with docker toolchain. How shoud I set up a toolchain which resides within my docker file?

 

Thanks.

1
5 comments

Hi, Peter.

Currently you can only deploy applications inside containers (the Docker integration plugin should be installed). Here is the related web-help article: https://www.jetbrains.com/help/clion/docker.html.

Unfortunately, for now there is no possibility to build within a Docker container. We are planning to add the ability to work remotely with source files (remote projects support) in the future, feel free to comment or upvote the corresponding issue - https://youtrack.jetbrains.com/issue/CPP-744. We are working on this functionality right now, but I can't give you any ETA. Please follow the issue to get updates.

Or you can try running CLion in Docker container (for example, here the user shares experience).

0

the reason for this request is cross-compiling for embedded device, so I have docker file SDK toolchain and I would like to build up for that remote envirment ...

0
Avatar
Permanently deleted user

Yes, why not make Docker Toolchain, for example, to macOS in a similar way as it is done under Windows (WSL Toolchain).

Under Windows, CLion is very cosily to use. All the necessary build and debugging tools (cmake, gcc, boost and other libraries) can be installed inside a virtual machine (for example, Ubuntu) and build, debug, and run inside the environment as close as possible to the production environment.

Why not do something similar for macOS?

0

Sergey, feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-13751 and see the comments. 

Note that in CLion 2018.3 EAP we've introduced initial remote development support. Windows, Linux and macOS are supported for local machine, remote host is limited to Linux for now.

0

I have managed to execute clion in a docker environment following the instructions from:

 

https://stackoverflow.com/questions/27626679/how-to-tunnel-a-docker-x-windows-to-a-remote-host/56688392#56688392

 

you will have to add a volume to the location where clion is installed.

0

Please sign in to leave a comment.