Skip to content

Commit edcdc28

Browse files
authored
adding docker support (airctic#895)
* adding docker support * simplifying Dockerfile
1 parent 944b47c commit edcdc28

5 files changed

+44
-0
lines changed

docker/Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3.8
2+
3+
RUN pip install torch==1.8.0+cu101 torchvision==0.9.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html -U
4+
RUN pip install git+git://github.com/airctic/icevision.git#egg=icevision[all] -U
5+
RUN pip install git+git://github.com/airctic/icedata.git -U
6+
RUN pip install yolov5-icevision -U
7+
RUN pip install mmcv-full==1.3.7 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.8.0/index.html -U
8+
RUN pip install mmdet==2.13.0 -U
9+
RUN pip install ipywidgets

docker/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## How-to
2+
For instructions on how to use the docker-related files in this folder check out [this post](https://francescopochetti.com/developing-inside-a-docker-container-in-visual-studio-code/).

docker/devcontainer.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Icevision",
3+
"dockerComposeFile": ["docker-compose.yaml"],
4+
"service": "icevision",
5+
"runServices": ["icevision"],
6+
"workspaceFolder": "/root",
7+
"extensions": [
8+
"ms-python.python",
9+
"ms-azuretools.vscode-docker"
10+
],
11+
}

docker/docker-compose.gpu.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "3"
2+
3+
services:
4+
icevision:
5+
deploy:
6+
resources:
7+
reservations:
8+
devices:
9+
- driver: nvidia
10+
count: 1
11+
capabilities: [gpu]

docker/docker-compose.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "3"
2+
3+
services:
4+
icevision:
5+
build:
6+
dockerfile: Dockerfile
7+
context: .
8+
image: ice
9+
tty: true
10+
volumes:
11+
- ../:/root/

0 commit comments

Comments
 (0)