feat: Updated the dockerfile and devpod json to integrate neovim better and include oh-my-zsh. Also initializes the esp tools

This commit is contained in:
2026-04-22 08:21:56 +00:00
parent 758d047627
commit a4bb72fb64
2 changed files with 26 additions and 7 deletions

View File

@@ -1,7 +1,17 @@
FROM espressif/idf:release-v5.5
#instalar git, herramientas basicas y reglas udev
RUN apt-get update && apt-get install -y git curl python3-pip neovim udev clangd && rm -rf /var/lib/apt/lists/*
# Vamos a evitar usar el usuario root para todo
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
RUN useradd -m -u 1200 -g dialout espDev
USER espDev
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

@@ -3,10 +3,15 @@
"build": {
"dockerfile": "DockerFile"
},
"remoteUser": "ubuntu",
"features": {
"ghcr.io/duduribeiro/devcontainer-features/neovim:1": {
"version": "stable"
}
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"idf.espIdfPath": "/opt/esp/idf",
"idf.toolsPath": "/opt/esp",
"idf.gitPath": "/usr/bin/git",
@@ -14,10 +19,14 @@
},
"extensions": [
"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": [
"--privileged",
"-v",