mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-21 00:06:30 +00:00
Update dev container (#849)
* Update dev container * Address comments * Add variant back to base file * Remove variant from devcontainer.json
This commit is contained in:
parent
dace9e4721
commit
1221ccae4d
@ -1,8 +1,14 @@
|
|||||||
FROM node:lts
|
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/typescript-node/.devcontainer/base.Dockerfile
|
||||||
|
|
||||||
WORKDIR /workspaces
|
ARG VARIANT="14"
|
||||||
|
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
||||||
|
|
||||||
# Set an environment variable to be able to detect we are in dev container
|
# Set an environment variable to be able to detect we are in dev container
|
||||||
ENV NODE_ENV=devcontainer
|
ENV NODE_ENV=devcontainer
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
COPY .nvmrc /tmp/.nvmrc
|
||||||
|
RUN \
|
||||||
|
su node -c \
|
||||||
|
"source /usr/local/share/nvm/nvm.sh && nvm install $(cat /tmp/.nvmrc) 2>&1"
|
||||||
|
@ -1,29 +1,29 @@
|
|||||||
{
|
{
|
||||||
"name": "developers.home-assistant",
|
"name": "developers.home-assistant",
|
||||||
"dockerFile": "Dockerfile",
|
"build": {
|
||||||
"appPort": [
|
"dockerfile": "Dockerfile",
|
||||||
3000
|
"context": ".."
|
||||||
],
|
},
|
||||||
"postCreateCommand": "yarn install",
|
"appPort": [3000],
|
||||||
|
"postCreateCommand": "script/setup",
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"davidanson.vscode-markdownlint",
|
"davidanson.vscode-markdownlint",
|
||||||
"editorconfig.editorconfig",
|
"editorconfig.editorconfig",
|
||||||
"streetsidesoftware.code-spell-checker",
|
"streetsidesoftware.code-spell-checker",
|
||||||
"yzhang.markdown-all-in-one"
|
"yzhang.markdown-all-in-one",
|
||||||
|
"esbenp.prettier-vscode"
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"editor.rulers": [80, 100, 120],
|
"editor.rulers": [80, 100, 120],
|
||||||
"editor.renderWhitespace": "boundary",
|
"editor.renderWhitespace": "boundary",
|
||||||
"errorLens.gutterIconsEnabled": true,
|
"errorLens.gutterIconsEnabled": true,
|
||||||
"errorLens.addAnnotationTextPrefixes": false,
|
"errorLens.addAnnotationTextPrefixes": false,
|
||||||
"errorLens.enabledDiagnosticLevels": [
|
"errorLens.enabledDiagnosticLevels": ["error", "warning"],
|
||||||
"error",
|
"[markdown]": {
|
||||||
"warning"
|
|
||||||
],
|
|
||||||
"terminal.integrated.shell.linux": "/bin/bash",
|
|
||||||
"[markdown]":{
|
|
||||||
"editor.wordWrap": "wordWrapColumn",
|
"editor.wordWrap": "wordWrapColumn",
|
||||||
"editor.wordWrapColumn": 80,
|
"editor.wordWrapColumn": 80
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
|
"remoteUser": "node"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user