From 2bb20bbb4f881707fb4ad6961a56337e9db731f9 Mon Sep 17 00:00:00 2001 From: Dieter Schmidt Date: Fri, 23 Sep 2022 00:00:21 +0200 Subject: [PATCH] update .gitignore & add vscode build & run tasks --- .gitignore | 3 ++- .vscode/tasks.json | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index c07f0dd..8c89acf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ printer.cfg !config/printer.cfg -.config \ No newline at end of file +.config +build \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..800c17c --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,25 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build Klipper Image", + "type": "shell", + "command": "docker build --pull --rm -f '${workspaceFolder}/klipper/Dockerfile' -t dimalo/klipper-moonraker:next ${workspaceFolder}", + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "Run Klipper Image", + "type": "shell", + "command": "docker run -it --rm --cap-add SYS_NICE dimalo/klipper-moonraker:next", + "group": { + "kind": "none", + "isDefault": true + } + } + ] +} \ No newline at end of file