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:
@@ -1,7 +1,17 @@
|
|||||||
FROM espressif/idf:release-v5.5
|
FROM espressif/idf:release-v5.5
|
||||||
#instalar git, herramientas basicas y reglas udev
|
RUN apt-get update && \
|
||||||
RUN apt-get update && apt-get install -y git curl python3-pip neovim udev clangd && rm -rf /var/lib/apt/lists/*
|
apt-get install -y \
|
||||||
# Vamos a evitar usar el usuario root para todo
|
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 ubuntu
|
||||||
USER espDev
|
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
|
||||||
|
|||||||
@@ -3,10 +3,15 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"dockerfile": "DockerFile"
|
"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",
|
||||||
@@ -14,10 +19,14 @@
|
|||||||
},
|
},
|
||||||
"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",
|
"-v",
|
||||||
|
|||||||
Reference in New Issue
Block a user