mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Adjust devcontainer (#16409)
This commit is contained in:
parent
1486827532
commit
e88c56eba8
@ -4,6 +4,7 @@
|
|||||||
"dockerFile": "../Dockerfile",
|
"dockerFile": "../Dockerfile",
|
||||||
"appPort": [4000],
|
"appPort": [4000],
|
||||||
"postCreateCommand": "bundle install && npm install",
|
"postCreateCommand": "bundle install && npm install",
|
||||||
|
"containerEnv": {"DEVCONTAINER": "true"},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"davidanson.vscode-markdownlint",
|
"davidanson.vscode-markdownlint",
|
||||||
"editorconfig.editorconfig",
|
"editorconfig.editorconfig",
|
||||||
@ -18,6 +19,6 @@
|
|||||||
"errorLens.gutterIconsEnabled": true,
|
"errorLens.gutterIconsEnabled": true,
|
||||||
"errorLens.addAnnotationTextPrefixes": false,
|
"errorLens.addAnnotationTextPrefixes": false,
|
||||||
"errorLens.enabledDiagnosticLevels": ["error", "warning"],
|
"errorLens.enabledDiagnosticLevels": ["error", "warning"],
|
||||||
"terminal.integrated.shell.linux": "/bin/bash"
|
"terminal.integrated.shell.linux": "/usr/bin/zsh",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
14
Dockerfile
14
Dockerfile
@ -7,25 +7,19 @@ RUN \
|
|||||||
su vscode -c \
|
su vscode -c \
|
||||||
"source /usr/local/share/nvm/nvm.sh && nvm install $(cat /tmp/.nvmrc) 2>&1"
|
"source /usr/local/share/nvm/nvm.sh && nvm install $(cat /tmp/.nvmrc) 2>&1"
|
||||||
|
|
||||||
# Set an environment variable to be able to detect we are in dev container
|
|
||||||
ENV DEVCONTAINER=true
|
|
||||||
|
|
||||||
# Locale env vars
|
# Locale env vars
|
||||||
ENV \
|
ENV \
|
||||||
LANG=en_US.UTF-8 \
|
LANG=en_US.UTF-8 \
|
||||||
LANGUAGE=en_US:en \
|
LANGUAGE=en_US:en \
|
||||||
LC_ALL=en_US.UTF-8
|
LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
# Install git, process tools
|
# Install tools
|
||||||
RUN apt update && export DEBIAN_FRONTEND=noninteractive \
|
RUN \
|
||||||
&& apt-get install -y --no-install-recommends \
|
apt update \
|
||||||
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
ack \
|
ack \
|
||||||
git \
|
|
||||||
locales \
|
|
||||||
procps \
|
|
||||||
&& echo "en_US UTF-8" > /etc/locale.gen \
|
&& echo "en_US UTF-8" > /etc/locale.gen \
|
||||||
&& locale-gen en_US.UTF-8 \
|
&& locale-gen en_US.UTF-8 \
|
||||||
&& echo 'export PS1="\\w\$ "' > /root/.bashrc \
|
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
&& apt-get clean -y \
|
&& apt-get clean -y \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
2
Gemfile
2
Gemfile
@ -8,6 +8,8 @@ group :development do
|
|||||||
gem 'compass', '1.0.3'
|
gem 'compass', '1.0.3'
|
||||||
gem 'sass-globbing', '1.1.5'
|
gem 'sass-globbing', '1.1.5'
|
||||||
gem 'stringex', '2.8.5'
|
gem 'stringex', '2.8.5'
|
||||||
|
# > 2.1.0 causes slowdowns https://github.com/sass/sassc-ruby/issues/189
|
||||||
|
gem 'sassc', '2.1.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :jekyll_plugins do
|
group :jekyll_plugins do
|
||||||
|
@ -99,9 +99,9 @@ GEM
|
|||||||
sass (3.4.25)
|
sass (3.4.25)
|
||||||
sass-globbing (1.1.5)
|
sass-globbing (1.1.5)
|
||||||
sass (>= 3.1)
|
sass (>= 3.1)
|
||||||
sassc (2.4.0)
|
sassc (2.1.0)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
sassc (2.4.0-x64-mingw32)
|
sassc (2.1.0-x64-mingw32)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
sinatra (2.1.0)
|
sinatra (2.1.0)
|
||||||
mustermann (~> 1.0)
|
mustermann (~> 1.0)
|
||||||
@ -133,6 +133,7 @@ DEPENDENCIES
|
|||||||
nokogiri (= 1.11.1)
|
nokogiri (= 1.11.1)
|
||||||
rake (= 13.0.3)
|
rake (= 13.0.3)
|
||||||
sass-globbing (= 1.1.5)
|
sass-globbing (= 1.1.5)
|
||||||
|
sassc (= 2.1.0)
|
||||||
sinatra (= 2.1.0)
|
sinatra (= 2.1.0)
|
||||||
stringex (= 2.8.5)
|
stringex (= 2.8.5)
|
||||||
tzinfo (~> 2.0)
|
tzinfo (~> 2.0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user