-
-
Notifications
You must be signed in to change notification settings - Fork 187
Improve devcontainer file structure #2854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
networkfusion
merged 6 commits into
nanoframework:main
from
networkfusion:devcontainer-structure-2
Jan 17, 2024
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
13558eb
Move devcontainers into seperate directories
networkfusion 15fa612
Use smoketests before PR.
networkfusion fea81cc
Improve the readme.
networkfusion 789c027
Merge branch 'main' into devcontainer-structure-2
networkfusion 6c43afb
Merge branch 'main' into devcontainer-structure-2
networkfusion d0682f7
Merge branch 'main' into devcontainer-structure-2
networkfusion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.