Created
June 21, 2018 14:17
-
-
Save aharonamir/2ad5a10e96161d8b6de164089b69c857 to your computer and use it in GitHub Desktop.
vscode tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "start develop env", | |
"type": "shell", | |
"command": "docker-compose -f develop-compose.yml run --service-ports --name devenv dev-image bash", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "stop develop env", | |
"type": "shell", | |
"command": "docker-compose -f develop-compose.yml down", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "cmake generate", | |
"type": "shell", | |
"command": "docker exec -it devenv cmake .", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "build", | |
"type": "shell", | |
// Make this the default build command. | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"command": "docker exec -it devenv make", | |
"problemMatcher": [ | |
"$gcc" | |
] | |
}, | |
{ | |
"label": "clean", | |
"type": "shell", | |
"command": "docker exec -it devenv make clean", | |
"problemMatcher": [ | |
"$gcc" | |
] | |
}, | |
{ | |
"label": "make package", | |
"type": "shell", | |
"command": "docker exec -it devenv make package", | |
}, | |
{ | |
"label": "start-gdbserver", | |
"type": "shell", | |
// not using -it so that it can be a preLaunchTask | |
"command": "docker exec -d devenv gdbserver :2000 build/bin/your_app", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "build develop image", | |
"type": "shell", | |
// not using -it so that it can be a preLaunchTask | |
"command": "docker build -f Dockerfile.develop -t your-company/your-project/develop .", | |
"problemMatcher": [] | |
}, | |
{ | |
// running without debugging | |
"label": "run app", | |
"type": "shell", | |
// not using -it so that it can be a preLaunchTask | |
"command": "docker exec -d devenv build/bin/your_app", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "stop app", | |
"type": "shell", | |
// not using -it so that it can be a preLaunchTask | |
"command": "docker exec -d devenv pkill your_app", | |
"problemMatcher": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment