Damon's Blog
  • Damon's Blog
  • 💻Tech
    • Understand C++ Special Member Function Generation
    • Understand C++ Template Type Deduction
    • Using Windows Keymap in Mac and Intellij
    • Setup C++ Dev Env in MacOS using Docker
    • Floating-point Arithmetic
    • Java HFT Toolbox
    • Interesting Bitwise Operation
    • Python Metaclass
    • Memory Order
    • Grind 75+
      • Array
      • String
      • Matrix
      • Binary Search
      • Graph
      • Tree
      • Math
      • Hash Table
      • Recursion
      • Linked List
      • Stack
      • Heap
      • Trie
      • Dynamic Programming
      • Binary Operation
    • C++ for Java Developers
    • Typical Domain Driven Design Application Architecture
    • How to Deploy Applications in Linux Properly
    • Design Patterns with Java Examples
    • Tools for Reliability
    • MVCC in Database
    • Two Microservice Tech Stacks
    • The Difference between 127.0.0.1 and 0.0.0.0
  • âž—Math
    • Local Volatility in Terms of Implied Volatility
    • Mean and Variance of Squared Gaussian
    • A Simple Explanation of Information Gain
  • 💲Trading
    • Understanding Risk-Neutral Density Functions
    • The Deriving of Black-Scholes Equation
    • Quant Questions
  • 💎Gems
    • 2024
  • 📖Books
    • Performance Analysis and Tuning on Modern CPUs
Powered by GitBook
On this page
  • CLion Config
  • Local Setup
  • Remote Host Setup
  • Docker Setup
  • Setup in VsCode
  • Reference
  • Useful Commands

Was this helpful?

  1. Tech

Setup C++ Dev Env in MacOS using Docker

PreviousUsing Windows Keymap in Mac and IntellijNextFloating-point Arithmetic

Last updated 2 months ago

Was this helpful?

One simple CLion template to setup c++ development environment in MacOS M1 with docker.

CLion Config

Local Setup

  1. toolchain

  2. cmake

Remote Host Setup

  1. toolchain

  2. cmake

  3. deployment

Docker Setup

  1. toolchain

  2. cmake

  3. deployment

Setup in VsCode

Reference

    • 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

  1. ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[localhost]:2222"

  2. ssh <server> -o StrictHostKeyChecking=no

💻
Build a linux/c++ development environment based on docker/vscode step-by-step
Remote C++ Development with Docker and CLion (with X11)
Using Docker with CLion
Containerize a C++ application
code
The Remote GDB Server configuration
Docker toolchain
Remote with local sources
code
local toolchain
local cmake
remote toolchain
remote toolchain ssh
remote cmake
remote deployment connection
remote deployment mapping
remote deployment excludes
docker toolchain
docker cmake
docker deployment connection
docker deployment mapping