From a4bb72fb64fa1b4ed52d4293e766f5584eb174a9 Mon Sep 17 00:00:00 2001 From: unai_71 Date: Wed, 22 Apr 2026 08:21:56 +0000 Subject: [PATCH] feat: Updated the dockerfile and devpod json to integrate neovim better and include oh-my-zsh. Also initializes the esp tools --- .devcontainer/DockerFile | 20 +++++++++++++++----- .devcontainer/devcontainer.json | 13 +++++++++++-- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/.devcontainer/DockerFile b/.devcontainer/DockerFile index 6b63bee..3d2e027 100644 --- a/.devcontainer/DockerFile +++ b/.devcontainer/DockerFile @@ -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 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d98b747..31b2a3b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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",