diff mbox series

[3/3] VSCode : Add Docker Integration

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

Commit Message

Ayoub Zaki April 5, 2024, 1:59 p.m. UTC
Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com>
---
 .devcontainer/Dockerfile        |  1 +
 .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++
 .vscode/extensions.json         | 10 ++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 .devcontainer/Dockerfile
 create mode 100644 .devcontainer/devcontainer.json
 create mode 100644 .vscode/extensions.json

Comments

ayoub...@googlemail.com April 5, 2024, 2:01 p.m. UTC | #1
Please ignore this one, I will send a V2

On Friday, April 5, 2024 at 3:59:27 PM UTC+2 Ayoub Zaki wrote:

> Signed-off-by: Ayoub Zaki <ayoub...@embetrix.com>
> ---
> .devcontainer/Dockerfile | 1 +
> .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++
> .vscode/extensions.json | 10 ++++++++++
> 3 files changed, 40 insertions(+)
> create mode 100644 .devcontainer/Dockerfile
> create mode 100644 .devcontainer/devcontainer.json
> create mode 100644 .vscode/extensions.json
>
> diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
> new file mode 100644
> index 0000000..d20fa5b
> --- /dev/null
> +++ b/.devcontainer/Dockerfile
> @@ -0,0 +1 @@
> +FROM embetrix/ozyx-yocto-sdk:0.3.0
> 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
> -- 
> 2.34.1
>
>
diff mbox series

Patch

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000..d20fa5b
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1 @@ 
+FROM embetrix/ozyx-yocto-sdk:0.3.0
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