Skip to content

Commit ea70def

Browse files
committed
Don;t ignore devcontainer
1 parent e7ed631 commit ea70def

File tree

3 files changed

+76
-1
lines changed

3 files changed

+76
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ARG PYTHON_RELEASE=3.12
2+
ARG BASE_IMAGE=mcr.microsoft.com/devcontainers/python:${PYTHON_RELEASE}
3+
# Runtime image
4+
FROM ${BASE_IMAGE}
5+
6+
# Copy Repo across
7+
COPY . /usr/src/appdaemon/
8+
9+
# Install AD Dependencies
10+
RUN pip install -r /usr/src/appdaemon/requirements.txt
11+
12+
# Add dev dependencies
13+
RUN pip install -r /usr/src/appdaemon/dev-requirements.txt
14+
15+
# Add doc dependencies
16+
RUN pip install -r /usr/src/appdaemon/doc-requirements.txt
17+
18+
# Install AppDaemon itself to keep VSCODE happy
19+
20+
RUN pip install /usr/src/appdaemon

.devcontainer/devcontainer.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
3+
{
4+
"name": "appdaemon-dev",
5+
"build": {
6+
// Sets the run context to one level up instead of the .devcontainer folder.
7+
"context": "..",
8+
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
9+
"dockerfile": "Dockerfile",
10+
"args": {
11+
"PYTHON_RELEASE": "3.13" // This overrides the default of 3.12
12+
}
13+
},
14+
15+
// Features to add to the dev container. More info: https://containers.dev/features.
16+
// "features": {},
17+
18+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
19+
//"forwardPorts": ["4949:4949"],
20+
"appPort": [ "4949:4949" ],
21+
// Uncomment the next line to run commands after the container is created.
22+
// "postCreateCommand": "cat /etc/os-release",
23+
24+
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
25+
// "remoteUser": "devcontainer"
26+
27+
"mounts": [
28+
"source=${localEnv:HOME}${localEnv:USERPROFILE}/production/,target=/conf,type=bind,consistency=cached"
29+
],
30+
31+
// Configure tool-specific properties.
32+
"customizations": {
33+
"vscode": {
34+
"extensions": [
35+
"ms-python.python",
36+
"njpwerner.autodocstring",
37+
//"ms-python.black-formatter",
38+
//"ms-python.isort",
39+
"shd101wyy.markdown-preview-enhanced",
40+
//"ms-python.pylint",
41+
"DavidAnson.vscode-markdownlint",
42+
"ms-python.debugpy",
43+
"njqdev.vscode-python-typehint",
44+
"charliermarsh.ruff",
45+
"ms-python.vscode-pylance",
46+
"lkytal.quicktask",
47+
"ms-azuretools.vscode-docker",
48+
"github.vscode-github-actions",
49+
"eamodio.gitlens",
50+
"Gruntfuggly.todo-tree",
51+
"tamasfe.even-better-toml"
52+
]
53+
54+
}
55+
}
56+
}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ venv
7676
# IDE
7777

7878
.vscode
79-
.devcontainer
8079

8180
# Docs
8281

0 commit comments

Comments
 (0)