Skip to content

Commit

Permalink
add devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein committed Nov 12, 2024
1 parent c5521c7 commit b47b147
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bootloader/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:22.04
LABEL authors="Clemens Elflein"

RUN apt-get update && apt-get install -y \
gcc-arm-none-eabi \
cmake \
make \
&& rm -rf /var/lib/apt/lists/*


31 changes: 31 additions & 0 deletions bootloader/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"xaver.clang-format",
"twxs.cmake",
"ms-vscode.cmake-tools",
"marus25.cortex-debug",
"mcu-debug.debug-tracker-vscode",
"mcu-debug.memory-view",
"mcu-debug.peripheral-viewer",
"mcu-debug.rtos-views",
"ms-vscode.cpptools-themes"
]
}
},
"runArgs": [
"--network=host"
],
"forwardPorts": [
3000
],
"mounts": [
"source=${localWorkspaceFolderBasename}-build,target=${containerWorkspaceFolder}/build,type=volume"
]
}

0 comments on commit b47b147

Please sign in to comment.