forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for remote dev container (home-assistant#24681)
* Add initial support for remote container * Use constrain
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:3.7 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
libudev-dev libavformat-dev libavcodec-dev libavdevice-dev \ | ||
libavutil-dev libswscale-dev libswresample-dev libavfilter-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /workspace | ||
|
||
# Install Python dependencies from requirements.txt if it exists | ||
COPY requirements_test_all.txt homeassistant/package_constraints.txt /workspace/ | ||
RUN pip3 install -r requirements_test_all.txt -c package_constraints.txt | ||
|
||
# Set the default shell to bash instead of sh | ||
ENV SHELL /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
{ | ||
"name": "Home Assistant Dev", | ||
"context": "..", | ||
"dockerFile": "Dockerfile", | ||
"postCreateCommand": "pip3 install -e .", | ||
"extensions": [ | ||
"ms-python.python" | ||
], | ||
"settings": { | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.linting.pylintEnabled": true, | ||
"python.linting.enabled": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,6 @@ virtualization/vagrant/config | |
|
||
# Visual Studio Code | ||
.vscode | ||
.devcontainer | ||
|
||
# Built docs | ||
docs/build | ||
|