Remote Docker Toolchain

Answered

Hi,

I am using a remote server to build and deploy my code since the server offers some CPU extensions I need. However, the remote server's operating system does not support the compilers I need to build my code. That's why I set up a docker container with everything I need to compile and build my project fully.

Is it possible to connect to the docker container running on the remote server from my local machine using CLions remote deployment toolchain?
As far as I can tell, the description provided here (https://blog.jetbrains.com/clion/2020/01/using-docker-with-clion/#using-the-remote-development-workflow-with-docker) does "only" cover connecting to a local docker container.

Best regards,

Johannes

1 comment
Comment actions Permalink

The user also contacted us via email, here is my reply:

You can try to connect to the docker container using port forwarding through a jump server (your PC -> remote server -> docker container). In order to do this you need to setup your .ssh/config file to allow this using ProxyCommand and then in CLion create a remote toolchain (https://www.jetbrains.com/help/clion/remote-projects-support.html#remote-toolchain) with the "OpenSSH config and authentication agent" authentication type. OpenSSH config with ProxyCommand directive is supported, so it should work.

0

Please sign in to leave a comment.