Remote Development Environment for CLion
Warning: Development continues in
invasy/dev-env
repository.
Note: CMake versions 3.21. are not supported by CLion versions up to 2021.2..
docker run -d --cap-add=sys_admin --name=clang_remote -p 127.0.0.1:22001:22 invasy/clang-remote:latest
or from git repository:
docker-compose up -d
clang-remote
/usr/local/bin/cmake
/usr/local/bin/ninja
(see also CMake below)/usr/bin/clang-13
(should be detected)/usr/bin/clang++-13
(should be detected)/usr/bin/gdb
(should be detected)127.0.0.1
22001
Password
builder
builder
-G Ninja
# ~/.ssh/config
Host clang-remote
User builder
HostName 127.0.0.1
Port 22001
HostKeyAlias clang-remote
StrictHostKeyChecking no
NoHostAuthenticationForLocalhost yes
PreferredAuthentications password
PasswordAuthentication yes
PubkeyAuthentication no
Remove old host key from ~/.ssh/known_hosts
after image rebuilding (note HostKeyAlias
in config above):
ssh-keygen -f "$HOME/.ssh/known_hosts" -R "clang-remote"
ssh clang-remote
Password: builder