- Build docker images
-
bash docker/docker-build.sh
-
- Run docker container
-
bash docker/docker-run.sh
-
- Enter the container
-
docker exec -it grpc_dev bash
-
- Build server
-
cd <this_repo> mkdir -p build; cd build; cmake ..; make -j8
-
- Compile grpc for python scripts
-
cd <this_repo>/script bash compile_protos.sh
-
- Run server
-
./build/src/server
-
- Add thread
-
cd <this_repo>/script python3 run_new_thread.py <any string>
-
- Stop threads
-
cd <this_repo>/script python3 stop_all_threads.py
-
- Connect to sources in the container with vscode
- Open the project in vscode with Remote-WSL mode
- Open the project in vscode with Remote-Container via Remote-WSL vscode