Skip to content

Commit

Permalink
add dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence Adu-Gyamfi authored and Lawrence Adu-Gyamfi committed Dec 1, 2024
1 parent 4918a53 commit b22eaf9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
khaya_api_key=be4d05a974fe4335a69db0787794a889
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "kasa-python3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm"

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-extra/features/poetry:2" : {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "poetry install",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"eamodio.gitlens"
]
}
},

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"

"runArgs": ["--env-file",".devcontainer/devcontainer.env"]
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ data/
backup/
.DS_Store
.vscode/
.devcontainer/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down

0 comments on commit b22eaf9

Please sign in to comment.