Skip to content

Commit f9badaa

Browse files
committed
start a devcontainer
1 parent 0c43a5a commit f9badaa

File tree

5 files changed

+45
-6
lines changed

5 files changed

+45
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "roboflow-python devcontainer",
3+
"dockerComposeFile": "./docker-compose.yaml",
4+
"service": "devcontainer-roboflow-python",
5+
"workspaceFolder": "/roboflow-python",
6+
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"ms-python.python"
11+
],
12+
"settings": {
13+
"extensions.verifySignature": false
14+
}
15+
}
16+
}
17+
}

.devcontainer/docker-compose.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3'
2+
services:
3+
devcontainer-roboflow-python:
4+
build:
5+
context: ..
6+
dockerfile: Dockerfile.dev
7+
image: devcontainer-roboflow-python
8+
volumes:
9+
- ..:/roboflow-python
10+
command: sleep infinity

.vscode/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"python.testing.unittestArgs": [
3+
"-v",
4+
"-s",
5+
".",
6+
"-p",
7+
"test_*.py"
8+
],
9+
"python.testing.pytestEnabled": true,
10+
"python.testing.unittestEnabled": false,
11+
"python.testing.pytestArgs": [
12+
"."
13+
]
14+
}

Dockerfile.dev

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
ARG PYTHON_VERSION=3.8
2-
FROM python:$PYTHON_VERSION-slim
3-
RUN apt-get update && apt-get install make && rm -rf /var/lib/apt/lists/*
4-
WORKDIR /workspace
1+
FROM python:3.8
2+
RUN apt-get update && apt-get install -y make libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
3+
WORKDIR /roboflow-python
54
COPY . .
65
RUN pip install -e ".[dev]"
7-
ENTRYPOINT [ "/bin/bash" ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Within the version object, you can download the dataset version in any model for
108108

109109
## 🏆 Contributing
110110

111-
We would love your input on how we can improve the Roboflow Python package! Please see our [contributing guide](https://github.com/roboflow/roboflow-python) to get started. Thank you 🙏 to all our contributors!
111+
We would love your input on how we can improve the Roboflow Python package! Please see our [contributing guide](./CONTRIBUTING.md) to get started. Thank you 🙏 to all our contributors!
112112

113113
<br>
114114

0 commit comments

Comments
 (0)