diff mbox series

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

Message ID 20240405140250.3230-1-ayoub.zaki@embetrix.com
State Superseded
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

Comments

Ayoub Zaki Nov. 29, 2024, 1:25 p.m. UTC | #1
Hello Stefano,

is still interest of having VScode Docker Integration into Swupdate ?

I reworked those patches again to include native and cross-compilation for 
armhf and arm64 targets.

Best regards,
Ayoub

On Friday, April 5, 2024 at 4:02:57 PM UTC+2 Ayoub Zaki wrote:

> Signed-off-by: Ayoub Zaki <ayoub...@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 --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
>
>
Stefano Babic Nov. 29, 2024, 1:36 p.m. UTC | #2
Hi Ayoub,

On 11/29/24 14:25, 'ayoub...@googlemail.com' via swupdate wrote:
> Hello Stefano,
>
> is still interest of having VScode Docker Integration into Swupdate ?


Nothing against, and it could be helpful for someone. If I remember well
there were some open points (sorry, I do not remember anymnore..)

>
> I reworked those patches again to include native and cross-compilation
> for armhf and arm64 targets.

Ok - just post them, thanks !

Regards,
Stefano

>
> Best regards,
> Ayoub
>
> On Friday, April 5, 2024 at 4:02:57 PM UTC+2 Ayoub Zaki wrote:
>
>     Signed-off-by: Ayoub Zaki <ayoub...@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 --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
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+unsubscribe@googlegroups.com
> <mailto:swupdate+unsubscribe@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> swupdate/34a7b72a-8c50-4436-a5ac-32045bf5ef27n%40googlegroups.com
> <https://groups.google.com/d/msgid/swupdate/34a7b72a-8c50-4436-
> a5ac-32045bf5ef27n%40googlegroups.com?utm_medium=email&utm_source=footer>.
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