From a9f4922824159d75b95bd2ff68bf2374962bee43 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Fri, 27 Oct 2023 11:56:16 +1300 Subject: [PATCH] Devcontainer: allow pip install and dont warn about root user (#5608) --- .devcontainer/devcontainer.json | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ab4f8cc96..c8f94cb6b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,17 +1,13 @@ { "name": "ESPHome Dev", "image": "ghcr.io/esphome/esphome-lint:dev", - "postCreateCommand": [ - "script/devcontainer-post-create" - ], + "postCreateCommand": ["script/devcontainer-post-create"], "containerEnv": { - "DEVCONTAINER": "1" + "DEVCONTAINER": "1", + "PIP_BREAK_SYSTEM_PACKAGES": "1", + "PIP_ROOT_USER_ACTION": "ignore" }, - "runArgs": [ - "--privileged", - "-e", - "ESPHOME_DASHBOARD_USE_PING=1" - ], + "runArgs": ["--privileged", "-e", "ESPHOME_DASHBOARD_USE_PING=1"], "appPort": 6052, "customizations": { "vscode": { @@ -24,7 +20,7 @@ // cpp "ms-vscode.cpptools", // editorconfig - "editorconfig.editorconfig", + "editorconfig.editorconfig" ], "settings": { "python.languageServer": "Pylance",