Skip to content

Commit

Permalink
feat: added devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Feb 10, 2025
1 parent 67e535f commit 9adc1c4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Start by removing everything and add just the things we need
*
!src
!CMakeLists.txt
!include
!cmake/

# Python bindings
!bindings/python/
bindings/python/.vscode
bindings/python/build
bindings/python/dist/
bindings/python/sdist/
bindings/python/wheels/

**/.venv
**/.pytest_cache
**/.ruff_cache
**/__pycache__/
**/.ipynb_checkpoints
.coverage
.coverage.*
.cache
coverage.xml
**/*venv
11 changes: 11 additions & 0 deletions bindings/python/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "inputtino-python-dev",
"build": {
"context": "../../../", // The root of the repository
"dockerfile": "../Dockerfile"
},
"privileged": true,
// Mount the root of the repository so that the C++ code can be built
"workspaceMount": "source=${localWorkspaceFolder}/../../,target=/workspace,type=bind",
"workspaceFolder": "/workspace/bindings/python"
}
4 changes: 4 additions & 0 deletions bindings/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ docker run -it --rm \

## Development

Simply open this directory in your favorite IDE and use [devcontainers](https://code.visualstudio.com/docs/devcontainers/containers)!

Or for a more manual approach, follow these steps:

### Prerequisites

- Python 3.10 or higher
Expand Down

0 comments on commit 9adc1c4

Please sign in to comment.