diff mbox series

[3/3,V2] VSCode : Add Docker Integration

Message ID 20240405140250.3230-1-ayoub.zaki@embetrix.com
State New
Delegated to: Stefano Babic
Headers show
Series None | expand

Commit Message

Ayoub Zaki April 5, 2024, 2:02 p.m. UTC
Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com>
---
 .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++
 .vscode/extensions.json         | 10 ++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 .devcontainer/devcontainer.json
 create mode 100644 .vscode/extensions.json
diff mbox series

Patch

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..be3c498
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,29 @@ 
+{
+	"name": "swupdate-docker",
+	"build": {
+		"dockerfile": "../Dockerfile"
+	},
+
+	"customizations": {
+		"vscode": {
+			"settings": {
+				"terminal.integrated.profiles.linux": {
+					"bash": {
+					  "path": "/bin/bash",
+					  "args": ["-l"]
+					}
+				},
+				"terminal.integrated.defaultProfile.linux": "bash"
+			},
+			"extensions": [
+				"ms-vscode.cpptools",
+				"eamodio.gitlens"
+			]
+		}
+	},
+
+	// Map the host .ssh folder into the container for a seamless ssh experience
+	"mounts": [
+		"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/swupdate/.ssh,type=bind,consistency=cached"
+	]
+}
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 0000000..84a8af4
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,10 @@ 
+{
+	"recommendations": [
+                "ms-vscode-remote.remote-containers",
+                "ms-vscode-remote.remote-wsl",
+                "ms-vscode-remote.vscode-remote-extensionpack",
+                "ms-vscode.cpptools-extension-pack",
+                "ms-vscode.cpptools",
+                "eamodio.gitlens",
+	]
+}
\ No newline at end of file