-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Improve devcontainer file structure (#2854)
1 parent
3566af2
commit 641cd9e
Showing
24 changed files
with
251 additions
and
57 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
10 changes: 2 additions & 8 deletions
10
.devcontainer/devcontainer.json → .devcontainer/All/devcontainer.json
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "nanoFramework-AzureRTOS", | ||
// If you prefer, you can use the source files and adjust them where they are located, | ||
// To do this, change the "dockerFile" to use 'Dockerfile.AzureRTOS.SRC'. | ||
// This will allow you to customize and build the container source and add anything you may need on top. | ||
"dockerFile": "Dockerfile.AzureRTOS", | ||
"context": ".", | ||
"mounts": [ | ||
// Bind the Unix socket the Docker daemon listens on by default | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", | ||
// Keep command history | ||
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume", | ||
// OPTIONAL: Mount .azure folder for seamless az cli auth | ||
// "source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind" | ||
], | ||
// Set the *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"cmake.preferredGenerators": [ | ||
"Ninja" | ||
], | ||
"cmake.generator": "Ninja", | ||
"cmake.autoRestartBuild" : true, | ||
"cmake.configureSettings": { | ||
"CMAKE_MAKE_PROGRAM":"/usr/bin/ninja" | ||
}, | ||
"cmake.configureOnOpen": false | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-vsliveshare.vsliveshare-pack", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"ms-vscode.cmake-tools", | ||
"xaver.clang-format" | ||
] | ||
} | ||
} | ||
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers | ||
// "postAttachCommand": "/usr/local/git-pull-repos.sh" | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "terraform --version", | ||
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. | ||
// ,"remoteUser": "vscode" | ||
} |
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "nanoFramework-ChibiOS", | ||
// Adjust this file to choose the platform you want using the prebuild containers: | ||
// To do this, change the "dockerFile" to use 'Dockerfile.ChibiOS.SRC'. | ||
// This will allow you to customize and build the container source and add anything you may need on top. | ||
"dockerFile": "Dockerfile.ChibiOS", | ||
"context": ".", | ||
"mounts": [ | ||
// Bind the Unix socket the Docker daemon listens on by default | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", | ||
// Keep command history | ||
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume", | ||
// OPTIONAL: Mount .azure folder for seamless az cli auth | ||
// "source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind" | ||
], | ||
// Set the *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"cmake.preferredGenerators": [ | ||
"Ninja" | ||
], | ||
"cmake.generator": "Ninja", | ||
"cmake.autoRestartBuild" : true, | ||
"cmake.configureSettings": { | ||
"CMAKE_MAKE_PROGRAM":"/usr/bin/ninja" | ||
}, | ||
"cmake.configureOnOpen": false | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-vsliveshare.vsliveshare-pack", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"ms-vscode.cmake-tools", | ||
"xaver.clang-format" | ||
] | ||
} | ||
} | ||
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers | ||
// "postAttachCommand": "/usr/local/git-pull-repos.sh" | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "terraform --version", | ||
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. | ||
// ,"remoteUser": "vscode" | ||
} |
2 changes: 1 addition & 1 deletion
2
.devcontainer/Dockerfile.ESP32 → .devcontainer/ESP32/Dockerfile.ESP32
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
FROM ghcr.io/nanoframework/dev-container-esp32:v2.28 | ||
FROM ghcr.io/nanoframework/dev-container-esp32:v2.28 |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "nanoFramework-ESP32", | ||
// Adjust this file to choose the platform you want using the prebuild containers: | ||
// To do this, change the "dockerFile" to use 'Dockerfile.ESP32.SRC'. | ||
// This will allow you to customize and build the container source and add anything you may need on top. | ||
"dockerFile": "Dockerfile.ESP32", | ||
"context": ".", | ||
"mounts": [ | ||
// Bind the Unix socket the Docker daemon listens on by default | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", | ||
// Keep command history | ||
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume", | ||
// OPTIONAL: Mount .azure folder for seamless az cli auth | ||
// "source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind" | ||
], | ||
// Set the *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"cmake.preferredGenerators": [ | ||
"Ninja" | ||
], | ||
"cmake.generator": "Ninja", | ||
"cmake.autoRestartBuild" : true, | ||
"cmake.configureSettings": { | ||
"CMAKE_MAKE_PROGRAM":"/usr/bin/ninja" | ||
}, | ||
"cmake.configureOnOpen": false | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-vsliveshare.vsliveshare-pack", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"ms-vscode.cmake-tools", | ||
"xaver.clang-format" | ||
] | ||
} | ||
} | ||
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers | ||
// "postAttachCommand": "/usr/local/git-pull-repos.sh" | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "terraform --version", | ||
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. | ||
// ,"remoteUser": "vscode" | ||
} |
This file contains 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
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "nanoFramework-TI", | ||
// Adjust this file to choose the platform you want using the prebuild containers: | ||
// To do this, change the "dockerFile" to use 'Dockerfile.TI.SRC'. | ||
// This will allow you to customize and build the container source and add anything you may need on top. | ||
"dockerFile": "Dockerfile.TI", | ||
"context": ".", | ||
"mounts": [ | ||
// Bind the Unix socket the Docker daemon listens on by default | ||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", | ||
// Keep command history | ||
"source=nano-bashhistory,target=/home/vscode/commandhistory,type=volume", | ||
// OPTIONAL: Mount .azure folder for seamless az cli auth | ||
// "source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind" | ||
], | ||
// Set the *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"cmake.preferredGenerators": [ | ||
"Ninja" | ||
], | ||
"cmake.generator": "Ninja", | ||
"cmake.autoRestartBuild" : true, | ||
"cmake.configureSettings": { | ||
"CMAKE_MAKE_PROGRAM":"/usr/bin/ninja" | ||
}, | ||
"cmake.configureOnOpen": false | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-vsliveshare.vsliveshare-pack", | ||
"streetsidesoftware.code-spell-checker", | ||
"twxs.cmake", | ||
"ms-vscode.cmake-tools", | ||
"xaver.clang-format" | ||
] | ||
} | ||
} | ||
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers | ||
// "postAttachCommand": "/usr/local/git-pull-repos.sh" | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "terraform --version", | ||
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root. | ||
// ,"remoteUser": "vscode" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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