CLion in docker: sharing settings among containers

已回答

I'm trying to run CLion inside docker container with CentOS 8. GUI is displayed on Windows by VcXsrv. I'm testing this configuration because CLion doesn't support mounted project folders inside docker containers and I don't like ssh sync for several reasons.

When I work on multiple projects simultaneously, I start multiple docker containers with CLion for different project folders. By default, CLion processes are isolated from each other, including network.

The question is how to share global CLion settings among running containers? When I change something in one CLion window, I'd like others to pick it up.

One option is to mount the same named volume with CLion settings folder(s) to all containers, CLion processes will have access to shared files but I'm afraid the files may be corrupted by simultaneous writes from different CLion processes that don't know about each other.

Another option is to use the IDE Settings Sync plugin. It seems safer but I don't know how fast it works.

Are there any other options? What do you recommend?

1

Hello!

We do not recommend using shared network folder for the system directory containing CLion cache.

User-defined IDE settings are located in a different directory - in the configuration directory. You can try sharing it, it might be ok. 

But the safest way is to use the IDE Settings Sync plugin.

0

请先登录再写评论。