Compare commits

...

7 Commits

3 changed files with 51 additions and 27 deletions

17
.devcontainer/DockerFile Normal file
View File

@@ -0,0 +1,17 @@
FROM espressif/idf:release-v5.5
RUN apt-get update && \
apt-get install -y \
udev \
nodejs \
containerd \
ripgrep \
fd-find \
git \
curl \
zsh && \
usermod -aG dialout ubuntu && \
chsh -s /bin/zsh ubuntu
# check the default user for this in the future
USER ubuntu
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && echo "source /opt/esp/entrypoint.sh" | tee -a /home/ubuntu/.zshrc

View File

@@ -1,28 +1,35 @@
{ {
"name": "ESP-IDF Dev Environment", "name": "ESP-IDF Dev Environment",
"image": "espressif/idf:release-v5.5", // Actualizado "build": {
"dockerfile": "DockerFile"
},
"remoteUser": "ubuntu",
"features": {
"ghcr.io/duduribeiro/devcontainer-features/neovim:1": {
"version": "stable"
}
},
"customizations": { "customizations": {
"vscode": { "vscode": {
"settings": { "settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"idf.espIdfPath": "/opt/esp/idf", "idf.espIdfPath": "/opt/esp/idf",
"idf.toolsPath": "/opt/esp", "idf.toolsPath": "/opt/esp",
"idf.gitPath": "/usr/bin/git", "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" "idf.pythonBinPath": "/usr/bin/python3"
}, },
"extensions": [ "extensions": [
"ms-vscode.cpptools", "ms-vscode.cpptools",
"espressif.esp-idf-extension" "espressif.esp-idf-extension",
"ms-vscode.cpptools-extension-pack"
] ]
} }
}, },
"mounts": [
"source=${env:HOME}/.config/nvim,target=/home/ubuntu/.config/nvim,type=bind"
],
"runArgs": [ "runArgs": [
"--privileged", "--privileged",
"-v", "/dev:/dev" "-v",
], "/dev:/dev"
"remoteUser": "root" ]
} }

0
tests/.gitkeep Normal file
View File