Skip to content

Commit a0867fc

Browse files
authored
Merge pull request #52 from sileht/image_type
feat: allow to change the deepdetect image via env
2 parents 9a61d5a + 66fa875 commit a0867fc

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,16 @@ In `gpuInfo.servers` array, add the following item:
112112
}
113113
```
114114

115-
## Configuration of docker image versions
115+
## Configuration of docker image type and versions
116116

117117
Docker-compose uses the `latest` tag for all docker images that correspond to
118118
the latest stable version.
119119

120120
You can select the wanted version with these following environment variables:
121121

122122
```
123-
DD_SERVER_TAG=latest
123+
DD_SERVER_IMAGE=gpu_torch
124+
DD_SERVER_TAG=v0.14.0
124125
DD_PLATFORM_UI_TAG=latest
125126
DD_JUPYTER_TAG=latest
126127
DD_FILEBROWSER_TAG=latest

code/cpu/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
DD_PLATFORM=./../..
22
DD_SERVER_TAG=v0.14.0
3+
DD_SERVER_IMAGE=cpu
34
DD_PLATFORM_UI_TAG=v0.14.0
45
DD_JUPYTER_TAG=latest
56
DD_FILEBROWSER_TAG=latest

code/cpu/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
#
2020

2121
deepdetect:
22-
image: jolibrain/deepdetect_cpu:${DD_SERVER_TAG}
22+
image: jolibrain/deepdetect_${DD_SERVER_IMAGE}:${DD_SERVER_TAG}
2323
restart: always
2424
user: ${CURRENT_UID}
2525
volumes:

code/gpu/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
DD_PLATFORM=./../..
22
DD_SERVER_TAG=v0.14.0
3+
DD_SERVER_IMAGE=gpu
34
DD_PLATFORM_UI_TAG=v0.14.0
45
DD_JUPYTER_TAG=latest
56
DD_FILEBROWSER_TAG=latest

code/gpu/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
#
2020

2121
deepdetect:
22-
image: jolibrain/deepdetect_gpu:${DD_SERVER_TAG}
22+
image: jolibrain/deepdetect_${DD_SERVER_IMAGE}:${DD_SERVER_TAG}
2323
runtime: nvidia
2424
restart: always
2525
volumes:

0 commit comments

Comments
 (0)