Setup C++ Dev Env in MacOS using Docker
One simple CLion template to setup c++ development environment in MacOS M1 with docker.
CLion Config
Local Setup
- toolchain  - local toolchain 
- cmake  - local cmake 
Remote Host Setup
- toolchain  - remote toolchain  - remote toolchain ssh 
- cmake  - remote cmake 
- deployment  - remote deployment connection  - remote deployment mapping  - remote deployment excludes 
Docker Setup
- toolchain  - docker toolchain 
- cmake  - docker cmake 
- deployment  - docker deployment connection  - docker deployment mapping 
Setup in VsCode
Build a linux/c++ development environment based on docker/vscode step-by-step
Reference
- Remote C++ Development with Docker and CLion (with X11) - This blog shared some code for building the base docker image, while its targeting of X11 make the whole thing much more complicated than what I want here. 
 
- It shares the latest configuration in Clion for remote development with local sources. 
 
- resync header search paths 
 
 
Useful Commands
- ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[localhost]:2222"
- ssh <server> -o StrictHostKeyChecking=no
Last updated
Was this helpful?
