1
0
mirror of https://github.com/halleysfifthinc/Toyota-AVC-LAN synced 2025-06-07 07:56:21 +00:00

Setup Dev Containers for VS Code (easy toolchain/build setup)

This commit is contained in:
Allen Hill 2023-08-21 20:08:04 -04:00
parent 522fb41290
commit 5559f38a51
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "AVR toolchain",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.18",
"features": {},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// 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": "bash scripts/install-toolchain.sh",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"ms-vscode.makefile-tools"
]
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
// "runArgs": [
// "--device='class/86E0D1E0-8089-11D0-9CE4-08003E301F73'"
// ]
}

View File

@ -0,0 +1 @@
sudo apk --no-cache add make cmake avrdude avr-libc gcc-avr