Docker deployment for cpp codespace.
Set up the docker by:
$ ./workspace-docker.sh
The current directory is mounted on /work
/work # ls
Dockerfile README.md src
LICENSE compile.sh workspace-docker.sh
- Edit in
src
vi src/main.cpp
- Run
compile.sh
./compile.sh
Get the executable binary file:
main
- Execute
./main
Hello Binacs!
Files I/O.