Skip to content

Commit 27c42af

Browse files
committed
Update dockerfile.dev
1 parent 71e1a07 commit 27c42af

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.devcontainer/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/arm64/v8 python:3.10-slim-buster
1+
FROM python:3.10-slim-buster
22

33
RUN apt-get update && apt-get install -y \
44
build-essential \

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
"mounts": [
3838
"source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached"
3939
],
40-
"postCreateCommand": "pip install -e ."
40+
"postCreateCommand": "make dev_setup"
4141
}

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ To enable dependency scanning, an extra tool is required: scancode-toolkit
3939
pip3 install -r requirements-scancode.txt
4040
```
4141

42+
### Devcontainer Setup
43+
To simplify the development environment setup, a devcontainer configuration is provided. This allows you to develop inside a containerized environment with all necessary dependencies pre-installed.
44+
45+
To use the devcontainer setup:
46+
1. Install [Visual Studio Code](https://code.visualstudio.com/).
47+
2. Install the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension.
48+
3. Open the project in Visual Studio Code.
49+
4. When prompted, reopen the project in the container.
50+
51+
This will build the container defined in the `.devcontainer` folder and open a new Visual Studio Code window connected to the container.
52+
4253
### Package Development
4354
More details on Python packaging/distribution can be found [here](https://packaging.python.org/overview/), [here](https://packaging.python.org/guides/distributing-packages-using-setuptools/), and [here](https://packaging.python.org/guides/using-testpypi/#using-test-pypi).
4455

0 commit comments

Comments
 (0)