Refactor devcontainer configuration to use a pre-built image and update environment settings
This commit is contained in:
@@ -1,21 +1,28 @@
|
||||
{
|
||||
"name": "ESP-IDF QEMU",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"terminal.integrated.defaultProfile.linux": "bash",
|
||||
"idf.espIdfPath": "/opt/esp/idf",
|
||||
"idf.toolsPath": "/opt/esp",
|
||||
"idf.gitPath": "/usr/bin/git"
|
||||
},
|
||||
"extensions": [
|
||||
"espressif.esp-idf-extension",
|
||||
"espressif.esp-idf-web"
|
||||
]
|
||||
}
|
||||
},
|
||||
"runArgs": ["--privileged"]
|
||||
"name": "ESP-IDF Dev Environment",
|
||||
"image": "espressif/idf:release-v5.5.2", // Actualizado
|
||||
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"settings": {
|
||||
"terminal.integrated.defaultProfile.linux": "bash",
|
||||
"idf.espIdfPath": "/opt/esp/idf",
|
||||
"idf.toolsPath": "/opt/esp",
|
||||
"idf.gitPath": "/usr/bin/git",
|
||||
// TRUCO: Usar python directamente desde el path global del contenedor
|
||||
// En la imagen oficial, el python correcto ya está en el PATH.
|
||||
// Si la extensión pide ruta absoluta, usa esta genérica:
|
||||
"idf.pythonBinPath": "/usr/bin/python3"
|
||||
},
|
||||
"extensions": [
|
||||
"ms-vscode.cpptools",
|
||||
"espressif.esp-idf-extension"
|
||||
]
|
||||
}
|
||||
},
|
||||
"runArgs": [
|
||||
"--privileged",
|
||||
"-v", "/dev:/dev"
|
||||
],
|
||||
"remoteUser": "root"
|
||||
}
|
||||
Reference in New Issue
Block a user