Devcontainer: allow pip install and dont warn about root user (#5608)

This commit is contained in:
Jesse Hills 2023-10-27 11:56:16 +13:00 committed by GitHub
parent bcfbcd9578
commit a9f4922824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,13 @@
{ {
"name": "ESPHome Dev", "name": "ESPHome Dev",
"image": "ghcr.io/esphome/esphome-lint:dev", "image": "ghcr.io/esphome/esphome-lint:dev",
"postCreateCommand": [ "postCreateCommand": ["script/devcontainer-post-create"],
"script/devcontainer-post-create"
],
"containerEnv": { "containerEnv": {
"DEVCONTAINER": "1" "DEVCONTAINER": "1",
"PIP_BREAK_SYSTEM_PACKAGES": "1",
"PIP_ROOT_USER_ACTION": "ignore"
}, },
"runArgs": [ "runArgs": ["--privileged", "-e", "ESPHOME_DASHBOARD_USE_PING=1"],
"--privileged",
"-e",
"ESPHOME_DASHBOARD_USE_PING=1"
],
"appPort": 6052, "appPort": 6052,
"customizations": { "customizations": {
"vscode": { "vscode": {
@ -24,7 +20,7 @@
// cpp // cpp
"ms-vscode.cpptools", "ms-vscode.cpptools",
// editorconfig // editorconfig
"editorconfig.editorconfig", "editorconfig.editorconfig"
], ],
"settings": { "settings": {
"python.languageServer": "Pylance", "python.languageServer": "Pylance",