Docker Integration with CLion


I'm doing some C++ development in a codebase that uses that has dependencies on some pre-compiled binaries on CentOS 6. As such, the development is taking place in a Docker container. I would very much like to be able to use CLion to edit and update the code within the Docker container, but see no way to do that. I have the Docker plugin installed, but, as far as I can tell, it doesn't really do anything. The only place where I even see Docker mentioned in CLion is in Docker Registry under Build, Execution, and Deployment. When I click '+', as instructed, nothing happens. See below for the screen I'm talking about:
Screen Shot 2015-11-09 at 15.04.37.png

I did find this blog entry, but it doesn't seem to be relevant to CLion. Basically, I want to be able to develop the C++ code inside a preexisting docker container using CLion, then update the image accordingly with changes. Is this possible with CLion?

FWIW, I'm running OSX 10.11.1 and CLion 1.2.

Any help will be much appreciated.

Comment actions Permalink

Hi Jonathan.

Sorry for the inconvenience!
CLion doesn't support Docker Integration plugin yet. I've created the issue in the tracker: Feel free to comment or upvote.

Comment actions Permalink

Hello, I am evaluating CLion, and have a question that I believe is related to this post and the related youtrack issue.

When building a c++ project, I would like to build within a docker container. That container will all related dependencies (compiler, libraries, etc.) and the build product will be written to a shared file system.

This will be for the purpose of deploying the build product in a container.

Ideally, the build product would then be remote debuggable when running the container.

From reading various articles, the missing piece appears to be building the c++ project in the container (please correct if wrong). 

Thank you for any assistance!



Comment actions Permalink

Hi, Eric! We are planning to add the ability to work remotely with source files (remote projects support) in the future, please feel free to comment or upvote the corresponding issue in out tracker: Some works in this direction are in our plans for CLion 2018.1 (please see our roadmap).


Please sign in to leave a comment.